Search Facebook Marketplace listings by keyword near a latitude/longitude with price, condition, delivery, recency and availability filters.
2 credits/ call
Never more than 16 credits a call.
You only pay when data comes back.
curl -X POST "https://api.primaryapi.com/v1/run/facebook.marketplace" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query":"bike","lat":"30.2677","lng":"-97.7475","priceMin":100,"priceMax":500,"sort":"creation_time_descend"}'{
"output": {
"found": true,
"data": {
"hasNextPage": "<boolean>",
"nextCursor": "<string | null>",
"listings": [
{
"title": "<string | null>",
"priceAmount": "<number | null>",
"isSold": "<boolean | null>",
"isPending": "<boolean | null>", …
}
]
}
},
"credits": 2
}Input and output
12 fields
bike.30.2677.-97.7475.100.500.creation_time_descend.19 fields
Good to know
Keep other inputs unchanged when following a cursor.
Listings can expose private sellers' locations.
The same key and credits work for every API.