Call it
curl https://api.peume.com/v1/call/facebook-marketplace \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"lat": "30.2677",
"lng": "-97.7475",
"priceMax": 500,
"priceMin": 100,
"query": "bike"
}
}'const res = await fetch("https://api.peume.com/v1/call/facebook-marketplace", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"lat": "30.2677",
"lng": "-97.7475",
"priceMax": 500,
"priceMin": 100,
"query": "bike"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/facebook-marketplace",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"lat": "30.2677",
"lng": "-97.7475",
"priceMax": 500,
"priceMin": 100,
"query": "bike"
}
},
)
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.
Parameters
fieldsstringComma-separated keys (dotted paths descend) to keep on each result item. Trims the response, not the charge.
max_itemsintegerCaps the result rows returned; `_truncated` says how many were withheld. Not the charge.
summaryboolean`true` returns only an outline: keys, item counts, per-field sizes.
jqstringjq expression over the result envelope; its output replaces `output`. A failed expression returns the full result with `jqError`.
availabilitystringFilter by availability: available (default), sold, or all (e.g. sold).
available · sold · all
conditionstringOnly return listings in this condition (e.g. used_good).
new · used_like_new · used_good · used_fair
cursorstringPagination cursor from a previous response to fetch the next page.
dateListedstringOnly return listings posted within this window (e.g. last_7_days).
all · last_24_hours · last_7_days · last_30_days
deliveryMethodstringOnly return listings offering this delivery method (e.g. shipping).
all · local_pickup · shipping
latRequiredstringLatitude of the search location (e.g. '30.2677').
Example: 30.2677
lngRequiredstringLongitude of the search location (e.g. '-97.7475').
Example: -97.7475
priceMaxintegerMaximum listing price in whole currency units, e.g. 500 for $500. Facebook may mix in a few suggested listings outside the range.
Example: 500
priceMinintegerMinimum listing price in whole currency units, e.g. 100 for $100. Facebook may mix in a few suggested listings outside the range.
Example: 100
queryRequiredstringSearch keyword for Marketplace listings (e.g. 'bike').
Example: bike
sortstringSort order for the returned listings (e.g. price_ascend).
suggested · distance_ascend · creation_time_descend · price_ascend · price_descend
