API Hop

Documentation

API Hop Docs

Google Shopping endpoint reference

Search Google Shopping products, filters, product details and merchant offers.

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-shopping/search
Default limit: 2
GET /v1/google-shopping/light
Default limit: 2
GET /v1/google-shopping/filters
Default limit: 2
GET /v1/google-shopping/product
Default limit: 2
GET /v1/google-shopping/immersive-product
Default limit: 2

Search Google Shopping products, filters, product details and merchant offers.

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

Google Shopping: Search products

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

Request parameters

FieldTypeConstraintsExample
querystringText to search for on the selected service. At most 8,192 UTF-8 bytes.; query: optionalcoffee 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
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-
latitudenumberlatitude; requires the other coordinate.; latitude: optional; min: -90; max: 90-90
longitudenumberlongitude; requires the other coordinate.; longitude: optional; min: -180; max: 180-180
safestringProvider safe-search filtering.; safe: optional; active, offactive
uulestringEncoded Google location; cannot be combined with location or coordinates.; uule: optional; UTF-8 bytes: 4096-
google_domainstringGoogle country domain, such as google.com or google.co.uk.; google_domain: optional-
startintegerSource result offset, starting at zero. The provider determines page size.; start: optional; min: 0; max: 10000
shoprsstringNative Google filter token, or up to twenty tokens joined by ||. Supplies the query when query is omitted; named controls override corresponding filters.; shoprs: optional; UTF-8 bytes: 16384-
min_pricenumberLower price bound in the source country currency. Overrides the corresponding shoprs bound.; min_price: optional; min: 0; max: 10000000000
max_pricenumberUpper price bound in the source country currency. Overrides the corresponding shoprs bound.; max_price: optional; min: 0; max: 10000000000
sort_bystringPrice sorting: 1 for low to high, 2 for high to low. Overrides shoprs sorting.; sort_by: optional; 1, 21
free_shippingbooleanEnable or disable the native free shipping filter, overriding shoprs.; free_shipping: optionaltrue
on_salebooleanEnable or disable the native on sale filter, overriding shoprs.; on_sale: optionaltrue
small_businessbooleanEnable or disable the native small business filter, overriding shoprs.; small_business: optionaltrue

Validation rules

Send query parameters only, without a request body. Unknown, repeated, empty or invalid values are rejected. Only JSON responses are supported. No automatic pagination or retry is performed. The rules below use AND, OR, XOR (exactly one), NOT and => (requires).

  • GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supported
  • string: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integer
  • language: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/
  • latitude => longitude; longitude => latitude
  • NOT (page AND start)
  • min_price <= max_price
  • query OR shoprs: required
  • uule => NOT location AND NOT latitude AND NOT longitude

Examples

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

Google Shopping: Search products (light)

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

Request parameters

FieldTypeConstraintsExample
querystringText to search for on the selected service. At most 8,192 UTF-8 bytes.; query: optionalcoffee 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
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-
latitudenumberlatitude; requires the other coordinate.; latitude: optional; min: -90; max: 90-90
longitudenumberlongitude; requires the other coordinate.; longitude: optional; min: -180; max: 180-180
safestringProvider safe-search filtering.; safe: optional; active, offactive
uulestringEncoded Google location; cannot be combined with location or coordinates.; uule: optional; UTF-8 bytes: 4096-
google_domainstringGoogle country domain, such as google.com or google.co.uk.; google_domain: optional-
startintegerSource result offset, starting at zero. The provider determines page size.; start: optional; min: 0; max: 10000
shoprsstringNative Google filter token, or up to twenty tokens joined by &#124;&#124;. Supplies the query when query is omitted; named controls override corresponding filters.; shoprs: optional; UTF-8 bytes: 16384-
min_pricenumberLower price bound in the source country currency. Overrides the corresponding shoprs bound.; min_price: optional; min: 0; max: 10000000000
max_pricenumberUpper price bound in the source country currency. Overrides the corresponding shoprs bound.; max_price: optional; min: 0; max: 10000000000
sort_bystringPrice sorting: 1 for low to high, 2 for high to low. Overrides shoprs sorting.; sort_by: optional; 1, 21
free_shippingbooleanEnable or disable the native free shipping filter, overriding shoprs.; free_shipping: optionaltrue
on_salebooleanEnable or disable the native on sale filter, overriding shoprs.; on_sale: optionaltrue
small_businessbooleanEnable or disable the native small business filter, overriding shoprs.; small_business: optionaltrue

Validation rules

Send query parameters only, without a request body. Unknown, repeated, empty or invalid values are rejected. Only JSON responses are supported. No automatic pagination or retry is performed. The rules below use AND, OR, XOR (exactly one), NOT and => (requires).

  • GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supported
  • string: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integer
  • language: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/
  • latitude => longitude; longitude => latitude
  • NOT (page AND start)
  • min_price <= max_price
  • query OR shoprs: required
  • uule => NOT location AND NOT latitude AND NOT longitude

Examples

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

Google Shopping: Get shopping filters

GET https://api.apihop.ai/v1/google-shopping/filters

Request parameters

FieldTypeConstraintsExample
querystringText to search for on the selected service. At most 8,192 UTF-8 bytes.; query: REQUIREDcoffee 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-
locationstringLocation to search around, such as Austin, TX.; location: optional-
latitudenumberlatitude; requires the other coordinate.; latitude: optional; min: -90; max: 90-90
longitudenumberlongitude; requires the other coordinate.; longitude: optional; min: -180; max: 180-180
uulestringEncoded Google location; cannot be combined with location or coordinates.; uule: optional; UTF-8 bytes: 4096-
google_domainstringGoogle country domain, such as google.com or google.co.uk.; google_domain: optional-
shoprsstringNative Google filter token, or up to twenty tokens joined by &#124;&#124;. Supplies the query when query is omitted; named controls override corresponding filters.; shoprs: optional; UTF-8 bytes: 16384-
devicestringDevice presentation for the source request.; device: optional; desktop, mobile, tabletdesktop
zero_tracebooleanDo not archive source or parsed response artifacts.; zero_trace: optionaltrue

Validation rules

Send query parameters only, without a request body. Unknown, repeated, empty or invalid values are rejected. Only JSON responses are supported. No automatic pagination or retry is performed. The rules below use AND, OR, XOR (exactly one), NOT and => (requires).

  • GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supported
  • string: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integer
  • language: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/
  • latitude => longitude; longitude => latitude
  • uule => NOT location AND NOT latitude AND NOT longitude

Examples

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

Google Shopping: Get product details

GET https://api.apihop.ai/v1/google-shopping/product

Request parameters

FieldTypeConstraintsExample
idstringUse product_id from an item in a Google Shopping result.; id: optional17755277695162489284
querystringKeep the query that returned this product_id so Google can supply its current product details. At most 8,192 UTF-8 bytes.; query: optionalsony wh-1000xm5
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-
zero_tracebooleanDo not archive source or parsed response artifacts.; zero_trace: optionaltrue
page_tokenstringProduct selection token returned by Google Shopping or product results. Carries the original product, offer, query and locale.; page_token: optional; UTF-8 bytes: 16384-
offer_viewbooleanInclude the selected merchant offer view for a product ID lookup.; offer_view: optionaltrue

Validation rules

Send query parameters only, without a request body. Unknown, repeated, empty or invalid values are rejected. Only JSON responses are supported. No automatic pagination or retry is performed. The rules below use AND, OR, XOR (exactly one), NOT and => (requires).

  • GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supported
  • string: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integer
  • language: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/
  • id XOR page_token: required; page_token => NOT query AND NOT country AND NOT language AND NOT offer_view
  • id: /^[0-9]{1,30}$/
  • Tokens: copy the exact token from a fresh response; do not invent or reuse expired tokens

Examples

bash
curl --get "https://api.apihop.ai/v1/google-shopping/product" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "id=17755277695162489284" \
  --data-urlencode "query=sony wh-1000xm5"

Google Shopping: Get immersive product details

GET https://api.apihop.ai/v1/google-shopping/immersive-product

Request parameters

FieldTypeConstraintsExample
page_tokenstringProduct selection token returned as immersive_product_page_token by Google Shopping.; page_token: REQUIRED; UTF-8 bytes: 16384gprod1.eyJ2IjoxLCJpZCI6IjE3NzU1Mjc3Njk1MTYyNDg5Mjg0IiwicSI6InNvbnkgd2gtMTAwMHhtNSIsImdsIjoidXMiLCJobCI6ImVuIn0
more_storesbooleanRequest up to thirteen stores, subject to source availability.; more_stores: 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; UTF-8 bytes: 24576-
zero_tracebooleanDo not archive source or parsed response artifacts.; zero_trace: optionaltrue

Validation rules

Send query parameters only, without a request body. Unknown, repeated, empty or invalid values are rejected. Only JSON responses are supported. No automatic pagination or retry is performed. The rules below use AND, OR, XOR (exactly one), NOT and => (requires).

  • GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supported
  • string: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integer
  • language: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/
  • page_token: copy immersive_product_page_token from a fresh search result; next_page_token requires more_stores = true
  • Tokens: copy the exact token from a fresh response; do not invent or reuse expired tokens

Examples

bash
curl --get "https://api.apihop.ai/v1/google-shopping/immersive-product" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "page_token=gprod1.eyJ2IjoxLCJpZCI6IjE3NzU1Mjc3Njk1MTYyNDg5Mjg0IiwicSI6InNvbnkgd2gtMTAwMHhtNSIsImdsIjoidXMiLCJobCI6ImVuIn0"

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": []
    }
  }
}