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 GET /v1/google-search/ai-mode GET /v1/google-search/ai-overview GET /v1/google-search/light GET /v1/google-search/autocomplete GET /v1/google-search/related-questions GET /v1/google-search/forums GET /v1/google-search/ads GET /v1/google-search/about-this-result GET /v1/google-search/ads-transparency GET /v1/google-search/ads-transparency-details 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.
Authorization: Bearer YOUR_API_KEYSend 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.
Google Search: Web search
GET https://api.apihop.ai/v1/google-search/search
Request parameters
| Field | Type | Constraints | Example |
|---|---|---|---|
url | string | Complete 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: 32768 | https://www.google.com/search?q=coffee%20beans&hl=en&gl=us |
device_os | string | Optional 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, ios | ios |
query | string | 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.; query: optional; minLength: 1; maxLength: 24576; UTF-8 bytes: 8192 | coffee |
query_encoded | boolean | 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.; query_encoded: optional | true |
uule | string | 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.; uule: optional; minLength: 3; maxLength: 4096; ^[wa]\+(?:[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}$ | w+CAIQICIaQXVzdGluLFRleGFzLFVuaXRlZCBTdGF0ZXM |
rewrite_links | boolean | 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.; rewrite_links: optional | true |
zero_trace | boolean | When 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: optional | true |
device | string | Search as a mobile, tablet, or desktop device.; device: optional; mobile, tablet, desktop | mobile |
safe | string | 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.; safe: optional; active, off | active |
color_scheme | string | Request 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, dark | light |
ludocid | string | Google place CID as a nonzero unsigned 64-bit decimal string. Keep it as a string to preserve precision.; ludocid: optional; maxLength: 20 | - |
lsig | string | Google place signature from a local result, used to select its map or Knowledge Graph view.; lsig: optional; maxLength: 2048 | - |
kgmid | string | Google Knowledge Graph entity ID beginning with /m/ or /g/. Google may use the entity’s original search context.; kgmid: optional; maxLength: 131 | - |
si | string | Native Google token selecting a cached search or Knowledge Graph tab. Google may use the token’s original search context.; si: optional; maxLength: 8192 | - |
ibp | string | Native Google layout selector, for example gwp;0,7 to expand a place Knowledge Graph.; ibp: optional; maxLength: 2048 | - |
uds | string | Native Google search-filter token returned in Google’s filter links.; uds: optional; maxLength: 8192 | - |
pws | integer | 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 the data service account.; pws: optional; 0, 1 | 0 |
nfpr | integer | Controls Google query correction. 1 asks Google to search the submitted query without automatic spelling correction; 0 keeps normal correction behavior.; nfpr: optional; 0, 1 | 0 |
filter | integer | 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.; filter: optional; 0, 1 | 0 |
lr | string | Restrict Google result documents by language using lang_<code> syntax. Join alternatives with |, for example lang_fr|lang_de.; lr: optional; ^lang_[a-z]{2,3}(\|lang_[a-z]{2,3})*$ | lang_fr |
cr | string | Restrict Google result documents by country using country<CC> syntax. Join alternatives with |, for example countryUS|countryCA.; cr: optional; ^country[A-Za-z]{2}(\|country[A-Za-z]{2})*$ | countryFR |
start | integer | Zero-based result offset. Off-grid values are accepted.; start: optional; min: 0 | 10 |
google_domain | string | 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.; 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, ... 186 | google.co.uk |
gl | string | Two-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, ... 252 | ad |
hl | string | Google 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, ... 76 | af |
location | string | An Active Google Canonical Name from the pinned geo-target dataset. Mutually exclusive with coordinates and uule.; location: optional; minLength: 1 | Austin,Texas,United States |
coordinates | string | The 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} |
radius | integer | 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.; radius: optional; min: 1; max: 1000 | 150 |
tbs | string | 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.; tbs: optional | qdr:h |
tbm | string | 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.; tbm: optional; nws, vid, isch, shop, lcl, bks | nws |
udm | integer | 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.; udm: optional; 1, 2, 6, 7, 12, 14, 28, 36, 50 | 2 |
Validation rules
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedboolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejectedcoordinates: 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 metersdevice_os => device = mobile OR tabletquery XOR url; tbm XOR udm when selecting a search tabquery: <= 8192 UTF-8 bytes after decoding; query_encoded=true => URL-encoded query value, not a URL or q= prefixurl: HTTPS Google /search with nonempty q or as_q; only device, device_os, zero_trace and rewrite_links may accompany urlludocid: nonzero unsigned 64-bit decimal string; preserve numeric precision
Examples
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
| Field | Type | Constraints | Example |
|---|---|---|---|
query | string | Text to search for on the selected service. At most 8,192 UTF-8 bytes.; query: REQUIRED; minLength: 1; UTF-8 bytes: 8192 | how do solar panels work |
country | string | Two-letter country or storefront code, such as us or gb.; country: optional; ^[A-Za-z]{2}$ | - |
language | string | Provider-supported language code, such as en.; language: optional | - |
device | string | Device presentation for the source request.; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | Do not archive source or parsed response artifacts.; zero_trace: optional | true |
location | string | Location to search around, such as Austin, TX.; location: optional | - |
coordinates | string | Latitude 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} |
uule | string | Encoded Google location; cannot be combined with location or coordinates.; uule: optional; maxLength: 4096 | - |
image_url | string | Public HTTPS image URL for an initial or follow-up question.; image_url: optional; maxLength: 2048 | - |
continuable | boolean | Return an encrypted, account-bound conversation token. Starts with a dedicated unbanked session; expires 15 minutes after the first request.; continuable: optional | true |
subsequent_request_token | string | Token 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 supportedboolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejectedcoordinates: 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 sourceimage_url: public HTTPS image URL; no credentials, fragment or port
Examples
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
| Field | Type | Constraints | Example |
|---|---|---|---|
query | string | Text to search for on the selected service. At most 8,192 UTF-8 bytes.; query: optional; minLength: 1; UTF-8 bytes: 8192 | how do solar panels work |
country | string | Two-letter country or storefront code, such as us or gb.; country: optional; ^[A-Za-z]{2}$ | - |
language | string | Provider-supported language code, such as en.; language: optional | - |
device | string | Device presentation for the source request.; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | Do not archive source or parsed response artifacts.; zero_trace: optional | true |
page_token | string | AI 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 supportedboolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejectedquery XOR page_token; page_token: copy from a fresh search response; preserve original query and localepage_token: use within one minute; valid page without AI Overview => feature_available=false
Examples
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"Google Search: Light search
GET https://api.apihop.ai/v1/google-search/light
Request parameters
| Field | Type | Constraints | Example |
|---|---|---|---|
query | string | Text to search for on the selected service. At most 8,192 UTF-8 bytes.; query: REQUIRED; minLength: 1; UTF-8 bytes: 8192 | coffee |
country | string | Two-letter country or storefront code, such as us or gb.; country: optional; ^[A-Za-z]{2}$ | - |
language | string | Provider-supported language code, such as en.; language: optional | - |
page | integer | One-based page number.; page: optional; min: 1; max: 1000 | 1 |
location | string | Location to search around, such as Austin, TX.; location: optional | - |
safe | string | Provider safe-search filtering.; safe: optional; active, off | active |
time_range | string | Provider-supported time filter.; time_range: optional | - |
device | string | Device presentation for the source request.; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | Do not archive source or parsed response artifacts.; zero_trace: optional | true |
coordinates | string | Latitude 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} |
uule | string | Encoded Google location; cannot be combined with location or coordinates.; uule: optional; maxLength: 4096 | - |
google_domain | string | Google country domain, such as google.com or google.co.uk.; google_domain: optional | - |
lr | string | Restrict results to language codes joined with |.; lr: optional; ^lang_[a-z]{2,3}(?:\|lang_[a-z]{2,3})*$ | - |
nfpr | integer | Control automatic spelling correction (1 excludes corrected results).; nfpr: optional; 0, 1 | 0 |
filter | integer | Control omitted/similar results filtering (1 enables it).; filter: optional; 0, 1 | 0 |
start | integer | Source result offset, starting at zero. The provider determines page size.; start: optional; min: 0; max: 1000 | 0 |
Validation rules
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedboolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejectedcoordinates: 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
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
| Field | Type | Constraints | Example |
|---|---|---|---|
query | string | Text 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: 8192 | coffee |
country | string | Two-letter country or storefront code, such as us or gb.; country: optional; ^[A-Za-z]{2}$ | - |
language | string | Provider-supported language code, such as en.; language: optional | - |
limit | integer | Maximum number of items to return. The provider may return fewer.; limit: optional; min: 1; max: 20 | 1 |
device | string | Device presentation for the source request.; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | Do not archive source or parsed response artifacts.; zero_trace: optional | true |
client | string | Native autocomplete client, default firefox.; client: optional; chrome, chrome-omni, gws-wiz, safari, firefox, psy-ab, toolbar, youtube, gws-wiz-local | chrome |
cp | integer | Cursor position in UTF-16 code units; defaults to the end of the query.; cp: optional; min: 0; max: 8192 | 0 |
Validation rules
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedboolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejected
Examples
curl --get "https://api.apihop.ai/v1/google-search/autocomplete" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=coffee"Google Search: Related questions
GET https://api.apihop.ai/v1/google-search/related-questions
Request parameters
| Field | Type | Constraints | Example |
|---|---|---|---|
query | string | Text to search for on the selected service. At most 8,192 UTF-8 bytes.; query: optional; minLength: 1; UTF-8 bytes: 8192 | how do solar panels work |
country | string | Two-letter country or storefront code, such as us or gb.; country: optional; ^[A-Za-z]{2}$ | - |
language | string | Provider-supported language code, such as en.; language: optional | - |
device | string | Device presentation for the source request.; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | Do not archive source or parsed response artifacts.; zero_trace: optional | true |
next_page_token | string | Copy 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 supportedboolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejectednext_page_token: copy from a fresh response; keep original query, localization and filters; do not fabricate tokensquery OR next_page_token: required; result tokens expand an individual question
Examples
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"Google Search: Forum search
GET https://api.apihop.ai/v1/google-search/forums
Request parameters
| Field | Type | Constraints | Example |
|---|---|---|---|
query | string | Text to search for on the selected service. At most 8,192 UTF-8 bytes.; query: REQUIRED; minLength: 1; UTF-8 bytes: 8192 | best coffee grinder |
country | string | Two-letter country or storefront code, such as us or gb.; country: optional; ^[A-Za-z]{2}$ | - |
language | string | Provider-supported language code, such as en.; language: optional | - |
page | integer | One-based page number.; page: optional; min: 1; max: 1000 | 1 |
location | string | Location to search around, such as Austin, TX.; location: optional | - |
safe | string | Provider safe-search filtering.; safe: optional; active, off | active |
time_range | string | Provider-supported time filter.; time_range: optional | - |
device | string | Device presentation for the source request.; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | Do not archive source or parsed response artifacts.; zero_trace: optional | true |
coordinates | string | Latitude 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} |
uule | string | Encoded Google location; cannot be combined with location or coordinates.; uule: optional; maxLength: 4096 | - |
nfpr | integer | Control automatic spelling correction (1 excludes corrected results).; nfpr: optional; 0, 1 | 0 |
filter | integer | Control omitted/similar results filtering (1 enables it).; filter: optional; 0, 1 | 0 |
start | integer | Source result offset, starting at zero. The provider determines page size.; start: optional; min: 0; max: 1000 | 0 |
tbs | string | Native Google comma-separated key:value filters.; tbs: optional; maxLength: 512 | - |
period_unit | string | Unit for a recent-results time range.; period_unit: optional; s, n, h, d, w, m, y | s |
period_value | integer | Number of units in the recent-results time range; defaults to 1.; period_value: optional; min: 1; max: 2147483647 | 1 |
start_date | string | Inclusive start date in YYYYMMDD format.; start_date: optional; ^[0-9]{8}$ | - |
end_date | string | Inclusive 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 supportedboolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejectedcoordinates: 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
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
| Field | Type | Constraints | Example |
|---|---|---|---|
query | string | Text to search for on the selected service. At most 8,192 UTF-8 bytes.; query: REQUIRED; minLength: 1; UTF-8 bytes: 8192 | car insurance |
country | string | Two-letter country or storefront code, such as us or gb.; country: optional; ^[A-Za-z]{2}$ | - |
language | string | Provider-supported language code, such as en.; language: optional | - |
location | string | Location to search around, such as Austin, TX.; location: optional | - |
device | string | Device presentation for the source request.; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | Do not archive source or parsed response artifacts.; zero_trace: optional | true |
coordinates | string | Latitude 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} |
safe | string | Provider safe-search filtering.; safe: optional; active, off | active |
nfpr | integer | Control automatic spelling correction (1 excludes corrected results).; nfpr: optional; 0, 1 | 0 |
Validation rules
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedboolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejectedcoordinates: 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
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
| Field | Type | Constraints | Example |
|---|---|---|---|
query | string | Website URL whose source information should be retrieved. Alternative to req_token.; query: optional; minLength: 1; UTF-8 bytes: 8192 | https://www.starbucks.com/ |
req_token | string | Native About This Result req token, as an alternative to query.; req_token: optional; maxLength: 16384; ^[A-Za-z0-9_-]+={0,2}$ | - |
country | string | Two-letter country or storefront code, such as us or gb.; country: optional; ^[A-Za-z]{2}$ | - |
language | string | Provider-supported language code, such as en.; language: optional | - |
google_domain | string | Google country domain, such as google.com or google.co.uk.; google_domain: optional | - |
zero_trace | boolean | Do not archive source or parsed response artifacts.; zero_trace: optional | true |
Validation rules
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedboolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejectedquery XOR req_token; query: website URL; req_token: copy from a fresh About This Result selector
Examples
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/"Google Search: Ad creative search
GET https://api.apihop.ai/v1/google-search/ads-transparency
Request parameters
| Field | Type | Constraints | Example |
|---|---|---|---|
query | string | Text to search for on the selected service. At most 8,192 UTF-8 bytes.; query: optional; minLength: 1; UTF-8 bytes: 8192 | nike.com |
country | string | Two-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 |
language | string | Provider-supported language code, such as en.; language: optional | - |
limit | integer | Maximum number of items to return. The provider may return fewer.; limit: optional; min: 1; max: 100 | 1 |
id | string | The provider's identifier, as returned by its search results.; id: optional | - |
category | string | A category identifier supported by this operation.; category: optional; image, text, video | image |
next_page_token | string | Copy 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 | - |
device | string | Device presentation for the source request.; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | Do not archive source or parsed response artifacts.; zero_trace: optional | true |
advertiser_id | string | One advertiser ID or a comma-separated list. Alternative to id and query.; advertiser_id: optional; maxLength: 3499 | - |
platform | string | platform; platform: optional; PLAY, MAPS, SEARCH, SHOPPING, YOUTUBE | PLAY |
political_ads | boolean | Search political advertisements; requires a specific region.; political_ads: optional | true |
get_advertiser | boolean | Include details for a single requested advertiser.; get_advertiser: optional | true |
region | string | Ads 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: 8 | anywhere |
start_date | string | Inclusive starting date in YYYYMMDD format.; start_date: optional; ^[0-9]{8}$ | - |
end_date | string | Exclusive ending date in YYYYMMDD format.; end_date: optional; ^[0-9]{8}$ | - |
creative_format | string | Creative format. Alternative to category.; creative_format: optional; image, text, video | image |
Validation rules
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedboolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejectednext_page_token: copy from a fresh response; keep original query, localization and filters; do not fabricate tokensexactly one of query, id, advertiser_id; category XOR creative_format when selecting a creative formatid, advertiser_id: AR-prefixed IDs, comma-separated, up to 100; get_advertiser=true => exactly one advertiser IDpolitical_ads=true => explicit country or region other than anywhere; start_date < end_date; dates must exist
Examples
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
| Field | Type | Constraints | Example |
|---|---|---|---|
advertiser_id | string | Google Ads advertiser ID from an advertiser or creative URL.; advertiser_id: REQUIRED; maxLength: 34; ^AR[0-9]{1,32}$ | ${ADVERTISER_ID} |
creative_id | string | Google Ads creative ID from its details URL.; creative_id: REQUIRED; maxLength: 34; ^CR[0-9]{1,32}$ | ${CREATIVE_ID} |
region | string | Ads geographic criterion code or anywhere. Defaults to anywhere.; region: optional; anywhere, 2004, 2008, 2010, 2012, 2016, 2020, 2024, 2028, 2031, ... 245 | anywhere |
zero_trace | boolean | Do not archive source or parsed response artifacts.; zero_trace: optional | true |
Validation rules
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedboolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejectedadvertiser_id AND creative_id: copy from a fresh ads-transparency response; sample identifiers do not prove availability
Examples
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.
{
"success": true,
"request_id": "example-request",
"data": {
"format": "json",
"content": {
"results": []
}
}
}