API · Facebook
GET /facebook/marketplace/search
Search Facebook Marketplace listings near a place, with price, condition, delivery, date and sort filters.
| Request | GET /v1/facebook/marketplace/search |
| Operation id | facebook.marketplace.search |
| Cost | 1 credit, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
Search Facebook Marketplace listings near a place, with price, condition, delivery, date and sort filters.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
q | string | yes | What to search for. Example: bike. |
lat | number | null | no | Latitude of the search centre. |
lng | number | null | no | Longitude of the search centre. |
location | string | no | A place name instead of lat/lng (first match). |
radius_km | number | null | no | Search radius in km (1-500, default 40). |
min_price | number | null | no | Minimum price, in the local currency. |
max_price | number | null | no | Maximum price, in the local currency. |
sort_by | "suggested" | "distance_ascend" | "creation_time_descend" | "price_ascend" | "price_descend" | no | One of suggested, distance_ascend, creation_time_descend, price_ascend, price_descend. |
condition | string | no | Comma list: new, used_like_new, used_good, used_fair. |
delivery_method | "all" | "local_pickup" | "shipping" | no | One of all, local_pickup, shipping. |
date_listed | "1" | "7" | "30" | "all" | "last_24_hours" | "last_7_days" | "last_30_days" | no | One of 1, 7, 30, all, last_24_hours, last_7_days, last_30_days. |
availability | "available" | "sold" | no | One of available, sold. |
category_id | string | no | A listing’s marketplace_listing_category_id. |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | Matching listings. | FacebookMarketplaceSearch |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | The ad, Page or advertiser is not in the Meta Ad Library. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | Facebook is temporarily unavailable. Retryable; nothing was charged. | Error |
FacebookMarketplaceSearch fields
| Field | Type | Description |
|---|---|---|
listings | FacebookMarketplaceListing[] |
Errors use one shape everywhere; see Errors for every code and what to do.