Competitors in paid search results
The SerpstatKeywordProcedure.getAdsCompetitors method performs list of competitors in PPC for the given keyword. The data set is similar to the Competitors report in PPC research of the keywords.
General request parameters and instructions for using Serpstat API
Search databases available
Request parameters | |||||
Parameter | Description | Type | Optional | Default value | Value Options |
id | A request id: the response contains the same id. Enter any number (number) or text (string) value | int/string | no | 1, test | |
method | API method name | string | no | SerpstatKeywordProcedure.getAdsCompetitors | |
params | The object with parameters {...}, it lists all the following parameters and arrays [...] | array | no | ||
query | Keyword by which competitors will be searched | string | no | iphone | |
se | Search engine ID. | string | no | g_us | |
page | Page number in response | int | yes | 1 | "page": "5" |
size | Number of results per page in response | int | yes | 100 | "size": "100" min: 100, max: 1000 |
sort | Sort order of the results in the format: {{{field}}: {{order}}} field - field to sort by: * ads * all * common order - sort direction (asc - ascending, desc - descending) | json object | yes | {"common": "desc"} |
Response parameters | |
Parameter | Description |
id | Response id corresponds the request id |
result | Contains the answer |
data | Array with data |
domain | Competitor's domain |
ads | Number of ads for a domain |
all | Number of keywords for a domain in PPC |
common | Common keywords in PPC |
summary_info | Object with data |
page | Page number |
left_lines | API credits remaining |
Credits: the number of charged credits corresponds to the number of results obtained upon request. Part of the API response, for which 1 credit is charged:
{
"domain": "verizon.com",
"ads": 8953,
"all": 30855,
"common": 1437
},
{
"id": "1",
"method": "SerpstatKeywordProcedure.getAdsCompetitors",
"params": {
"query": "iphone",
"se": "g_us",
"page": "1",
"size": "100",
"sort": {
"common": "desc"
}
}
}
{
"id": "1",
"result": {
"data": [
{
"domain": "verizon.com",
"ads": 8953,
"all": 30855,
"common": 1437
},
{
"domain": "apple.com",
"ads": 4018,
"all": 6164,
"common": 488
},
{
"domain": "t-mobile.com",
"ads": 2623,
"all": 3916,
"common": 452
}
],
"summary_info": {
"page": 1,
"left_lines": 997925
}
}
}