Call it
curl https://api.peume.com/v1/call/google-shopping-get-shopping-product \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"timeout": 50
}
}'const res = await fetch("https://api.peume.com/v1/call/google-shopping-get-shopping-product", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"timeout": 50
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/google-shopping-get-shopping-product",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"timeout": 50
}
},
)
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: google-shopping-get-shopping-product.
Parameters
qstringThe search term this product was found with, up to 2,048 characters. Google resolves the product against it as well as the identifiers.
gpcidstringProduct cluster ID from a shopping result, 1 to 20 digits. Single-merchant results have none; send headline_offer_docid instead.
headline_offer_docidstringHeadline merchant offer ID from the same shopping result. Required when the result has no gpcid.
catalog_idstringCatalog ID from a shopping result without a gpcid; lists every store that sells the product rather than only the headline offer.
image_docidstringImage document ID from the same shopping result.
prdsstringProduct selector token from a previous response. Conflicts with every identifier above.
locationstringHuman-readable search origin, such as 'Austin, Texas'. Conflicts with uule.
uulestringPre-encoded Google location token. Conflicts with location.
hlstringInterface and result language, such as 'en', 'en-GB', or 'de'. Default 'en'.
glstringTwo-letter country code for result localization, such as 'us'.
google_domainstringGoogle domain to query, such as 'google.com' or 'google.co.uk'. Default 'google.com'.
devicestringDevice layout Google renders. Default 'desktop'.
desktop · tablet · mobile
timeoutnumberSeconds may spend before giving up (max 50, default 50). A timed-out call is not billed.
Example: 50
