API reference · Google Shopping
google-shopping/bulk/products
Integrate this model through SandBase's unified API, with production-ready schemas and examples.
Production endpoint
Send your first request
OpenAI-compatible endpoint with unified authentication and usage tracking.
POST
https://api.sandbase.ai/v1/runModel ID
google-shopping/bulk/products01
Input Schema
13 parameters · 1 required · 12 optional
| Parameter | Type | Required | Description |
|---|---|---|---|
searchQuery | string | Required | Enter product name, brand, or keywords to search on Google Shopping. Examples: 'iPhone 15', 'Nike running shoes'. · Min length: 1 · Max length: 400 · Default: "iPhone 17" |
page | integer | Optional | Page number to start fetching results from. Use this to skip initial pages. Default is 1 (first page). · Min: 1 · Max: 100 · Default: 1 |
limit | integer | Optional | Number of products to fetch per API call. Min 1, Max 100. Default is 10. · Min: 10 · Max: 100 · Default: 10 |
onSale | boolean | Optional | Show only products that are currently on sale or have discounts. |
sortBy | string | Optional | Choose how to sort the search results. Sort by relevance, price, or rating. · Options: BEST_MATCH, LOWEST_PRICE, HIGHEST_PRICE, TOP_RATED BEST_MATCHLOWEST_PRICEHIGHEST_PRICETOP_RATED |
stores | string | Optional | Filter results by specific stores. Enter comma-separated store names. Example: 'Amazon,Walmart,Best Buy'. |
country | string | Optional | Country code for localized results. Uses ISO 3166-1 alpha-2 codes. Examples: 'us' (USA), 'gb' (UK), 'de' (Germany), 'in' (India). · Default: "us" |
language | string | Optional | Language code for results. Uses ISO 639-1 codes. Examples: 'en' (English), 'es' (Spanish), 'fr' (French), 'de' (German). · Default: "en" |
maxPrice | number | Optional | Set a maximum price filter to only show products below this price. Leave empty for no maximum. |
minPrice | number | Optional | Set a minimum price filter to only show products above this price. Leave empty for no minimum. |
freeReturns | boolean | Optional | Show only products that offer free returns. |
freeShipping | boolean | Optional | Show only products with free shipping. |
productCondition | string | Optional | Filter products by their condition - new, used, refurbished, or any. · Options: ANY, NEW, USED, REFURBISHED ANYNEWUSEDREFURBISHED |
02
Output Schema
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier for the generation task |
status | string | Task status: pending, running, completed, failed, timeout |
model | string | Model used for the generation |
outputs | array | Array of output items |
outputs[].url | string | URL of the generated artifact |
outputs[].content_type | string | MIME type (e.g. image/png, video/mp4) |
error | object | null | Error details if failed, null on success |
error.type | string | Machine-readable error type code |
error.message | string | Human-readable error description |
Async Workflow
This model uses asynchronous execution. Submit a request and poll for the result.
- Submit — POST to /v1/run, receive an
id - Poll — GET /v1/run/{id} until status is
completed,failed, ortimeout - Retrieve — Read
outputsfrom the completed response
03
Code Examples
Ready-to-run snippets
# Step 1: Submit
curl -X POST https://api.sandbase.ai/v1/run \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "google-shopping/bulk/products",
"page": 1,
"limit": 10,
"country": "us",
"language": "en",
"searchQuery": "iPhone 17",
"prompt": "a beautiful sunset over mountains"
}'
# Step 2: Poll result (replace <id>)
curl https://api.sandbase.ai/v1/run/<id> \
-H "Authorization: Bearer YOUR_API_KEY"
