Search Google
Returns normalized Google results, or encoded source HTML.
Request
- Base URL: https://api.prismcrawl.com
- URL: https://api.prismcrawl.com/v1/google/search
- Auth: API key in header x-api-key
Request body
Response content format. md returns Markdown in data.content with data.format=md; the JSON success/request envelope remains. Accept: text/markdown also selects Markdown unless output or html=true is explicit. html is an alias for html=true and retains the existing Brotli/Base64 source format.
Select fields within data.content for JSON or Markdown. Supports comma-separated paths, non-negative array indices, half-open slices [0:3] (either bound may be omitted), [] and .{nested,subqueries}. Up to128 selections and16 levels. Missing fields are omitted; selected declared fields retain their zero defaults. The request envelope and credit headers remain. Include next_page_token when pagination is needed. Incompatible with HTML output. This changes response presentation only; tracing-enabled history retains the complete JSON result.
Accepted for compatibility. Searches are always fetched without a result cache for either value; normal successful-request billing applies.
The search query. The UTF-8 representation must not exceed 8,192 bytes; non-ASCII characters may use more than one byte. When query_encoded is true, supply a URL-encoded query value; the 8,192-byte limit applies after decoding.
When true, query is already a URL-encoded query value and is sent without encoding it again. Use %HH escapes for reserved and non-ASCII characters; + or %20 represents a space and %2B a literal plus. Unreserved characters and !'()* may remain literal. Do not supply a URL or q= prefix. Malformed escapes, raw separators, and invalid UTF-8 are rejected. The decoded query must be nonempty and at most 8,192 UTF-8 bytes; the encoded value is limited to 24,576 characters. A query containing only unreserved characters is valid. Response search_parameters.q contains decoded text.
Raw Google-encoded location, forwarded unchanged. Accepts a w+/a+ prefix and a nonempty standard or URL-safe Base64 payload, with or without padding; existing values do not need to be converted. Mutually exclusive with location, coordinates, and radius. Google may ignore unsupported payloads; acceptance does not guarantee location targeting. Invalid types or formats return an uncharged HTTP 400 before a search is sent to Google. Normal search billing applies to accepted inputs.
Return Brotli-compressed, Base64-encoded source HTML instead of normalized JSON.
Set rewrite_links to true to replace Google /goto and /url anchor links in returned and archived HTML, including HTML archived for JSON requests. Default: false. JSON results are unaffected and have always used resolved destination URLs when available.
When true, PrismCrawl does not store the source HTML or parsed JSON. Audit and billing metadata is retained, but all other data is permanently discarded. Request history exposes only type ZERO_TRACE, the request HTTP status code, and whether the account was charged.
Search as a mobile, tablet, or desktop device.
Safe-search mode. active enables Google's filtering and Bing Strict SafeSearch; off requests unfiltered results. Search providers may still suppress content required by law or policy.
Request the provider's light or dark result-page theme. This affects source-page presentation, not ranking, and providers may ignore it.
Google place CID as a nonzero unsigned 64-bit decimal string. Keep it as a string to preserve precision.
Google place signature from a local result, used to select its map or Knowledge Graph view.
Google Knowledge Graph entity ID beginning with /m/ or /g/. Google may use the entity’s original search context.
Native Google token selecting a cached search or Knowledge Graph tab. Google may use the token’s original search context.
Native Google layout selector, for example gwp;0,7 to expand a place Knowledge Graph.
Native Google search-filter token returned in Google’s filter links.
Requests Google personalization off (0) or permits it (1). Omit to leave Google’s default unchanged. This does not disable location, language, or device effects, and does not personalize results to a PrismCrawl account.
Controls Google query correction. 1 asks Google to search the submitted query without automatic spelling correction; 0 keeps normal correction behavior.
Requests Google duplicate-result filtering (1) or disables it (0). Google documents this behavior for Programmable Search, but does not guarantee it for the consumer HTML endpoint used here.
Restrict Google result documents by language using lang_<code> syntax. Join alternatives with |, for example lang_fr|lang_de.
Restrict Google result documents by country using country<CC> syntax. Join alternatives with |, for example countryUS|countryCA.
Zero-based result offset. Off-grid values are accepted.
Google domain used for the search, written without a scheme or www. prefix. This is independent of gl, hl, location, and coordinates. Supported values follow the search-capable entries in Google's current domain list; google.cn is excluded. Case-insensitive.
Two-letter Google result-country code. Matching results are boosted rather than strictly filtered. Case-insensitive.
Google interface language. This can also influence result selection for international queries. Case-insensitive.
An Active Google Canonical Name from the pinned geo-target dataset. Mutually exclusive with coordinates and uule.
Radius in meters used to bias results around coordinates; results outside it may still appear. Requires coordinates. The maximum is 199 for desktop or an omitted device, and 1,000 for mobile or tablet.
Google's native comma-separated key:value advanced-filter container, up to 512 characters. It supports time filters, sorting, and filters associated with a selected search tab. Relative time ranges use qdr:<unit>[amount]; custom inclusive ranges use cdr:1,cd_min:M/D/YYYY,cd_max:M/D/YYYY. Native filters may vary by search vertical and Google market. The unreliable li verbatim filter is not supported.
Select a supported Google search vertical using its native tbm code. Mutually exclusive with udm. News (nws) does not support the site: operator; use /v1/google/news for site-filtered news queries.
Select a supported Google search tab using its native numeric udm value: 1 (Local), 2 (Images), 6 (Forums), 7 (Videos), 12 (News), 14 (Web), 28 (Shopping), 36 (Books), or 50 (AI Mode). Availability may vary by market. Mutually exclusive with tbm. News (12) does not support the site: operator; use /v1/google/news for site-filtered news queries.
Example request
{
"json_restrictor": "results[].{title,url},has_next_page,next_page_token",
"query": "best espresso machines",
"uule": "w+CAIQICIaQXVzdGluLFRleGFzLFVuaXRlZCBTdGF0ZXM",
"lr": "lang_fr",
"cr": "countryFR",
"start": 10,
"google_domain": "google.co.uk",
"location": "Austin,Texas,United States",
"coordinates": {
"latitude": 30.2672,
"longitude": -97.7431
},
"radius": 150,
"tbs": "qdr:h",
"tbm": "nws",
"udm": 2
}Response
Search completed.
Changes
No recorded changes to this operation across all 1 revision of this API.