Request fields
| Field | Value | Behavior |
|---|---|---|
| source | google_search | Required source selector. |
| query | Search text | Required; Google operators can be part of the string. |
| parse | true / false | true returns structured modules; false returns HTML. Default false. |
| geo_location | Country, canonical location or coordinates | Localize the search request. |
| locale | Accept-Language value | Search interface language. |
| user_agent_type | desktop / mobile / tablet presets | Default desktop. |
| start_page | Positive integer | First requested page; default 1. |
| pages | Positive integer | Number of requested pages; default 1. |
| limit | Integer | Requested results per page; default 10. Google commonly returns about 10. |
| context:limit_per_page | Array of {page, limit} | Request page-specific counts in the same proxy/cookie session. |
| context:filter | 0 / 1 | 0 includes similar results that Google might otherwise omit; default 1. |
| context:safe_search | boolean | Enable SafeSearch; default false. |
| context:tbs | Google filter string | Date and other search filters. |
| context:nfpr | boolean | true disables spelling correction; default false. |
| context:fpstate | aig | Use with rendering for expanded Google result content. |
Scroll horizontally to read all columns.
Localized paginated search
cURL request
: "${CRAWLHUB_USERNAME:?Set your API username}"
: "${CRAWLHUB_PASSWORD:?Set your API password}"
curl --request POST "https://api.crawlhub.ai/v1/queries" \
--user "$CRAWLHUB_USERNAME:$CRAWLHUB_PASSWORD" \
--header "Content-Type: application/json" \
--connect-timeout 15 --max-time 180 \
--data '{
"source": "google_search",
"query": "public web data",
"geo_location": "United States",
"parse": true,
"start_page": 1,
"pages": 2,
"user_agent_type": "desktop",
"context": [
{
"key": "safe_search",
"value": true
}
]
}'Result counts and pagination
Google controls the organic links available on each page. Larger requested limits do not force Google to return more content. Record page and link positions, deduplicate links deliberately, and keep requested counts separate from returned counts.
Page-specific limits
Continuous page request
{
"source": "google_search",
"query": "public web data",
"parse": true,
"context": [
{
"key": "limit_per_page",
"value": [
{
"page": 1,
"limit": 10
},
{
"page": 2,
"limit": 10
}
]
}
]
}Keep the search type consistent
These examples target Google web search. Google also has tbm and udm selectors for other result tabs. They cannot be combined in one request. For repeatable web-result research, keep the tab, location and device settings fixed.