Call it
curl https://api.peume.com/v1/call/google-shopping-product \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"product_id": "your product id",
"data_docid": "your data docid"
}
}'const res = await fetch("https://api.peume.com/v1/call/google-shopping-product", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"product_id": "your product id",
"data_docid": "your data docid"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/google-shopping-product",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"product_id": "your product id",
"data_docid": "your data docid"
}
},
)
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-product.
Parameters
product_idstringUnique product identifier on Google Shopping (e.g. 4485466949985702538)
data_docidstringUnique identifier of the SERP data element (e.g. 13071766526042404278)
gidstringGlobal product identifier on Google Shopping (e.g. 4702526954592161872)
location_namestringFull location name exactly as listed in the locations dictionary, e.g. 'London,England,United Kingdom' or 'United States'.
location_codeintegerNumeric location code from the locations dictionary, e.g. 2840 (United States).
location_coordinatestring'latitude,longitude,radius' with the radius in metres (200-19999), e.g. '52.6178549,-155.352142,1000'.
language_namestringFull language name, e.g. 'English'.
language_codestringLanguage code, e.g. 'en'.
se_domainstringSearch engine domain (e.g. google.co.uk)
