Search our Knowledge Base
Search

Rank Top 50 API



The rank_top50 method returns the top 50 landing pages ranking for a campaign keyword and search engine on a specific date. Results include rank, landing page URL, notation if special SERP features exist (e.g., search box, HTTPS, rating, etc.), and SERP Meta Title.  

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

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. 




 

API Options & Restrictions

 

You can add a special Google SERP Features API add-on package to this Top 50 API that includes the description field for each of the Google top 50 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 50 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 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 results
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_top50&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


Examples

 

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

Top 50 for specific date

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

Top 50 for a date range

https://www.rankranger.com/api/v2/?rank_top50&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

Top 50 for a specific number of results and including SERP Link Title

https://www.rankranger.com/api/v2/?rank_top50&key=YOUR-API-KEY&keyword=YOUR-KEYWORD&se_id=SEARCH-ENGINE-ID&campaign_id=YOUR-CAMPAIGN-ID&results=3&show_title=true


Rank Top 50 Batch Request

https://www.rankranger.com/api/v2/?rank_top50&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_top50&key=YOUR-API-KEY&se_id=SEARCH-ENGINE-ID&campaign_id=YOUR-CAMPAIGN-ID&show_title=true&batch_start=201&batch_limit=200


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



Response

 
Including Google SERP Features:



If the &results=2 (any number up to 10) is used, then the data for each date displays in batches of 50.
 
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.


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