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

Top for a keyword (keyword_top)

The keyword_top method shows you Google's top-100 or Yandex's top-50 search results for the analyzed keyword. The data set is similar to the Top pages report in Keyword research.

General request parameters and instructions for using Serpstat API

Response parameters
Parameter Description
result Contains the answer
top Contains the result
position Domain's position for a keyword
url Page that ranks for the keyword
domain Domain which ranks for the keyword
subdomain Subdomain which ranks for the keyword
types A list of special elements shown in SERP (for example, video, carousel or map)
ads Number of found Ads (if there are ads in the results)
results Number of results
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:

{
    "position": 1,
    "url": "https://www.apple.com/iphone/",
    "domain": "apple.com",
    "subdomain": "www.apple.com",
    "types": [
        "shopping_top",
        "kn_graph_carousel_list",
        "also_asks",
        "snip_breadcrumbs"
        ]
},

Example
Request data:

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

Response data:
{
    "result": {
        "top": [
            {
                "position": 1,
                "url": "https://www.apple.com/iphone/",
                "domain": "apple.com",
                "subdomain": "www.apple.com",
                "types": [
                    "shopping_top",
                    "kn_graph_carousel_list",
                    "also_asks",
                    "snip_breadcrumbs"
                ]
            },
            {
                "position": 2,
                "url": "https://www.apple.com/",
                "domain": "apple.com",
                "subdomain": "www.apple.com",
                "types": [
                    "shopping_top",
                    "kn_graph_carousel_list",
                    "also_asks",
                    "snip_breadcrumbs"
                ]
            }
        ],
        "ads": [],
        "types": [
            "shopping_top",
            "kn_graph_carousel_list",
            "also_asks"
        ],
        "results": 79
    },
    "status_msg": "OK",
    "status_code": 200,
    "left_lines": 999258
}

Share this article with your friends

Sign In Free Sign Up

You’ve reached your query limit.

Or email
Forgot password?
Or email
Optional
Back To Login

Don’t worry! Just fill in your email and we’ll send over your password.

Are you sure?

Awesome!

To complete your registration you need to enter your phone number

Back

We sent confirmation code to your phone number

Your phone Resend code Queries left

Something went wrong.

Contact our support team
Or confirm the registration using the Telegram bot Follow this link
Please pick the project to work on

Introducing Serpstat

Find out about the main features of the service in a convenient way for you!

Please send a request, and our specialist will offer you education options: a personal demonstration, a trial period, or materials for self-study and increasing expertise — everything for a comfortable start to work with Serpstat.

Name

Email

Phone

We are glad of your comment
I agree to Serpstat`s Privacy Policy.
Upgrade your plan

Upgrade your plan

Export is not available for your account. Please upgrade to Lite or higher to get access to the tool. Learn more

Sign Up Free

Thank you, we have saved your new mailing settings.

Invite
View Editing

E-mail
Message
Optional
E-mail
Message
Optional

You have run out of limits

You have reached the limit for the number of created projects. You cannot create new projects unless you increase the limits or delete existing projects.

I want more limits
Open support chat