Call it
curl https://api.peume.com/v1/call/search-google-shopping \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"q": "coffee maker",
"free_shipping": false,
"on_sale": false,
"small_business": false,
"start": 0,
"num": 60
}
}'const res = await fetch("https://api.peume.com/v1/call/search-google-shopping", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"q": "coffee maker",
"free_shipping": false,
"on_sale": false,
"small_business": false,
"start": 0,
"num": 60
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-google-shopping",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"q": "coffee maker",
"free_shipping": False,
"on_sale": False,
"small_business": False,
"start": 0,
"num": 60
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: search-google-shopping.
Parameters
qstringProduct search term, up to 2,048 characters. Required unless shoprs is supplied. This is a search, not an exact product ID lookup.
Example: coffee maker
shoprsstringRefinement token from a previous response's filters. An explicit refinement parameter replaces the refinement it carries.
min_pricenumberLower price bound in the storefront currency. Cannot be combined with on_sale, free_shipping or small_business.
max_pricenumberUpper price bound in the storefront currency, at or above min_price. Cannot be combined with on_sale, free_shipping or small_business.
sort_bystringSort order: 1 price low to high, 2 price high to low, 3 rating high to low, 4 relevance (the default). Combines with any one refinement.
1 · 2 · 3 · 4
free_shippingbooleanShow only products with free shipping. Cannot be combined with another refinement.
Example: false
on_salebooleanShow only products Google marks as on sale. Cannot be combined with another refinement.
Example: false
small_businessbooleanShow only products from small businesses. Cannot be combined with another refinement.
Example: false
startintegerResult offset.
Example: 0
numintegerNumber of products to return. Google serves 40 products per page; a larger num reads further pages within the same call and returns fewer only when Google has no more products.
Example: 60
locationstringHuman-readable search location, such as Austin, Texas. At most 63 UTF-8 bytes. Mutually exclusive with uule.
Example: Austin, Texas
uulestringPre-encoded Google location token. Mutually exclusive with location.
google_domainstringGoogle domain used for the request.
Example: google.com
glstringTwo-letter country code used to localize results.
Example: us
hlstringLanguage code such as en, en-GB, or de.
Example: en
devicestringGoogle device layout. Each device is served Google's real layout for it.
desktop · tablet · mobile
Example: desktop
timeoutnumberOptional budget for the entire request in seconds, measured from gateway receipt until the response is ready to send. Includes admission, queueing and settlement. Must be greater than 0 and at most 90. On expiry, the call is not billed and returns 503 request_deadline_exceeded with retryable=true and a request ID. Omit to retain the standard server deadline.
Other ways to do it
Same job, other sources, cheapest first.
