Get access to 30+ marketing and SEO tools. analyze competitors, keywords, and backlinks for free..
Sign in Sign Up

We use cookies to make Serpstat better. By clicking "Accept cookies", you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts. Learn more

Advertising report (ad_keywords)

API v3 methods will be unavailable from 12/31/2021. Use a similar API v4 method.

The ad_keywords method returns paid keywords and ads copies that pop up for the queried keyword in paid search resultsThe data set is similar to the Keyword research PPC research  Keywords report.

General request parameters and instructions for using Serpstat API

Following parameters can be used for pagination:
page_size: number of results per page (default: 100, max: 1000)
page: page number (set to the 1st page by default)

You can use the following parameters to filter the results

Parameter Description Possible settings
position_from min position for a keyword  1-100
position_to max position for a keyword  1-100
queries_from min number of monthly searches  0-100,000,000
queries_to max number of monthly searches  0-100,000,000
cost_from min CPC  0-200
cost_to max CPC  0-200
concurrency_from min level of competition  1-100
concurrency_to max level of competition  1-100


To 
sort the results apply following parameters:
sort: field that needs to be sorted
order: sorting order (asc — ascending, desc — descending)

Response parameters
Parameter Description
result Contains the answer
total Number of paid search results for the keyword
hits Contains the answer
keyword Keyword which domain's ad is displayed in SERP
keyword_length Number of words divided by space in a keyword
domain Domain
subdomain Subdomain of the domain
url URL where the ad leads
title Ad Title
text Ad text
position Ad position
type Ad placement type in relation to SERP (1 - above; 2 - under; 3 - side)
cost Cost per click, $
concurrency Keyword competition in PPC (0-100%)
found_results The number of results found for ""keyword""
region_queries_count Search volume in selected search engine database
region_queries_count_last Search volume (last month)
types A list of special elements shown in SERP (for example, video, carousel or map)
geo_names List of toponyms in the array (if toponyms are present in the keywords)
difficulty The assessment of the level of competition for a keyword to advance in organic search in the top-10 (from 0 to 100%)
status_msg Response "OK" or "Error" report on a successful or unsuccessful request
status_code Response code "200" — successful request. Errors occur when credits are exceeded (number of simultaneous requests or account credits)
left_lines API credits remaining

Part of the API response for which you spend 1 credit:

{
    "keyword": "iphone see",
    "keyword_id": 50423945,
    "keyword_length": 2,
    "domain": "apple.com",
    "subdomain": "www.apple.com",
    "url": "https://www.apple.com/iphone-se/",
    "url_crc": 818000116,
    "title": "iPhone SE - Apple Official Site",
    "text": "The A13 Bionic chip is built for speed. It’s just what you’ve been waiting for.",
    "crc": -1550457144,
    "position": 1,
    "type": "1",
    "cost": 1.54,
    "concurrency": 100,
    "found_results": 2920000000,
    "region_queries_count": 1500000,
    "region_queries_count_last": 1830000,
    "types": [
        "top_stories",
        "also_asks",
        "kn_graph_carousel_list",
        "shopping_top",
        "ads_top"
        ],
    "geo_names": [],
    "difficulty": 73.432686121561062,
    "modified_date": "2021-07-14",
    "_id": "50423945_1"
},

Example
Request data:

api.serpstat.com/v3/ad_keywords?query=iphone&token=XXX&se=g_us

Response data:
{
    "result": {
        "total": 10071,
        "hits": [
            {
                "keyword": "iphone see",
                "keyword_id": 50423945,
                "keyword_length": 2,
                "domain": "apple.com",
                "subdomain": "www.apple.com",
                "url": "https://www.apple.com/iphone-se/",
                "url_crc": 818000116,
                "title": "iPhone SE - Apple Official Site",
                "text": "The A13 Bionic chip is built for speed. It’s just what you’ve been waiting for.",
                "crc": -1550457144,
                "position": 1,
                "type": "1",
                "cost": 1.54,
                "concurrency": 100,
                "found_results": 2920000000,
                "region_queries_count": 1500000,
                "region_queries_count_last": 1830000,
                "types": [
                    "top_stories",
                    "also_asks",
                    "kn_graph_carousel_list",
                    "shopping_top",
                    "ads_top"
                ],
                "geo_names": [],
                "difficulty": 73.432686121561062,
                "modified_date": "2021-07-14",
                "_id": "50423945_1"
            },
            {
                "keyword": "iphone 12 pro max",
                "keyword_id": 11357316353,
                "keyword_length": 4,
                "domain": "verizon.com",
                "subdomain": "www.verizon.com",
                "url": "https://www.verizon.com/smartphones/apple-iphone-12-pro-max/",
                "url_crc": -1435350892,
                "title": "Verizon: iPhone 12 Pro Max - Up To $700 Off w/ Trade In",
                "text": "Up to $700 w/ select trade-in & select Unlimited plans. Plus $300 to switch. Terms apply. iPhone 12 Pro Max. Pro camera system for next-level low-light photography. Buy yours today. 5G Goes Pro. 6.7\" XDR Display. Pro Camera System. Night Mode Camera.",
                "crc": 1717675613,
                "position": 1,
                "type": "1",
                "cost": 1.7,
                "concurrency": 100,
                "found_results": 958000000,
                "region_queries_count": 1500000,
                "region_queries_count_last": 60500,
                "types": [
                    "shopping_rhs",
                    "kn_graph_carousel_list",
                    "also_asks",
                    "ads_top",
                    "top_stories"
                ],
                "geo_names": [],
                "difficulty": 48.050073552953251,
                "_id": "11357316353_1"
            }
        ]
    },
    "status_msg": "OK",
    "status_code": 200,
    "left_lines": 999155
}