Search Google
litescrape.google.serp.organicReturns a Google results page as JSON: organic results plus every other result group Google served, such as ads, AI Overview, knowledge graph, and local results
- Price
- $0.00015/successAt provider cost
- Success rate
- 63.9%Last 30 days · 168,903 calls
- Latency p50
- 4.4 sp95 38 s
- Last verified
- Sep 29, 2026Verified working
GEThttps://toolswitch.dev/v1/tools/litescrape.google.serp.organic?q=OpenAI+API+documentationPreview- Uses platform quota
- Synchronous response
- Reads public data
Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Query parameters | ||||
q | string | Optional | Search query, up to 2,048 characters. Required unless ludocid or kgmid is supplied. | coffee shops in Austin |
cr | string | Optional | Country restriction: one or more countryXX values joined with |, such as countryUS. | countryUS |
gl | string | Optional | Lowercase two-letter country code used to localize results. | us |
hl | string | Optional | Google interface and result language, such as en, en-US, or de. Defaults to en. | en |
lr | string | Optional | Language restriction: one or more lang_xx values joined with |, such as lang_en. | lang_en |
oq | string | Optional | Original query text from a Google URL, up to 2,048 characters; forwarded unchanged. | |
si | string | Optional | Opaque cached Google search context, up to 4,096 characters. | |
ibp | string | Optional | Google layout or expansion control, up to 4,096 characters. | |
lat | number | Optional | Latitude between -90 and 90. Supply with lon; conflicts with location and uule. | 30.2672 |
lon | number | Optional | Longitude between -180 and 180. Supply with lat; conflicts with location and uule. | -97.7431 |
num | integer | Optional | Requested result count, 1 to 10. A best-effort hint: Google may return fewer rows, and results are never padded. | |
pws | string | Optional | Google personalization flag: 0 or 1. 0 asks for non-personalized results. | |
tbm | string | Optional | Google vertical: lcl, vid, nws, shop, or pts. Google Images (isch) is rejected with 400 unsupported_search_vertical. | |
tbs | string | Optional | Google search-filter string, such as qdr:w, up to 4,096 characters. | |
uds | string | Optional | Opaque Google filter token, up to 4,096 characters. | |
as_q | string | Optional | Additional terms that must all match, up to 2,048 characters. | |
lsig | string | Optional | Opaque Google local or Knowledge Graph signature, up to 4,096 characters. | |
nfpr | string | Optional | Set 1 to disable Google spelling auto-correction, or 0 to allow it. | |
safe | string | Optional | Google adult-content filtering: active or off. | |
uule | string | Optional | Pre-encoded Google location token, up to 2,048 characters. Use only one of location, uule, or lat and lon. | |
as_dt | string | Optional | Include (i) or exclude (e) the as_sitesearch host. Requires as_sitesearch. | |
as_eq | string | Optional | Words the results must not contain, up to 2,048 characters. | |
as_lq | string | Optional | Return pages that link to this complete HTTP(S) URL. | |
as_oq | string | Optional | Additional terms of which any may match, up to 2,048 characters. | |
as_rq | string | Optional | Return pages related to this complete HTTP(S) URL. | |
gs_lp | string | Optional | Opaque Google autocomplete-session value from a Google URL, up to 4,096 characters; forwarded unchanged. | |
kgmid | string | Optional | Google Knowledge Graph machine ID, such as /m/0k8z. Can replace q. | /m/0k8z |
start | integer | Optional | Result offset for pagination. Defaults to 0. | 10 |
as_epq | string | Optional | Exact phrase the results must contain, up to 2,048 characters. | |
as_nhi | integer | Optional | Upper bound of a number range. Supply with as_nlo. | |
as_nlo | integer | Optional | Lower bound of a number range. Supply with as_nhi. | |
as_qdr | string | Optional | Date range: d, w, m, or y with an optional positive count, such as m3 for the past three months. | m3 |
device | string | Optional | Google returns its real layout for the selected device: desktop, tablet, or mobile. | desktop |
filter | string | Optional | Google similar-results filtering: 0 or 1. | |
radius | number | Optional | Search radius in meters around location or lat and lon, which it requires. 1 to 199 on desktop, 1 to 1,000 on tablet or mobile. | |
ludocid | string | Optional | Decimal Google CID for a local entity search. Can replace q. | 1234567890123456789 |
sclient | string | Optional | Google client label such as gws-wiz-serp: up to 64 letters, digits, dots, underscores, or hyphens. | |
timeout | number | Optional | Optional budget for the entire request in seconds, measured from gateway receipt until the response is ready to send. Includes admission, queueing and settlement. Must be greater than 0 and at most 90. On expiry, the call is not billed and returns 503 request_deadline_exceeded with retryable=true and a request ID. Omit to retain the standard server deadline. | |
location | string | Optional | Human-readable search location, up to 512 characters. Use only one of location, uule, or lat and lon. | Austin, Texas, United States |
peek_pws | string | Optional | Google personalization companion flag: 0 or 1, forwarded to Google unchanged. | |
fast_mode | boolean | Optional | Set true to return only organic_results, search_metadata, and search_parameters, skipping AI Overview and all other result groups. Only lowercase true or false are accepted. | |
color_scheme | string | Optional | Google's light or dark result presentation. | |
as_sitesearch | string | Optional | Hostname to include or exclude, such as example.com. A hostname, not a URL. | example.com |
google_domain | string | Optional | A Google domain from Google's supported list, such as google.com or google.co.uk. | google.com |
- Query parameters
qstringOptionalSearch query, up to 2,048 characters. Required unless ludocid or kgmid is supplied.
Example:
coffee shops in AustincrstringOptionalCountry restriction: one or more countryXX values joined with |, such as countryUS.
Example:
countryUSglstringOptionalLowercase two-letter country code used to localize results.
Example:
ushlstringOptionalGoogle interface and result language, such as en, en-US, or de. Defaults to en.
Example:
enlrstringOptionalLanguage restriction: one or more lang_xx values joined with |, such as lang_en.
Example:
lang_enoqstringOptionalOriginal query text from a Google URL, up to 2,048 characters; forwarded unchanged.
sistringOptionalOpaque cached Google search context, up to 4,096 characters.
ibpstringOptionalGoogle layout or expansion control, up to 4,096 characters.
latnumberOptionalLatitude between -90 and 90. Supply with lon; conflicts with location and uule.
Example:
30.2672lonnumberOptionalLongitude between -180 and 180. Supply with lat; conflicts with location and uule.
Example:
-97.7431numintegerOptionalRequested result count, 1 to 10. A best-effort hint: Google may return fewer rows, and results are never padded.
pwsstringOptionalGoogle personalization flag: 0 or 1. 0 asks for non-personalized results.
tbmstringOptionalGoogle vertical: lcl, vid, nws, shop, or pts. Google Images (isch) is rejected with 400 unsupported_search_vertical.
tbsstringOptionalGoogle search-filter string, such as qdr:w, up to 4,096 characters.
udsstringOptionalOpaque Google filter token, up to 4,096 characters.
as_qstringOptionalAdditional terms that must all match, up to 2,048 characters.
lsigstringOptionalOpaque Google local or Knowledge Graph signature, up to 4,096 characters.
nfprstringOptionalSet 1 to disable Google spelling auto-correction, or 0 to allow it.
safestringOptionalGoogle adult-content filtering: active or off.
uulestringOptionalPre-encoded Google location token, up to 2,048 characters. Use only one of location, uule, or lat and lon.
as_dtstringOptionalInclude (i) or exclude (e) the as_sitesearch host. Requires as_sitesearch.
as_eqstringOptionalWords the results must not contain, up to 2,048 characters.
as_lqstringOptionalReturn pages that link to this complete HTTP(S) URL.
as_oqstringOptionalAdditional terms of which any may match, up to 2,048 characters.
as_rqstringOptionalReturn pages related to this complete HTTP(S) URL.
gs_lpstringOptionalOpaque Google autocomplete-session value from a Google URL, up to 4,096 characters; forwarded unchanged.
kgmidstringOptionalGoogle Knowledge Graph machine ID, such as /m/0k8z. Can replace q.
Example:
/m/0k8zstartintegerOptionalResult offset for pagination. Defaults to 0.
Example:
10as_epqstringOptionalExact phrase the results must contain, up to 2,048 characters.
as_nhiintegerOptionalUpper bound of a number range. Supply with as_nlo.
as_nlointegerOptionalLower bound of a number range. Supply with as_nhi.
as_qdrstringOptionalDate range: d, w, m, or y with an optional positive count, such as m3 for the past three months.
Example:
m3devicestringOptionalGoogle returns its real layout for the selected device: desktop, tablet, or mobile.
Example:
desktopfilterstringOptionalGoogle similar-results filtering: 0 or 1.
radiusnumberOptionalSearch radius in meters around location or lat and lon, which it requires. 1 to 199 on desktop, 1 to 1,000 on tablet or mobile.
ludocidstringOptionalDecimal Google CID for a local entity search. Can replace q.
Example:
1234567890123456789sclientstringOptionalGoogle client label such as gws-wiz-serp: up to 64 letters, digits, dots, underscores, or hyphens.
timeoutnumberOptionalOptional budget for the entire request in seconds, measured from gateway receipt until the response is ready to send. Includes admission, queueing and settlement. Must be greater than 0 and at most 90. On expiry, the call is not billed and returns 503 request_deadline_exceeded with retryable=true and a request ID. Omit to retain the standard server deadline.
locationstringOptionalHuman-readable search location, up to 512 characters. Use only one of location, uule, or lat and lon.
Example:
Austin, Texas, United Statespeek_pwsstringOptionalGoogle personalization companion flag: 0 or 1, forwarded to Google unchanged.
fast_modebooleanOptionalSet true to return only organic_results, search_metadata, and search_parameters, skipping AI Overview and all other result groups. Only lowercase true or false are accepted.
color_schemestringOptionalGoogle's light or dark result presentation.
as_sitesearchstringOptionalHostname to include or exclude, such as example.com. A hostname, not a URL.
Example:
example.comgoogle_domainstringOptionalA Google domain from Google's supported list, such as google.com or google.co.uk.
Example:
google.com
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the console.
curl -X GET 'https://toolswitch.dev/v1/tools/litescrape.google.serp.organic?q=OpenAI+API+documentation' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/litescrape.google.serp.organic?q=OpenAI+API+documentation",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/litescrape.google.serp.organic?q=OpenAI+API+documentation", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());This gateway API is in preview; its URL and authentication may change. The example parameters are sample data. Calls are billed at $0.00015/success, including the service fee.