Call it
curl https://api.peume.com/v1/call/get-offers-and-variants \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"product_id": "your product id"
}
}'const res = await fetch("https://api.peume.com/v1/call/get-offers-and-variants", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"product_id": "your product id"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/get-offers-and-variants",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"product_id": "your product id"
}
},
)
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-offers-and-variants.
Parameters
website_idsarrayConstrain the buy URL to these retailers (website IDs or domains such as "nike.com") when several merchants sell the product.
languagestringISO 639-1 language. Matches any language when unset (en only when country and currency are also unset).
en · de · fr · it · es · nl · sv · fi · pt · cs · el · ro
countrystringISO 3166-1 alpha-2 country (plus EU). Matches any country when unset (US only when language and currency are also unset).
US · GB · EU · AU · CA · IE · DE · AT · FR · BE · IT · ES …
currencystringISO 4217 currency for returned offer prices. Does not change what the call costs.
USD · CAD · AUD · GBP · EUR · SEK · CZK · RON · CHF
length_unitstringPreferred unit for length dimensions; merchant's unit when unset.
mm · cm · m · in · ft
weight_unitstringPreferred unit for weight; merchant's unit when unset.
mg · g · kg · oz · lb
product_idRequiredstringproduct ID (products[].id from search, product.id from lookup).
