APIs Pricing
Login

SERPS API (V1)

The SERPs API allows you to query Google's search engine as if you were making the request through a real browser. Our system will, in real-time, make a request on your behalf, parse the data, and provide you with a structured JSON response.

  • Endpoint cost is 5 credits / request for successful requests

The following data points will be collected if they are returned in a parsable format by Google:

  • Knowledge Graph: The sidebar box containing basic information about the entity queried
  • Top Stories: Any breaking news or articles that are associated with the query
  • Organic Search: The good old organic search results
  • Related Queries: Search queries that are currently being asked about related topics
  • Also Asked: Q&A snippets related to your query's topic

Note:

It is not always guaranteed that Google will return all of these data points for each request. The organic results will always be there of course. However, all the remaining data types are only returned if Google deems it fit to return them in its response.

Request Parameters

  • API Endpoint: POST https://api.serpgrid.dev/v1/serps/standard

  • Required headers: X-API-KEY and Content-Type

Parameter Description
query Full text query string - this is the actual Google search box
Max length: 250 characters
country The search's country of origin
Default: 'US' --> See list of country codes below
language The search's language preference
Default: 'EN' --> See list of language codes below
age Instruct Google to only return data for a certain time period
Default: ''
Accepts: 'last_hour', 'last_day', 'last_week', 'last_month', 'last_year', ''
autocorrect Boolean field that enables/disables Google's autocorrect functionality
Default: true
Accepts: true, 1 , false, 0
results The maximum number of organic results (rows) to be returned per page
Default: 10
Accepts: 10, 100
page The page number you want to get the results for
Default: 1

Autocorrect

By default, autocorrect is enabled on all Google searches as this is the way most people interact with Google. When deactivating it, you risk seeing results that differ from the average user. Use with caution!

Request Example 1

json icon SERP Standard Request
json icon SERP Standard Response

Request Example 2

json icon SERP Standard Request
json icon SERP Standard Response

Country Codes

Below you'll find a list of supported country codes. When passing in one of these values to the country parameter, make sure to use the 2 letter code instead of the country's name.

json icon Country Codes List

Language Codes

Below you'll find a list of supported language codes. When passing in one of these values to the language parameter, make sure to use the code instead of the language's name.

json icon Language Codes List

Additional Information

The following headers will also be returned as part of the response to you:

  • X-Credits-Remaining The number of credits that remain in your account
  • X-Credits-Expire A datetime string with the expiration date
  • X-Credits-Used The number of credits the operation consumed

Errors are handled in line with our Error Rules. Please make sure to read it carefully and follow the instructions for the best experience possible.