Get Keywords Competition Data
GET
https://apigw.seomonitor.com/v3/rank-tracker/v3.0/keywords/competitionThis endpoint returns the specified competitors' ranking data for a campaign.
Request
(Required) The ID of the campaign for which keyword competitor ranking data must be returned.
Please refer to the Quick Start Guide to learn how to retrieve the IDs of your campaigns.
(Required) The device type to get ranking data for–either desktop
or mobile
.
The default selection is desktop
.
(Required) The start date of the date range to get ranking data for, in YYYY-MM-DD format. This is the earliest date of rankings to include.
(Required) The end date of the date range to get ranking data for, in YYYY-MM-DD format. This is the most recent date of rankings to include.
The ID of a specific group in the campaign to get competitor ranking data for. If not specified, returns data for all of the keywords in the campaign.
Please refer to the Quick Start Guide to learn how to retrieve the IDs of your groups.
If you do not specify a group_id
, the default value is the All Keywords
group, which means data will be returned for all active keywords in the campaign.
The IDs of the keywords for which you want to get competitor ranking data. keyword_ids
should be a comma-separated list of keyword IDs.
Please refer to the Quick Start Guide to learn how to retrieve the IDs of your keywords.
If you do not specify keyword_ids
, the API will return data for all keywords in the campaign that meet the other specified criteria (e.g. group_id
).
An optional list of competitor domain names to filter the results by. The ranking data returned will only include the specified competitors.
This parameter should be an array of strings containing one or more competitor domains, formatted as follows:["examplecompetitor1.com", "examplecompetitor2.net"]
If you do not specify the competitors, the endpoint will return data for the competitors configured in the interface for the specified keyword group.
Determines the maximum number of records to return in a single request. Maximum Value: 1000 records per request
If you do not specify a limit
, the default number of records returned per request will be 100.
The starting index within the results to begin returning data. Typically used with the limit
parameter to implement pagination.
If you do not specify an offset
, the API will start from the first record.
This parameter enables you to sort the returned data based on the parameter specified. Allowed values:
keyword
rank
rank_trend
: Sorts the data based on the trend in keyword ranking.
If you do not specify the order_by
parameter, the data will be sorted by default by the keyword name (keyword
).
Determines the sorting direction of the order_by
field. You can sort the data in either ascending (asc
) or descending (desc
) order.
Note: The order_direction
parameter works in conjunction with the order_by
parameter. Use it to specify the direction of the sort after choosing the field to order by.
If you do not specify an order_direction
, the default is asc
.
Allows you to filter the results based on a keyword search. The API will return only those records where the keyword matches (fully or partially) the provided search term.
Request samples
Responses
The unique ID used to identify and reference the keyword in the SEOmonitor system.
The exact keyword phrase.
Parent field containing keyword ranking data for the requested competitors.
The root domain name of the competitor.
The full URL path of the page on the competitor's site that is currently ranking for this exact keyword.
The current organic search ranking position of the competitor landing page for this specific keyword on Google.
The change in ranking position for the competitor's landing page for this keyword during the specified date range.
{
"keyword_id": 123456,
"keyword_name": "buy shoes online",
"competitors": [
{
"domain": "footwear.com",
"landing_page": "https://www.footwear.com/athletic-shoes",
"rank": 5,
"rank_trend": 2
},
{
"domain": "shoesgalore.com",
"landing_page": "https://www.shoesgalore.com/athletic",
"rank": 7,
"rank_trend": -1
},
{
"domain": "fancyshoes.com",
"landing_page": "https://www.fancyshoes.com/athletic-shoes",
"rank": 10,
"rank_trend": 0
},
{
"domain": "budgetshoes.net",
"landing_page": "https://www.budgetshoes.net/athletic",
"rank": 12,
"rank_trend": 3
},
{
"domain": "shoedeals.org",
"landing_page": "https://www.shoedeals.org/athletic",
"rank": 15,
"rank_trend": -2
}