Google SERP (Top 100 results)

This endpoint lets you scrape multiple Google result pages by using the max_pages parameter.

Why this endpoint?

Google recently restricted the num parameter to a maximum of 10 results per request. To overcome this limitation, we introduced a new endpoint that can fetch results from multiple pages.

How it works

  • max_pages defines how many result pages you want scraped.

  • Each page contains up to 10 results.

  • Example:

    • max_pages=5 → up to 50 results (5 pages × 10 results per page)

    • max_pages=10 → up to 100 results (10 pages × 10 results per page)

Pricing

  • The cost is based on the number of pages scraped.

  • 1 page = 1 credit

  • Example:

    • max_pages=7 → 7 pages scraped → costs 7 credits

    • If max_pages is set to 7 but only 2 pages are available, 2 credits are charged.

POST https://api.serphouse.com/serp/google_advanced

Path Parameters

Name
Type
Description

responseType

String

responseType can be 'html' or 'json'

Headers

Name
Type
Description

Authorization*

String

Bearer <YOUR_API_KEY>

Content-Type*

String

application/json

Request Body

Name
Type
Description

q*

string

Search phrase that you want to search

domain*

string

Choose google domain.

You can get the list of available search engines by making a separate request to the List of Search Engines

lang*

string

You can set language for e.g. en for english fr for french. Get the list of available languages by making a separate request to the List of Language

device*

string

Device can be desktop To extract desktop result tablet To extract tablet result mobile To extract mobile result

loc*

string

Optional field if you specify loc_id when choose yahoo domain then field is optional You must choose one of the fields: loc_id or loc You can receive the list of available locations of search engines with their loc_id by making a separate request to the List of Locations

loc_id*

integer

Optional field if you specify loc you must choose one of the fields: loc_id or loc You can receive the list of available locations of search engines with their loc_id by making a separate request to the List of Locations

verbatim

integer

Set Google Verbatim search, Parameter value can be 0 or 1

gfilter

integer

Parameter defines if the filters for 'Similar Results' and 'Omitted Results' are on or off. It can be set to 1 (default) to enable these filters, or 0 to disable these filters.

max_pages

integer

Number of pages to return (e.g., max_pages=4 gives 4 pages, allowed range 1–10, default = 10).

date_range

String

Sometimes you may want to only find information published during a specific time frame. To limit Google results by date

Parameter values can be comma seprated date range YYYY-MM-DD,YYYY-MM-DD OR

h Past hour

d Past 24 hours

w Past week

m Past month

y Past year

{
    "status": "error",
    "msg": "Please try again",
    "error": ""
}

Example request:

curl --location --request 'https://api.serphouse.com/serp/google_advanced' \
--header 'Authorization: Bearer <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "data": {
        "q" : "apple",
        "domain" : "google.com",
        "lang" : "en",
        "device" : "desktop",
        "serp_type" : "web",
        "loc" : "Alba,Texas,United States",
        "loc_id" : "1026201",
        "verbatim" : "0",
        "gfilter" : "0",
        "max_pages" : "7"
    }
}'

Last updated

Was this helpful?