API reference · Search engines
Google Shopping Search
Search Google Shopping listings by query, such as a product name. This is a search snapshot, not continuous price monitoring.
Example
BASH
curl -X POST 'https://api.serpbase.dev/google/shopping' \
-H "Content-Type: application/json" \
-H 'X-API-Key: YOUR_API_KEY' \
--max-time 60 \
-d '{"query":"coffee maker"}'Response · real, shortened
{
"status": 0,
"credits_charged": 2,
"request_id": "r-4b27fe8a36d9ac303a5da7dd",
"product_id": "google_shopping_search",
"query": "coffee maker",
"offers": [
{
"display_link": "www.google.com",
"display_url": "www.google.com",
"link": "https://www.google.com/search?ibp=oshop&q=Cuisinart+14+Cup+Programmable&prds=catalogid:9479163313991…",
"merchant": "Target",
"position": 1,
"price": "$119.99",
"price_display": "$119.99",
"rank": 1,
"rating": 4.5,
"source": "Target",
"title": "Cuisinart 14 Cup Programmable",
"url": "https://www.google.com/search?ibp=oshop&q=Cuisinart+14+Cup+Programmable&prds=catalogid:9479163313991…"
}
],
"page": 1,
"search_type": "shopping",
"shopping": [
{
"display_link": "www.google.com",
"display_url": "www.google.com",
"link": "https://www.google.com/search?ibp=oshop&q=Cuisinart+14+Cup+Programmable&prds=catalogid:9479163313991…",
"merchant": "Target",
"position": 1,
"price": "$119.99",
"price_display": "$119.99",
"rank": 1,
"rating": 4.5,
"source": "Target",
"title": "Cuisinart 14 Cup Programmable",
"url": "https://www.google.com/search?ibp=oshop&q=Cuisinart+14+Cup+Programmable&prds=catalogid:9479163313991…"
}
],
"shopping_results": [
{
"display_link": "www.google.com",
"display_url": "www.google.com",
"link": "https://www.google.com/search?ibp=oshop&q=Cuisinart+14+Cup+Programmable&prds=catalogid:9479163313991…",
"merchant": "Target",
"position": 1,
"price": "$119.99",
"price_display": "$119.99",
"rank": 1,
"rating": 4.5,
"source": "Target",
"title": "Cuisinart 14 Cup Programmable",
"url": "https://www.google.com/search?ibp=oshop&q=Cuisinart+14+Cup+Programmable&prds=catalogid:9479163313991…"
}
]
}Parameters
NameWhat it does
format"json" | "markdown"
json (default) returns the parsed result.
More
markdown returns the same result as Markdown text (text/markdown) for language models: no envelope, no duplicate alias fields, no inline images. Same credits; failures keep the JSON envelope.
querystring
Example: "coffee maker"
The sample shows example parameters, not the complete request contract. Known fields are validated by the API; additional parameters are allowed.
What comes back
The fields are those in the response above; every endpoint also carries status, credits_charged and request_id.
If it fails
A failed request has a non-zero status and an error, and is not charged. The ones you will see here:
1000A parameter is missing or wrongFix the request1020No credits leftTop up1029Over your requests per secondWait Retry-After seconds1502 · 1504The source could not be read this timeRetry