API Hop

Documentation

API Hop Docs

Google Search endpoint reference

Google Search: Web search · AI Mode answers · AI summaries · Light search · Search suggestions · Related questions · Forum search · Search ads · Source information · Ad creative search · Ad creative details.

Concurrency limit

AI and Data each share an account-wide pool of concurrent slots: 5 AI / 2 Data by default, adjusted by your subscription. Endpoint overrides still cannot exceed the category pool. Reaching either limit returns HTTP 429. Asynchronous tasks occupy a slot until execution ends.

GET /v1/google-search/search
Default limit: 2
GET /v1/google-search/ai-mode
Default limit: 2
GET /v1/google-search/ai-overview
Default limit: 2
GET /v1/google-search/light
Default limit: 2
GET /v1/google-search/autocomplete
Default limit: 2
GET /v1/google-search/related-questions
Default limit: 2
GET /v1/google-search/forums
Default limit: 2
GET /v1/google-search/ads
Default limit: 2
GET /v1/google-search/about-this-result
Default limit: 2
GET /v1/google-search/ads-transparency
Default limit: 2
GET /v1/google-search/ads-transparency-details
Default limit: 2

Google Search: Web search · AI Mode answers · AI summaries · Light search · Search suggestions · Related questions · Forum search · Search ads · Source information · Ad creative search · Ad creative details.

Authentication and billing

The default price is $0.0003 (300 credits) per successful request. Use your API Hop API key. Availability depends on active gateways and key permissions. Check the current catalog and your account for the price per successful request; account-specific pricing takes precedence. Successful empty results are billable. Failed requests release the credit reservation. Requests time out after 60 seconds, with no automatic retry or pagination. Settlement failures never repeat the upstream request.

http
Authorization: Bearer YOUR_API_KEY

Send query parameters only, without a request body. Unknown, repeated, empty or invalid values are rejected. JSON only; no automatic pagination or retries. Copy identifiers and continuation tokens from fresh responses. Examples are illustrative. Each completed lookup, including a confirmed empty or unavailable result, is billed separately. XOR means exactly one parameter; NOT means excluded; => means requires.

GET https://api.apihop.ai/v1/google-search/search

Request parameters

FieldTypeConstraintsExample
urlstringComplete percent-encoded HTTPS Google /search URL, preserved unchanged. Use instead of query and separate search controls. q or as_q is required; constituents use normal parameter validation. Conflicting body fields, duplicate/unsupported parameters, malformed encoding, credentials, ports and fragments are rejected. Common browser tracking parameters are retained. Device and output options remain separate.; url: optional; maxLength: 32768https://www.google.com/search?q=coffee%20beans&hl=en&gl=us
device_osstringOptional operating system for device=mobile or tablet. Omit or use android to retain the existing Android identity. ios selects an iPhone for mobile or an iPad for tablet. Requires an explicit mobile/tablet device; unavailable for desktop.; device_os: optional; android, iosios
querystringThe 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.; query: optional; minLength: 1; maxLength: 24576; UTF-8 bytes: 8192coffee
query_encodedbooleanWhen 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.; query_encoded: optionaltrue
uulestringRaw 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.; uule: optional; minLength: 3; maxLength: 4096; ^[wa]\+(?:[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}$w+CAIQICIaQXVzdGluLFRleGFzLFVuaXRlZCBTdGF0ZXM
rewrite_linksbooleanSet 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.; rewrite_links: optionaltrue
zero_tracebooleanWhen true, the data service does not store the source HTML or parsed JSON. Audit and billing metadata is retained, but all other data is permanently discarded. Individual history lookup exposes only type ZERO_TRACE, HTTP status code, and credit charge state. History listing also includes request ID, completion time, duration and success.; zero_trace: optionaltrue
devicestringSearch as a mobile, tablet, or desktop device.; device: optional; mobile, tablet, desktopmobile
safestringSafe-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.; safe: optional; active, offactive
color_schemestringRequest the provider's light or dark result-page theme. This affects source-page presentation, not ranking, and providers may ignore it.; color_scheme: optional; light, darklight
ludocidstringGoogle place CID as a nonzero unsigned 64-bit decimal string. Keep it as a string to preserve precision.; ludocid: optional; maxLength: 20-
lsigstringGoogle place signature from a local result, used to select its map or Knowledge Graph view.; lsig: optional; maxLength: 2048-
kgmidstringGoogle Knowledge Graph entity ID beginning with /m/ or /g/. Google may use the entity’s original search context.; kgmid: optional; maxLength: 131-
sistringNative Google token selecting a cached search or Knowledge Graph tab. Google may use the token’s original search context.; si: optional; maxLength: 8192-
ibpstringNative Google layout selector, for example gwp;0,7 to expand a place Knowledge Graph.; ibp: optional; maxLength: 2048-
udsstringNative Google search-filter token returned in Google’s filter links.; uds: optional; maxLength: 8192-
pwsintegerRequests 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 the data service account.; pws: optional; 0, 10
nfprintegerControls Google query correction. 1 asks Google to search the submitted query without automatic spelling correction; 0 keeps normal correction behavior.; nfpr: optional; 0, 10
filterintegerRequests 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.; filter: optional; 0, 10
lrstringRestrict Google result documents by language using lang_<code> syntax. Join alternatives with &#124;, for example lang_fr&#124;lang_de.; lr: optional; ^lang_[a-z]{2,3}(\&#124;lang_[a-z]{2,3})*$lang_fr
crstringRestrict Google result documents by country using country<CC> syntax. Join alternatives with &#124;, for example countryUS&#124;countryCA.; cr: optional; ^country[A-Za-z]{2}(\&#124;country[A-Za-z]{2})*$countryFR
startintegerZero-based result offset. Off-grid values are accepted.; start: optional; min: 010
google_domainstringGoogle 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.; google_domain: optional; google.com, google.ad, google.ae, google.com.af, google.com.ag, google.al, google.am, google.co.ao, google.com.ar, google.as, ... 186google.co.uk
glstringTwo-letter Google result-country code. Matching results are boosted rather than strictly filtered. Case-insensitive.; gl: optional; ad, ae, af, ag, ai, al, am, an, ao, aq, ... 252ad
hlstringGoogle interface language. This can also influence result selection for international queries. Case-insensitive.; hl: optional; af, sq, am, ar, hy, az, bn, bg, my, ca, ... 76af
locationstringAn Active Google Canonical Name from the pinned geo-target dataset. Mutually exclusive with coordinates and uule.; location: optional; minLength: 1Austin,Texas,United States
coordinatesstringThe searcher's latitude and longitude. Mutually exclusive with location and uule. Pass a JSON object with numeric latitude and longitude as this query parameter.; coordinates: optional{"latitude":30.2672,"longitude":-97.7431}
radiusintegerRadius 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.; radius: optional; min: 1; max: 1000150
tbsstringGoogle'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.; tbs: optionalqdr:h
tbmstringSelect 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.; tbm: optional; nws, vid, isch, shop, lcl, bksnws
udmintegerSelect 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.; udm: optional; 1, 2, 6, 7, 12, 14, 28, 36, 502

Validation rules

  • GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supported
  • boolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejected
  • coordinates: JSON object {"latitude":number,"longitude":number}; latitude -90..90; longitude -180..180; NOT (location AND coordinates); NOT (uule AND location); NOT (uule AND coordinates)
  • radius => coordinates; NOT uule; desktop radius <= 199 meters, mobile/tablet radius <= 1000 meters
  • device_os => device = mobile OR tablet
  • query XOR url; tbm XOR udm when selecting a search tab
  • query: <= 8192 UTF-8 bytes after decoding; query_encoded=true => URL-encoded query value, not a URL or q= prefix
  • url: HTTPS Google /search with nonempty q or as_q; only device, device_os, zero_trace and rewrite_links may accompany url
  • ludocid: nonzero unsigned 64-bit decimal string; preserve numeric precision

Examples

bash
curl --get "https://api.apihop.ai/v1/google-search/search" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "query=coffee"

Google Search: AI Mode answers

GET https://api.apihop.ai/v1/google-search/ai-mode

Request parameters

FieldTypeConstraintsExample
querystringText to search for on the selected service. At most 8,192 UTF-8 bytes.; query: REQUIRED; minLength: 1; UTF-8 bytes: 8192how do solar panels work
countrystringTwo-letter country or storefront code, such as us or gb.; country: optional; ^[A-Za-z]{2}$-
languagestringProvider-supported language code, such as en.; language: optional-
devicestringDevice presentation for the source request.; device: optional; desktop, mobile, tabletdesktop
zero_tracebooleanDo not archive source or parsed response artifacts.; zero_trace: optionaltrue
locationstringLocation to search around, such as Austin, TX.; location: optional-
coordinatesstringLatitude and longitude for location targeting. Pass a JSON object with numeric latitude and longitude as this query parameter.; coordinates: optional{"latitude":30.2672,"longitude":-97.7431}
uulestringEncoded Google location; cannot be combined with location or coordinates.; uule: optional; maxLength: 4096-
image_urlstringPublic HTTPS image URL for an initial or follow-up question.; image_url: optional; maxLength: 2048-
continuablebooleanReturn an encrypted, account-bound conversation token. Starts with a dedicated unbanked session; expires 15 minutes after the first request.; continuable: optionaltrue
subsequent_request_tokenstringToken returned by this endpoint. Send a new query, optionally an image, and keep the original locale/location. Requires no backend conversation storage. Google may expire the conversation sooner.; subsequent_request_token: optional; maxLength: 24576-

Validation rules

  • GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supported
  • boolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejected
  • coordinates: JSON object {"latitude":number,"longitude":number}; latitude -90..90; longitude -180..180; NOT (location AND coordinates); NOT (uule AND location); NOT (uule AND coordinates)
  • continuable=true: return a conversation token; subsequent_request_token: new query, optional image_url, same original locale/location; token expires after 15 minutes or earlier at the source
  • image_url: public HTTPS image URL; no credentials, fragment or port

Examples

bash
curl --get "https://api.apihop.ai/v1/google-search/ai-mode" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "query=how do solar panels work"

Google Search: AI summaries

GET https://api.apihop.ai/v1/google-search/ai-overview

Request parameters

FieldTypeConstraintsExample
querystringText to search for on the selected service. At most 8,192 UTF-8 bytes.; query: optional; minLength: 1; UTF-8 bytes: 8192how do solar panels work
countrystringTwo-letter country or storefront code, such as us or gb.; country: optional; ^[A-Za-z]{2}$-
languagestringProvider-supported language code, such as en.; language: optional-
devicestringDevice presentation for the source request.; device: optional; desktop, mobile, tabletdesktop
zero_tracebooleanDo not archive source or parsed response artifacts.; zero_trace: optionaltrue
page_tokenstringAI Overview token from Google Search; use within one minute. The token retains its original query, locale, and device.; page_token: optional; maxLength: 24576-

Validation rules

  • GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supported
  • boolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejected
  • query XOR page_token; page_token: copy from a fresh search response; preserve original query and locale
  • page_token: use within one minute; valid page without AI Overview => feature_available=false

Examples

bash
curl --get "https://api.apihop.ai/v1/google-search/ai-overview" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "query=how do solar panels work"

GET https://api.apihop.ai/v1/google-search/light

Request parameters

FieldTypeConstraintsExample
querystringText to search for on the selected service. At most 8,192 UTF-8 bytes.; query: REQUIRED; minLength: 1; UTF-8 bytes: 8192coffee
countrystringTwo-letter country or storefront code, such as us or gb.; country: optional; ^[A-Za-z]{2}$-
languagestringProvider-supported language code, such as en.; language: optional-
pageintegerOne-based page number.; page: optional; min: 1; max: 10001
locationstringLocation to search around, such as Austin, TX.; location: optional-
safestringProvider safe-search filtering.; safe: optional; active, offactive
time_rangestringProvider-supported time filter.; time_range: optional-
devicestringDevice presentation for the source request.; device: optional; desktop, mobile, tabletdesktop
zero_tracebooleanDo not archive source or parsed response artifacts.; zero_trace: optionaltrue
coordinatesstringLatitude and longitude for location targeting. Pass a JSON object with numeric latitude and longitude as this query parameter.; coordinates: optional{"latitude":30.2672,"longitude":-97.7431}
uulestringEncoded Google location; cannot be combined with location or coordinates.; uule: optional; maxLength: 4096-
google_domainstringGoogle country domain, such as google.com or google.co.uk.; google_domain: optional-
lrstringRestrict results to language codes joined with &#124;.; lr: optional; ^lang_[a-z]{2,3}(?:\&#124;lang_[a-z]{2,3})*$-
nfprintegerControl automatic spelling correction (1 excludes corrected results).; nfpr: optional; 0, 10
filterintegerControl omitted/similar results filtering (1 enables it).; filter: optional; 0, 10
startintegerSource result offset, starting at zero. The provider determines page size.; start: optional; min: 0; max: 10000

Validation rules

  • GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supported
  • boolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejected
  • coordinates: JSON object {"latitude":number,"longitude":number}; latitude -90..90; longitude -180..180; NOT (location AND coordinates); NOT (uule AND location); NOT (uule AND coordinates)

Examples

bash
curl --get "https://api.apihop.ai/v1/google-search/light" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "query=coffee"

Google Search: Search suggestions

GET https://api.apihop.ai/v1/google-search/autocomplete

Request parameters

FieldTypeConstraintsExample
querystringText to search for on the selected service. At most 100 Unicode code points. Longer queries return HTTP 400 without using a search credit.; query: REQUIRED; minLength: 1; maxLength: 100; UTF-8 bytes: 8192coffee
countrystringTwo-letter country or storefront code, such as us or gb.; country: optional; ^[A-Za-z]{2}$-
languagestringProvider-supported language code, such as en.; language: optional-
limitintegerMaximum number of items to return. The provider may return fewer.; limit: optional; min: 1; max: 201
devicestringDevice presentation for the source request.; device: optional; desktop, mobile, tabletdesktop
zero_tracebooleanDo not archive source or parsed response artifacts.; zero_trace: optionaltrue
clientstringNative autocomplete client, default firefox.; client: optional; chrome, chrome-omni, gws-wiz, safari, firefox, psy-ab, toolbar, youtube, gws-wiz-localchrome
cpintegerCursor position in UTF-16 code units; defaults to the end of the query.; cp: optional; min: 0; max: 81920

Validation rules

  • GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supported
  • boolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejected

Examples

bash
curl --get "https://api.apihop.ai/v1/google-search/autocomplete" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "query=coffee"

GET https://api.apihop.ai/v1/google-search/related-questions

Request parameters

FieldTypeConstraintsExample
querystringText to search for on the selected service. At most 8,192 UTF-8 bytes.; query: optional; minLength: 1; UTF-8 bytes: 8192how do solar panels work
countrystringTwo-letter country or storefront code, such as us or gb.; country: optional; ^[A-Za-z]{2}$-
languagestringProvider-supported language code, such as en.; language: optional-
devicestringDevice presentation for the source request.; device: optional; desktop, mobile, tabletdesktop
zero_tracebooleanDo not archive source or parsed response artifacts.; zero_trace: optionaltrue
next_page_tokenstringCopy the opaque next_page_token from the previous response using the same account, search parameters, device, and result limit. Tokens expire after one hour; restart pagination if rejected or expired.; next_page_token: optional; minLength: 1; maxLength: 24576-

Validation rules

  • GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supported
  • boolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejected
  • next_page_token: copy from a fresh response; keep original query, localization and filters; do not fabricate tokens
  • query OR next_page_token: required; result tokens expand an individual question

Examples

bash
curl --get "https://api.apihop.ai/v1/google-search/related-questions" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "query=how do solar panels work"

GET https://api.apihop.ai/v1/google-search/forums

Request parameters

FieldTypeConstraintsExample
querystringText to search for on the selected service. At most 8,192 UTF-8 bytes.; query: REQUIRED; minLength: 1; UTF-8 bytes: 8192best coffee grinder
countrystringTwo-letter country or storefront code, such as us or gb.; country: optional; ^[A-Za-z]{2}$-
languagestringProvider-supported language code, such as en.; language: optional-
pageintegerOne-based page number.; page: optional; min: 1; max: 10001
locationstringLocation to search around, such as Austin, TX.; location: optional-
safestringProvider safe-search filtering.; safe: optional; active, offactive
time_rangestringProvider-supported time filter.; time_range: optional-
devicestringDevice presentation for the source request.; device: optional; desktop, mobile, tabletdesktop
zero_tracebooleanDo not archive source or parsed response artifacts.; zero_trace: optionaltrue
coordinatesstringLatitude and longitude for location targeting. Pass a JSON object with numeric latitude and longitude as this query parameter.; coordinates: optional{"latitude":30.2672,"longitude":-97.7431}
uulestringEncoded Google location; cannot be combined with location or coordinates.; uule: optional; maxLength: 4096-
nfprintegerControl automatic spelling correction (1 excludes corrected results).; nfpr: optional; 0, 10
filterintegerControl omitted/similar results filtering (1 enables it).; filter: optional; 0, 10
startintegerSource result offset, starting at zero. The provider determines page size.; start: optional; min: 0; max: 10000
tbsstringNative Google comma-separated key:value filters.; tbs: optional; maxLength: 512-
period_unitstringUnit for a recent-results time range.; period_unit: optional; s, n, h, d, w, m, ys
period_valueintegerNumber of units in the recent-results time range; defaults to 1.; period_value: optional; min: 1; max: 21474836471
start_datestringInclusive start date in YYYYMMDD format.; start_date: optional; ^[0-9]{8}$-
end_datestringInclusive end date in YYYYMMDD format.; end_date: optional; ^[0-9]{8}$-

Validation rules

  • GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supported
  • boolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejected
  • coordinates: JSON object {"latitude":number,"longitude":number}; latitude -90..90; longitude -180..180; NOT (location AND coordinates); NOT (uule AND location); NOT (uule AND coordinates)

Examples

bash
curl --get "https://api.apihop.ai/v1/google-search/forums" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "query=best coffee grinder"

Google Search: Search ads

GET https://api.apihop.ai/v1/google-search/ads

Request parameters

FieldTypeConstraintsExample
querystringText to search for on the selected service. At most 8,192 UTF-8 bytes.; query: REQUIRED; minLength: 1; UTF-8 bytes: 8192car insurance
countrystringTwo-letter country or storefront code, such as us or gb.; country: optional; ^[A-Za-z]{2}$-
languagestringProvider-supported language code, such as en.; language: optional-
locationstringLocation to search around, such as Austin, TX.; location: optional-
devicestringDevice presentation for the source request.; device: optional; desktop, mobile, tabletdesktop
zero_tracebooleanDo not archive source or parsed response artifacts.; zero_trace: optionaltrue
coordinatesstringLatitude and longitude for location targeting. Pass a JSON object with numeric latitude and longitude as this query parameter.; coordinates: optional{"latitude":30.2672,"longitude":-97.7431}
safestringProvider safe-search filtering.; safe: optional; active, offactive
nfprintegerControl automatic spelling correction (1 excludes corrected results).; nfpr: optional; 0, 10

Validation rules

  • GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supported
  • boolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejected
  • coordinates: JSON object {"latitude":number,"longitude":number}; latitude -90..90; longitude -180..180; NOT (location AND coordinates); NOT (uule AND location); NOT (uule AND coordinates)
  • valid page without ads => ads_available=false; this endpoint reads ads and does not create campaigns

Examples

bash
curl --get "https://api.apihop.ai/v1/google-search/ads" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "query=car insurance"

Google Search: Source information

GET https://api.apihop.ai/v1/google-search/about-this-result

Request parameters

FieldTypeConstraintsExample
querystringWebsite URL whose source information should be retrieved. Alternative to req_token.; query: optional; minLength: 1; UTF-8 bytes: 8192https://www.starbucks.com/
req_tokenstringNative About This Result req token, as an alternative to query.; req_token: optional; maxLength: 16384; ^[A-Za-z0-9_-]+={0,2}$-
countrystringTwo-letter country or storefront code, such as us or gb.; country: optional; ^[A-Za-z]{2}$-
languagestringProvider-supported language code, such as en.; language: optional-
google_domainstringGoogle country domain, such as google.com or google.co.uk.; google_domain: optional-
zero_tracebooleanDo not archive source or parsed response artifacts.; zero_trace: optionaltrue

Validation rules

  • GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supported
  • boolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejected
  • query XOR req_token; query: website URL; req_token: copy from a fresh About This Result selector

Examples

bash
curl --get "https://api.apihop.ai/v1/google-search/about-this-result" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "query=https://www.starbucks.com/"

GET https://api.apihop.ai/v1/google-search/ads-transparency

Request parameters

FieldTypeConstraintsExample
querystringText to search for on the selected service. At most 8,192 UTF-8 bytes.; query: optional; minLength: 1; UTF-8 bytes: 8192nike.com
countrystringTwo-letter country or storefront code, such as us or gb.; country: optional; ad, ae, af, ag, ai, al, am, ao, aq, ar, ... 244; ^[A-Za-z]{2}$ad
languagestringProvider-supported language code, such as en.; language: optional-
limitintegerMaximum number of items to return. The provider may return fewer.; limit: optional; min: 1; max: 1001
idstringThe provider's identifier, as returned by its search results.; id: optional-
categorystringA category identifier supported by this operation.; category: optional; image, text, videoimage
next_page_tokenstringCopy the opaque next_page_token from the previous response using the same account, search parameters, device, and result limit. Tokens expire after one hour; restart pagination if rejected or expired.; next_page_token: optional; minLength: 1; maxLength: 24576-
devicestringDevice presentation for the source request.; device: optional; desktop, mobile, tabletdesktop
zero_tracebooleanDo not archive source or parsed response artifacts.; zero_trace: optionaltrue
advertiser_idstringOne advertiser ID or a comma-separated list. Alternative to id and query.; advertiser_id: optional; maxLength: 3499-
platformstringplatform; platform: optional; PLAY, MAPS, SEARCH, SHOPPING, YOUTUBEPLAY
political_adsbooleanSearch political advertisements; requires a specific region.; political_ads: optionaltrue
get_advertiserbooleanInclude details for a single requested advertiser.; get_advertiser: optionaltrue
regionstringAds geographic criterion, such as 2840 for the US, or anywhere. Overrides country.; region: optional; anywhere, 2004, 2008, 2010, 2012, 2016, 2020, 2024, 2028, 2031, ... 245; maxLength: 8anywhere
start_datestringInclusive starting date in YYYYMMDD format.; start_date: optional; ^[0-9]{8}$-
end_datestringExclusive ending date in YYYYMMDD format.; end_date: optional; ^[0-9]{8}$-
creative_formatstringCreative format. Alternative to category.; creative_format: optional; image, text, videoimage

Validation rules

  • GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supported
  • boolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejected
  • next_page_token: copy from a fresh response; keep original query, localization and filters; do not fabricate tokens
  • exactly one of query, id, advertiser_id; category XOR creative_format when selecting a creative format
  • id, advertiser_id: AR-prefixed IDs, comma-separated, up to 100; get_advertiser=true => exactly one advertiser ID
  • political_ads=true => explicit country or region other than anywhere; start_date < end_date; dates must exist

Examples

bash
curl --get "https://api.apihop.ai/v1/google-search/ads-transparency" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "query=nike.com"

Google Search: Ad creative details

GET https://api.apihop.ai/v1/google-search/ads-transparency-details

Request parameters

FieldTypeConstraintsExample
advertiser_idstringGoogle Ads advertiser ID from an advertiser or creative URL.; advertiser_id: REQUIRED; maxLength: 34; ^AR[0-9]{1,32}$${ADVERTISER_ID}
creative_idstringGoogle Ads creative ID from its details URL.; creative_id: REQUIRED; maxLength: 34; ^CR[0-9]{1,32}$${CREATIVE_ID}
regionstringAds geographic criterion code or anywhere. Defaults to anywhere.; region: optional; anywhere, 2004, 2008, 2010, 2012, 2016, 2020, 2024, 2028, 2031, ... 245anywhere
zero_tracebooleanDo not archive source or parsed response artifacts.; zero_trace: optionaltrue

Validation rules

  • GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supported
  • boolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejected
  • advertiser_id AND creative_id: copy from a fresh ads-transparency response; sample identifiers do not prove availability

Examples

bash
curl --get "https://api.apihop.ai/v1/google-search/ads-transparency-details" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "advertiser_id=${ADVERTISER_ID}" \
  --data-urlencode "creative_id=${CREATIVE_ID}"

Responses and errors

The native JSON response and numeric precision are preserved. The example below illustrates an empty successful result, not a live call. HTTP 400 means invalid input; 401 authentication required; 402 insufficient credit; 403 unavailable or unauthorized; 405 unsupported method; 429 rate limit; 5xx service or upstream failure. Keep X-Request-Id for diagnosis.

json
{
  "success": true,
  "request_id": "example-request",
  "data": {
    "format": "json",
    "content": {
      "results": []
    }
  }
}