Call it
curl https://api.peume.com/v1/call/get-a-google-shopping-product \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"q": "coffee maker",
"gpcid": "16418087637395758399",
"headline_offer_docid": "8780992468355455962",
"image_docid": "9437029998757085507",
"location": "Austin, Texas",
"google_domain": "google.com"
}
}'const res = await fetch("https://api.peume.com/v1/call/get-a-google-shopping-product", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"q": "coffee maker",
"gpcid": "16418087637395758399",
"headline_offer_docid": "8780992468355455962",
"image_docid": "9437029998757085507",
"location": "Austin, Texas",
"google_domain": "google.com"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/get-a-google-shopping-product",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"q": "coffee maker",
"gpcid": "16418087637395758399",
"headline_offer_docid": "8780992468355455962",
"image_docid": "9437029998757085507",
"location": "Austin, Texas",
"google_domain": "google.com"
}
},
)
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: get-a-google-shopping-product.
Parameters
qRequiredstringRequired search term from the shopping request that found the product. Google resolves the product page against it as well as the identifiers.
Example: coffee maker
gpcidstringProduct cluster ID from a shopping result. Required unless prds is supplied; follow litescrape_product_link for a ready-made request.
Example: 16418087637395758399
headline_offer_docidstringOptional headline offer document ID from the same shopping result; use with gpcid.
Example: 8780992468355455962
image_docidstringOptional image document ID from the same shopping result; use with gpcid.
Example: 9437029998757085507
prdsstringGoogle product selector token from a previous response. Mutually exclusive with gpcid and its companion document IDs.
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.
