Search our Knowledge Base
Search

Rank Top 100 API



The rank_top100 method returns up to the top 100* landing pages ranking for a campaign keyword and search engine on a specific date. Results include the date, search engine ID, rank, landing page URL, and SERP meta title.  For Google desktop and mobile search engines, notation of special SERP result indicator if any exist in the results (e.g., search box, HTTPS, rating, etc.), and SERP Meta Title.

Rank Top 100 is one of our SEO Intelligence Search API methods that allows you to view the top 100 SERP results tracked in a campaign. Data is available for Google, Google Maps, Google Mobile, Yahoo!, Bing, Yandex & Baidu.

API Type: this is a stand-alone API-only package, it does not include access to our reporting platform reports or Reporting API methods.

Data Retention: data generated by this API is stored for 60 days.

Contact us with the number of keywords and search engines you'd like this data for, along with the frequency (e.g., daily, weekly or monthly), and we'll provide you with information regarding a custom SERP API package and pricing.

*If the search engine provides less than 100 results for a keyword, then the API returns only the number of results that were available during the rank tracking for that keyword.

 

API Options & Restrictions

 

You can add a special Google SERP Features API add-on package to this Top 100 API that includes the description field for each of the Google top 100 results, plus search page indicators including Knowledge Graph, Carousel, Answer Box, Local Pack, Image Pack, News Pack, Paid results and more.

API package capacity can be upgraded at any time.

Multiple types of API packages (Rank Top 100 Daily with SERP Features, Google Suggested Search Monthly, etc.) can exist in one account.
IMPORTANT! When creating new campaigns you must be careful to select the correct package for the new campaign because you:
  • Cannot transfer keywords or campaigns between Reporting Platform and API packages or between different types of API packages.
  • Cannot change an existing API package to a different type (e.g., Rank Top50 to Google Suggested Search).
  • Cannot change the frequency (e.g. from Monthly to Daily) of an existing API package.

Refer to the Rank Ranger API Overview page for information on how to obtain API access, obtain an API Key, error codes, and a full list of API methods.


 

Parameters

 
key string The unique API key assigned to your account
keyword string Keyword
date yyyy-mm-dd Requested data date
Optional: Date Range can be called using
&start_date=YYYY-MM-DD&end_date=YYYY-MM-DD
(for up to a span of 10 days)
If date is used, then do not include the results parameter

se_id int Search Engine ID
campaign_id
int Campaign ID number
results int Number of days' data (up to 10)
Do not use with date parameter
show_title string Option to include SERP Link Title in top 100 results
pi string Option to include SERP Features (formerly known as Page Indicators) in the results. If you want the presence of answer boxes, snippets, local packs, etc. included in the API results, then add &pi=true to the request.
batch_start
batch_limit
string Optional: The Batch request may be used to obtain results in batches of 200 keywords at a time. This option requires the parameters batch_start=X&batch_limit=200, where X equals the beginning of the batch.  To request the first 200 keywords in a campaign, this is an example request:
https://www.rankranger.com/api/v2/?rank_top100&key=YOUR-API-KEY&se_id=SEARCH-ENGINE-ID&campaign_id=YOUR-CAMPAIGN-ID&show_title=true&batch_start=1&batch_limit=200
The request for the next batch would start with 201, for example:
&batch_start=201&batch_limit=200
Do not use date and keyword parameters when choosing the batch option
exclude_nr_ind=true string Option to exclude the "no results" text string from the API response


Examples

 

Construct & test API requests in the API Console or follow one of these examples:

Rank Top 100 for specific date

https://www.rankranger.com/api/v2/?rank_top100&key=YOUR-API-KEY&keyword=YOUR-KEYWORD&date=YYYY-MM-DD&se_id=SEARCH-ENGINE-ID&campaign_id=YOUR-CAMPAIGN-ID

Rank Top 100 for a date range

https://www.rankranger.com/api/v2/?rank_top100&key=YOUR-API-KEY&keyword=YOUR-KEYWORD&start_date=YYYY-MM-DD&end_date=YYYY-MM-DD&se_id=SEARCH-ENGINE-ID&campaign_id=YOUR-CAMPAIGN-ID


Rank Top 100 Batch Request

https://www.rankranger.com/api/v2/?rank_top100&key=YOUR-API-KEY&se_id=SEARCH-ENGINE-ID&campaign_id=YOUR-CAMPAIGN-ID&show_title=true&batch_start=1&batch_limit=200

The request for the next batch would start with 201, for example:
https://www.rankranger.com/api/v2/?rank_top100&key=YOUR-API-KEY&se_id=SEARCH-ENGINE-ID&campaign_id=YOUR-CAMPAIGN-ID&show_title=true&batch_start=201&batch_limit=200

Rank Top 100 for a specific date including SERP Link Title

https://www.rankranger.com/api/v2/?rank_top100&key=YOUR-API-KEY&keyword=YOUR-KEYWORD&date=YYYY-MM-DD&se_id=SEARCH-ENGINE-ID&campaign_id=YOUR-CAMPAIGN-ID&show_title=true


The default output is in XML format, if you would like the output to be JSON then you will need to add "&output=json” at the end of the string



Response

 
Including Google SERP Features:

x
 
<tracking-data provider="rankranger" date="07/19/2017" time="14:29:48" status="ok">
    <results>
        <result>
            <details>
                <date>2017-07-19</date>
                <se_id>1</se_id>
                <keyword_name>cats</keyword_name>
                <keyword_identifier/>
            </details>
            <google_serp_features>
                <knowledge_panel>
                    <kp_title>Cat</kp_title>
                    <kp_subtitle>Animal</kp_subtitle>
                </knowledge_panel>
                <answer_boxes>
                    <answer_box>
                        <ab_type>disambiguation box</ab_type>
                        <title>
Cats (Musical by Andrew Lloyd Webber and T. S. Eliot)
</title>
                    </answer_box>
                </answer_boxes>
                <images>
                    <position>11</position>
                    <image_results>
                        <image_result>
                            <url>http://www.animalplanet.com/pets/cats/</url>
                        </image_result>
                        <image_result>
                            <url>https://www.petfinder.com/cats/</url>
                        </image_result>
                        <image_result>
                            <url>http://www.vetstreet.com/cats/</url>
                        </image_result>
                        <image_result>
                            <url>http://cattime.com/cat-breeds/persian-cats</url>
                        </image_result>
                        <image_result>
                            <url>http://www.vetstreet.com/cats/</url>
                        </image_result>
                    </image_results>
                </images>
                <total_results>856000000</total_results>
            </google_serp_features>
            <search_results>
                <search_result>
                    <page_num>1</page_num>
                    <rank>1</rank>
                    <url>http://www.vetstreet.com/cats/</url>
                    <extra>Sitelinks</extra>
                    <title>
Complete Guide to Caring for Cats | Cat Breed Information, Cat ...
</title>
                </search_result>
                <search_result>
                    <page_num>1</page_num>
                    <rank>2</rank>
                    <url>http://www.animalplanet.com/pets/cats/</url>
                    <extra/>
                    <title>Cats | Animal Planet</title>
                </search_result>
                <search_result>
                    <page_num>1</page_num>
                    <rank>3</rank>
                    <url>https://www.petfinder.com/cats/</url>
                    <extra>HTTPS</extra>
                    <title>
Cats: Adoption, Bringing A Cat Home and Care - Petfinder
</title>
                </search_result>
                <search_result>
                    <page_num>1</page_num>
                    <rank>4</rank>
                    <url>http://pets.webmd.com/cats/default.htm</url>
                    <extra/>
                    <title>
Cat Health Center | Cat Care and Information from WebMD
</title>
                </search_result>
                <search_result>
                    <page_num>1</page_num>
                    <rank>5</rank>
                    <url>https://en.wikipedia.org/wiki/Cat</url>
                    <extra>HTTPS,Sitelinks</extra>
                    <title>Cat - Wikipedia</title>
                </search_result>
                <search_result>
                    <page_num>1</page_num>
                    <rank>6</rank>
                    <url>https://www.purina.com/cats</url>
                    <extra>HTTPS</extra>
                    <title>Cats - Purina®</title>
                </search_result>
                <search_result>
                    <page_num>1</page_num>
                    <rank>7</rank>
                    <url>https://en.wikipedia.org/wiki/Cats_(musical)</url>
                    <extra>Structured Snippets,HTTPS</extra>
                    <title>Cats (musical) - Wikipedia</title>
                </search_result>
                <search_result>
                    <page_num>1</page_num>
                    <rank>8</rank>
                    <url>
http://www.rd.com/advice/pets/how-to-decode-your-cats-behavior/
</url>
                    <extra/>
                    <title>
Cat Behavior: 17 Things Your Cat Wants to Tell You | Reader's Digest
</title>
                </search_result>
                <search_result>
                    <page_num>1</page_num>
                    <rank>9</rank>
                    <url>
https://www.nytimes.com/2017/05/16/magazine/the-mystery-of-the-wasting-house-cats.html
</url>
                    <extra>HTTPS</extra>
                    <title>
The Mystery of the Wasting House-Cats - The New York Times
</title>
                </search_result>
                <search_result>
                    <page_num>1</page_num>
                    <rank>10</rank>
                    <url>
http://www.popsci.com/article/science/sorry-cat-haters-science-isnt-your-side
</url>
                    <extra/>
                    <title>
Sorry, Cat Haters, Science Isn't On Your Side | Popular Science
</title>
                </search_result>
                <search_result>
                    <page_num>2</page_num>
                    <rank>11</rank>
                    <url>https://www.youtube.com/watch?v=5dsGWM5XGdg</url>
                    <extra>HTTPS,Video Thumbnail</extra>
                    <title>
Cats are so funny you will die laughing - Funny cat compilation ...
</title>
                </search_result>
                <search_result>
                    <page_num>2</page_num>
                    <rank>12</rank>
                    <url>http://mashable.com/category/cats/</url>
                    <extra/>
                    <title>Cats - Mashable</title>
                </search_result>
                <search_result>
                    <page_num>2</page_num>
                    <rank>13</rank>
                    <url>https://www.reddit.com/r/cats/</url>
                    <extra>HTTPS</extra>
                    <title>Cats - Reddit</title>
                </search_result>
                <search_result>
                    <page_num>2</page_num>
                    <rank>14</rank>
                    <url>https://giphy.com/search/cats</url>
                    <extra>HTTPS</extra>
                    <title>Cats GIFs - Find & Share on GIPHY</title>
                </search_result>
                <search_result>
                    <page_num>2</page_num>
                    <rank>15</rank>
                    <url>https://www.catsone.com/</url>
                    <extra>HTTPS</extra>
                    <title>CATS Applicant Tracking System</title>
                </search_result>
etc. to 100 results
            </search_results>
        </result>
    </results>
</tracking-data>


 

If the &results=2 (any number up to 10) is used, then the data for each date displays in batches of 100

 
Refer to the Google SERP Features API for examples of results that include Carousels, Knowledge Graphs, a variety of Answer Boxes, Image Blocks, SERP News, Local Packs, and Paid Results.

Response less than 100 Results

 
If you receive less than 100 results for a keyword via this API, there can be some logical reasons. Based on our ongoing research of the SERPs, these are the most likely causes of a change in the total number of API results when comparing time periods:

Campaign Changes
A change in the total number of keywords being tracked on different dates (i.e., deleting or adding campaigns or batches of keywords)

Google Index
The Google Index doesn't contain 100 results for the keyword based on the campaign's search engine settings.

Page One Orangic Results Count
Our API reports rank data for the first 10 pages of the search results and Google does not always provide 10 results on page 1. Organic results count on Page 1 can range between 5 and 10 results, this is tracked and reported by our SERP Features Tool.

Organic Results Insight Graph



Google Removal of Results
Google omits results that they have received complaints about (refer to Google Removal Policies for details). When Google removes content, they display a statement below the last search result explaining why they have removed results. For example, in a top 100 search for "vikings torrents" Google removed 45 results.

Google DMCA results


The message varies depending upon the type of violation, the above example relates to DMCA. 

Refer to Google's support topics for more information:

How to Identify Featured Snippet Rank in Search Intelligence APIs

More

How to Obtain API Access

More

How to Generate New API Keys

More

API Console: Construct & Test API Requests

More

API Query Limits

More

Developer API Methods

More

API Error Codes

More

Get the ultimate SEO tools with the Rank Ranger Software
Learn More About Rank Ranger