Call it
curl https://api.peume.com/v1/call/facebook-marketplace-3 \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"lng": "your lng",
"query": "your query",
"lat": "your lat"
}
}'const res = await fetch("https://api.peume.com/v1/call/facebook-marketplace-3", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"lng": "your lng",
"query": "your query",
"lat": "your lat"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/facebook-marketplace-3",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"lng": "your lng",
"query": "your query",
"lat": "your lat"
}
},
)
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: facebook-marketplace-3.
Parameters
cursorstringPagination cursor from a previous response to fetch the next page. Pages can overlap: a page may repeat items an earlier page returned and is billed like any other, so de-duplicate by item id and stop when a page adds no new id.
priceMinintegerMinimum listing price in whole currency units, e.g. 100 for $100. Facebook may mix in a few suggested listings outside the range.
conditionstringOnly return listings in this condition (e.g. used_good).
new · used_like_new · used_good · used_fair
dateListedstringOnly return listings posted within this window (e.g. last_7_days).
all · last_24_hours · last_7_days · last_30_days
priceMaxintegerMaximum listing price in whole currency units, e.g. 500 for $500. Facebook may mix in a few suggested listings outside the range.
routestringUpstream source to run on; omit for "giraffe". giraffe ($0.0012 per call, 99.4% uptime); fox ($0.0032 per call, 97.2% uptime). A route can refuse an input it cannot apply with a 400 source_unknown (not charged): retry on another route, or omit that input.
giraffe · fox
lngRequiredstringLongitude of the search location (e.g. '-97.7475').
deliveryMethodstringOnly return listings offering this delivery method (e.g. shipping).
all · local_pickup · shipping
queryRequiredstringSearch keyword for Marketplace listings (e.g. 'bike').
availabilitystringFilter by availability: available (default), sold, or all (e.g. sold).
available · sold · all
sortstringSort order for the returned listings (e.g. price_ascend).
suggested · distance_ascend · creation_time_descend · price_ascend · price_descend
latRequiredstringLatitude of the search location (e.g. '30.2677').
