Facebook Marketplace category
Read public Facebook Marketplace listings in a category by city or coordinates, with radius, price filters and newest-first ordering. Each successful request, including each continuation page, costs one credit. Keep all search inputs unchanged when continuing. Availability varies by region and Facebook access restrictions.
/v1/facebook/marketplace/category Request Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| category | body | string | Yes | Category slug from result.categories or a Marketplace URL, such as electronics or furniture. Optional on search. |
| cursor | body | string | No | Continuation cursor from this endpoint. Expires after 30 minutes. Keep all search filters and limit unchanged. |
| latitude | body | number | No | Search center latitude. Requires longitude; omit location. |
| limit | body | integer | No | Maximum listings to return. Facebook may return fewer. Continue with next_cursor and keep all other inputs unchanged. |
| location | body | string | No | Facebook city slug or an ID from location lookup. Use location OR latitude and longitude together. |
| longitude | body | number | No | Search center longitude. Requires latitude; omit location. |
| max_price | body | number | No | Maximum price in the location's currency. |
| min_price | body | number | No | Minimum price in the location's currency. |
| query | body | string | No | Keyword search. Required for search; optional within category browsing. |
| radius | body | number | No | Search radius; defaults to kilometres. Converted to the nearest whole kilometre (minimum 1). Facebook may include results outside the area. |
| radius_unit | body | string | No | Unit for radius; defaults to km. Requires radius. |
| sort | body | string | No | Facebook search ordering. Newest ordering may contain timestamp inversions. |
Response Structure
Async kickoff response
Polled run result response
Sync response
Declared output schema
Code Examples
Async + polling
RUN=$(curl -s -X POST "https://api.browsable.app/v1/facebook/marketplace/category" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"category":"electronics","location":"london"}')
RUN_ID=$(echo "$RUN" | jq -r '.run_id')
POLL_DELAY=3
while true; do
RESULT=$(curl -s -H "Authorization: Bearer YOUR_API_KEY" "https://api.browsable.app/v1/runs/$RUN_ID")
STATUS=$(echo "$RESULT" | jq -r '.run_status')
if [[ "$STATUS" =~ ^(succeeded|failed|errored|cancelled|canceled|expired)$ ]]; then
echo "$RESULT"
break
fi
sleep "$(awk "BEGIN { print $POLL_DELAY * (0.9 + ($RANDOM % 21) / 100) }")"
POLL_DELAY=$((POLL_DELAY < 30 ? POLL_DELAY * 2 : 30))
[ "$POLL_DELAY" -gt 30 ] && POLL_DELAY=30
doneSync
curl -X POST "https://api.browsable.app/v1/facebook/marketplace/category" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"category":"electronics","location":"london","_run":{"async":false}}'Choose a search area
Send one of these JSON bodies to this endpoint. Choose a city slug or an ID from location lookup, or supply latitude and longitude together. Do not combine the two location methods.
Search near a city
{
"category": "furniture",
"location": "london",
"radius": 10,
"sort": "newest",
"limit": 24
} Search near coordinates
{
"category": "furniture",
"latitude": 40.7128,
"longitude": -74.006,
"radius": 25,
"radius_unit": "mi",
"sort": "newest",
"limit": 24
} Radius defaults to kilometres. Miles are converted to the nearest whole kilometre, with a minimum of one: 25 miles becomes 40 km. The response's search object reports the center, radius and ordering used. Facebook may include results outside this area. Listing coordinates can be missing, so radius is not a strict distance guarantee.
Continue a search or check for new listings
To continue, send result.pagination.next_cursor as cursor and keep every other input unchanged. Cursors expire after 30 minutes. A short page does not imply exhaustion; continue while a next cursor exists.
To check for new listings later, start a fresh request without a cursor and compare listing IDs against those you have already seen. Keep scheduling and duplicate tracking in your application. Each successful request, including an additional page, costs one credit.
Understand the returned data
fetched_at records when the source page was retrieved. Buffered pagination preserves that timestamp. created_at is Facebook's listing creation time, or null when unavailable. Newest-first ordering follows Facebook and can contain timestamp inversions; it does not guarantee immediate detection or exhaustive coverage.
Prices are asking prices. Delivery methods can contain pickup, shipping or unknown; null means the field was absent. Other unavailable fields are also null. Login walls and access restrictions return errors rather than an empty successful search.