Call it
curl https://api.peume.com/v1/call/google-shopping-get-product-offers \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"hl": "your hl",
"gl": "your gl"
}
}'const res = await fetch("https://api.peume.com/v1/call/google-shopping-get-product-offers", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"hl": "your hl",
"gl": "your gl"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/google-shopping-get-product-offers",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"hl": "your hl",
"gl": "your gl"
}
},
)
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-product-offers.
Parameters
hlstringThe language to use for the Google Product search. It's a two or three-letter language code. (e.g., `en` for English, `es` for Spanish, or `fr` for French). Defaults to `en`.
glstringThe country to use for the Google Product search. It's a two-letter country code. (e.g., `us` for the United States, `uk` for United Kingdom, or `fr` for France). Defaults to `us`. Head to the Google Shopping countries for a full list of supported countries.
product_idstringThe Google product to get results for. It is the `product_id` returned by the Google Shopping API (also visible in `product_link` as `prds=catalogid:{product_id}`). Either `product_id` or `page_token` is required.
page_tokenstringThe token of a specific product offer, returned as `immersive_product_page_token` by the Google Shopping API and as `page_token` by this API. It selects the exact offer, variant and reviews set, and is the same token accepted by the Google Immersive Product API. Either `product_id` or `page_token` is required.
offer_viewstringFor fetching the offer view of a `product_id` search in a single search. It can be set to `1` or `true`. By default, a `product_id` search returns the product page without `rating`, `reviews`, `ratings`, `user_reviews`, `top_insights` and `variants`. Ignored for `page_token` searches, which always return the offer view.
json_restrictorstringThe fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.
