Get Keyword Data
GET
https://apigw.seomonitor.com/v3/rank-tracker/v3.0/keywords
Campaign-wide Data
: By default, this endpoint returns data for all active keywords in a specified campaign.Group-specific Data
: When you provide a group_id
, this endpoint will return data exclusively for the keywords within the specified group. Additionally, there are special group IDs which can access predefined groups. These are detailed further in the section on query parameters.Keyword-specific Data
: You can request data for specific keywords within a campaign by supplying their IDs using the keyword_ids
parameter. keyword_ids
should be a comma-separated list of keyword IDs.limit
, offset
, order_by
, order_direction
, and search
to further customize the data retrieval as per your needs.Request
Query Params
campaign_id
integer
required
Example:
{{campaign_id}}
start_date
string
required
start_date
, the default is 30 days before the end_date
.Example:
{{start_date}}
end_date
string
required
end_date
, the default is the current day.Example:
{{end_date}}
group_id
string
optional
group_id
, the default value is the All Keywords
group, which means data will be returned for all active keywords in the campaign.There are several special IDs you can use to retrieve specific sets of keywords:
0: Retrieves data for all keywords.
-1: Specifies the Brand folder.
-2: Retrieves data for ungrouped keywords.
-3: Targets keywords associated with the Forecast objective.
Example:
{{group_id}}
include_all_groups
string
optional
true
) can substantially slow down the response time. If not specified, the default behavior excludes folders and smart groups, focusing the response on active keywords in regular groups only.Example:
{{include_all_groups}}
keyword_ids
string
optional
keyword_ids
should be a comma-separated list of keyword IDs.keyword_ids
, the API will return data for all keywords that meet the other specified criteria (e.g. group_id
).Example:
{{keyword_ids}}
limit
integer
optional
limit
, the default number of records returned per request will be 100.Example:
{{limit}}
offset
integer
optional
limit
parameter to implement pagination.offset
, the API will start from the first record.Example:
{{offset}}
order_by
string
optional
keyword
search_volume
year-over-year
rank
rank_trend
: Sorts the data based on the trend in keyword ranking.rank_trend_impact
: Sorts the data based on the rank trend impact on Visibility.opportunity
: Sorts the data based on the keyword Opportunity score.Example:
{{order_by}}
order_direction
string
optional
order_by
field. You can sort the data in either ascending (asc
) or descending (desc
) order.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 with order_by
.order_direction
, the default is asc
.Example:
{{order_direction}}
search
string
optional
search
parameter 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.The search parameter is case-insensitive, allowing partial matches irrespective of casing.
Example:
{{search}}
Header Params
Accept
string
required
Example:
application/json
Request samples
Responses
Modified at 2024-12-13 12:56:46