Get Keyword AI Overview Data
GET
https://apigw.seomonitor.com/v3/rank-tracker/v3.0/keywords/aioThis endpoint retrieves AI Overview content and links or AI Button for a list of keywords part of a group, and their latest presence in a specific timeframe.
With this endpoint, you can get:Campaign-wide Data
: By default, this endpoint returns data for all active keywords in a specified campaign.
Group-specific Data
: When you provide agroup_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 thekeyword_ids
parameter.keyword_ids
should be a comma-separated list of keyword IDs.
Note: Use other parameters likelimit
,offset
,order_by
,order_direction
, andsearch
to further customize the data retrieval as per your needs.
Request
(Required) This parameter specifies the ID of the campaign for which you want to return data.
Please refer to the Quick Start Guide to learn how to retrieve the IDs of your campaigns.
(Required) This parameter specifies the start date of the timeframe for which you want to return the ranking and traffic data in YYYY-MM-DD format.
If you don't specify astart_date
, the default is 30 days before theend_date
.
(Required) This parameter specifies the end date of the timeframe for which you want to return the ranking and traffic data in YYYY-MM-DD format.
If you don't specify anend_date
, the default is the current day.
The IDs of specific groups in the campaign to get keyword data for.
Please refer to the Quick Start Guide to learn how to retrieve the IDs of your groups.
If you do not specify agroup_id
, the default value is the All Keywords
group, which means data will be returned for all active keywords in the campaign.
Special Group IDs
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 keywords that are not grouped by variations.
-3: Targets keywords associated with the Forecast objective
This parameter determines the maximum number of records to return in a single request.
Maximum Value: 1000 records per request
If you do not specify alimit
, the default number of records returned per request will be 100.
This parameter specifies the starting point within the collection of resource results. It's typically used with thelimit
parameter to implement pagination.
If you do not specify anoffset
, the API will start from the first record.
Request samples
Responses
[
{
"keyword_id": 12365,
"keyword": "Running Shoes",
"ai_data": {
"desktop": [
{
"date": "2024-01-01",
"content": "",
"links": []
}
],
"mobile": [
{
"date": "2024-01-01",
"content": "",
"links": []
}
]
}
}
]