Facebook Marketplace search
Search for marketplace with the Facebook API. The sample response includes prices and titles. Use it to surface relevant records in a search or discovery tool. Choose an implementation and check its published request fields, examples, and usage pricing before integrating.
- Selected price
- $0.00188 / callPublished pricing
- Sellers / APIs
- 2 / 2
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
Facebook Marketplace search
Prepare your request, then continue with your agent.
Selected price
$0.00188 / call
- Provider
- API
- Pricing
On this page
Playground
Run sends a real API request. Charges follow the published API contract.
Response structure
credits_chargedintegercredits_remainingintegercursorstringhas_next_pagebooleanlistingsobject[]category_idstringcreation_timenulldelivery_typesstring[]idstringis_hiddenbooleanis_livebooleanis_pendingbooleanis_soldbooleanis_viewer_sellerbooleanlisting_date_textnulllocationobjectcitystringcity_page_idstringdisplay_namestringstatestring
priceobjectamountintegeramount_with_offset_in_currencyintegerformatted_amountstring
primary_photoobjectidstringurlstring
story_keystringstory_typestringstrikethrough_pricenulltitlestringurlstring
successboolean
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
credits_charged?: number;
credits_remaining?: number;
cursor?: string;
has_next_page?: boolean;
listings?: Array<{
category_id?: string;
creation_time?: null;
delivery_types?: Array<string>;
id?: string;
is_hidden?: boolean;
is_live?: boolean;
is_pending?: boolean;
is_sold?: boolean;
is_viewer_seller?: boolean;
listing_date_text?: null;
location?: {
city?: string;
city_page_id?: string;
display_name?: string;
state?: string;
};
price?: {
amount?: number;
amount_with_offset_in_currency?: number;
formatted_amount?: string;
};
primary_photo?: {
id?: string;
url?: string;
};
story_key?: string;
story_type?: string;
strikethrough_price?: null;
title?: string;
url?: string;
}>;
success?: boolean;
};Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
| Facebook Marketplace Browse · POST · View API reference | $0.00015 / call | —Select to load statistics | —successP50— | |
Current Facebook Marketplace — Marketplace Search · GET · View API reference | $0.00188 / call | — | —successP50— |
- Unit price
- $0.00188
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 3. Price update time: not supplied.
Total $0.188
API
- Method
- GET
- Endpoint
https://api.openany.si/v1/agent-apis/scrapecreators/v1/facebook/marketplace/search- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
'https://api.openany.si/v1/agent-apis/scrapecreators/v1/facebook/marketplace/search?availability=available&category_id=1658310421102081&condition=used_good&date_listed=7&delivery_method=local_pickup&lat=30.2677&lng=-97.7475&max_price=500.0&min_price=100.0&query=bike&radius_km=65.0&sort_by=creation_time_descend' \
-X GET \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json'Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
query | URL query parametersquery | string | Yes | Search keyword |
category_id | URL query parametersquery | string | No | Numeric Facebook Marketplace category ID. Listing results include this value as category_id. |
lat | URL query parametersquery | number | Yes | Latitude for the search location |
lng | URL query parametersquery | number | Yes | Longitude for the search location |
radius_km | URL query parametersquery | number | No | Search radius in kilometers |
min_price | URL query parametersquery | number | No | Minimum listing price |
max_price | URL query parametersquery | number | No | Maximum listing price |
sort_by | URL query parametersquery | string | No | Facebook Marketplace sort option. creation_time_descend usually orders the first pages newest first, but Facebook can insert newer listings on later cursor pages. enum: "suggested", "distance_ascend", "creation_time_descend", "price_ascend", "price_descend" |
delivery_method | URL query parametersquery | string | No | Delivery filter enum: "all", "local_pickup", "shipping" |
condition | URL query parametersquery | string | No | Condition filter enum: "new", "used_like_new", "used_good", "used_fair" |
date_listed | URL query parametersquery | string | No | Facebook Marketplace date filter. Uses the same calendar-day buckets as the UI, so last_24_hours can include listings from the prior calendar day. enum: "all", "1", "7", "30", "last_24_hours", "last_7_days", "last_30_days" |
availability | URL query parametersquery | string | No | Availability filter enum: "available", "sold", "all" |
cursor | URL query parametersquery | string | No | Opaque pagination cursor returned from the previous response. Pass it back as-is. |
Required markers inside a nested object or variant apply when that object or variant is used.
Sample response
Sample response · Documented HTTP 200 Example from the provider's documentation. Field values in your results will differ.
{
"credits_charged": 1,
"credits_remaining": 49997831258,
"cursor": "eyJwZyI6MCwiYjJj....",
"has_next_page": true,
"listings": [
{
"category_id": "1658310421102081",
"creation_time": null,
"delivery_types": [
"IN_PERSON"
],
"id": "1880804689276480",
"is_hidden": false,
"is_live": true,
"is_pending": false,
"is_sold": false,
"is_viewer_seller": false,
"listing_date_text": null,
"location": {
"city": "Austin",
"city_page_id": "106224666074625",
"display_name": "Austin, Texas",
"state": "TX"
},
"price": {
"amount": 300,
"amount_with_offset_in_currency": 30000,
"formatted_amount": "$300"
},
"primary_photo": {
"id": "742022888999863",
"url": "https://scontent-bos5-1.xx.fbcdn.net/v/t39.84726-6/696326464_742022902333195_6718077421452400338_n.jpg?stp=c43.0.260.260a_dst-jpg_p261x260_tt6&_nc_cat=106&ccb=1-7&_nc_sid=92e707&_nc_ohc=dzY2b4-6EowQ7kNvwFDgohs&_nc_oc=AdomRHPRV49gouEOWqxlFxuEeLcoc5cBjRhXhi91oslqlUNdZ9EV-te1C_pvL-eyVzs&_nc_zt=14&_nc_ht=scontent-bos5-1.xx&_nc_gid=GvS1066o3EBgpWuqL6BQZA&_nc_ss=7e289&oh=00_Af6M2kbWMsKLjEHmSUv6oiPJt3skIfetxG3oB2YOIiDuTg&oe=6A0D6E08"
},
"story_key": "26881002338175809",
"story_type": "POST",
"strikethrough_price": null,
"title": "ANCHEER E Bike",
"url": "https://www.facebook.com/marketplace/item/1880804689276480/"
}
],
"success": true
}Agent integration
Copy the resource contract without sharing an API key.
View API Markdown
# Facebook Marketplace search
Search for marketplace with the Facebook API. The sample response includes prices and titles. Use it to surface relevant records in a search or discovery tool. Choose an implementation and check its published request fields, examples, and usage pricing before integrating.
## Available implementations
litescrape · Facebook Marketplace Browse: https://openany.si/markets/apis/capabilities/facebook-marketplace-search?offering=05d07366-8731-469f-86f6-47e4b1d02fb0 · $0.00015 / call
scrapecreators · Facebook Marketplace — Marketplace Search: https://openany.si/markets/apis/capabilities/facebook-marketplace-search?offering=facfb6f5-6a9a-4a22-ac42-2a4c267fa1fc · $0.00188 / call
## Selected API contract
Documentation: https://openany.si/apis/facfb6f5-6a9a-4a22-ac42-2a4c267fa1fc
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/scrapecreators/v1/facebook/marketplace/search
Price: $0.00188 / call
Provider: scrapecreators
Contract revision: 3
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.
Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.
## Prepared request
```bash
curl \
'https://api.openany.si/v1/agent-apis/scrapecreators/v1/facebook/marketplace/search?availability=available&category_id=1658310421102081&condition=used_good&date_listed=7&delivery_method=local_pickup&lat=30.2677&lng=-97.7475&max_price=500.0&min_price=100.0&query=bike&radius_km=65.0&sort_by=creation_time_descend' \
-X GET \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json'
```
## API contract
```json
{
"resource_type": "api",
"name": "Facebook Marketplace — Marketplace Search",
"endpoint": "https://api.openany.si/v1/agent-apis/scrapecreators/v1/facebook/marketplace/search",
"method": "GET",
"content_type": "none",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [
{
"description": "Search keyword",
"location": "query",
"name": "query",
"nullable": false,
"required": true,
"type": "string"
},
{
"description": "Numeric Facebook Marketplace category ID. Listing results include this value as category_id.",
"location": "query",
"name": "category_id",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Latitude for the search location",
"location": "query",
"name": "lat",
"nullable": false,
"required": true,
"type": "number"
},
{
"description": "Longitude for the search location",
"location": "query",
"name": "lng",
"nullable": false,
"required": true,
"type": "number"
},
{
"description": "Search radius in kilometers",
"location": "query",
"name": "radius_km",
"nullable": false,
"required": false,
"type": "number"
},
{
"description": "Minimum listing price",
"location": "query",
"name": "min_price",
"nullable": false,
"required": false,
"type": "number"
},
{
"description": "Maximum listing price",
"location": "query",
"name": "max_price",
"nullable": false,
"required": false,
"type": "number"
},
{
"description": "Facebook Marketplace sort option. creation_time_descend usually orders the first pages newest first, but Facebook can insert newer listings on later cursor pages.",
"enum_values": [
"suggested",
"distance_ascend",
"creation_time_descend",
"price_ascend",
"price_descend"
],
"location": "query",
"name": "sort_by",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Delivery filter",
"enum_values": [
"all",
"local_pickup",
"shipping"
],
"location": "query",
"name": "delivery_method",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Condition filter",
"enum_values": [
"new",
"used_like_new",
"used_good",
"used_fair"
],
"location": "query",
"name": "condition",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Facebook Marketplace date filter. Uses the same calendar-day buckets as the UI, so last_24_hours can include listings from the prior calendar day.",
"enum_values": [
"all",
"1",
"7",
"30",
"last_24_hours",
"last_7_days",
"last_30_days"
],
"location": "query",
"name": "date_listed",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Availability filter",
"enum_values": [
"available",
"sold",
"all"
],
"location": "query",
"name": "availability",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Opaque pagination cursor returned from the previous response. Pass it back as-is.",
"location": "query",
"name": "cursor",
"nullable": false,
"required": false,
"type": "string"
}
],
"billing": {
"currency": "USD",
"mode": "fixed",
"priceMicroUsd": "1880",
"rounding": null,
"unit": "call",
"unitQuantity": null
},
"examples": [
{
"http_status": 200,
"name": "Official example",
"request": {
"body": null,
"headers": {},
"path": {},
"query": {
"availability": "available",
"category_id": "1658310421102081",
"condition": "used_good",
"date_listed": "7",
"delivery_method": "local_pickup",
"lat": 30.2677,
"lng": -97.7475,
"max_price": 500.0,
"min_price": 100.0,
"query": "bike",
"radius_km": 65.0,
"sort_by": "creation_time_descend"
}
},
"response_body": {
"credits_charged": 1,
"credits_remaining": 49997831258,
"cursor": "eyJwZyI6MCwiYjJj....",
"has_next_page": true,
"listings": [
{
"category_id": "1658310421102081",
"creation_time": null,
"delivery_types": [
"IN_PERSON"
],
"id": "1880804689276480",
"is_hidden": false,
"is_live": true,
"is_pending": false,
"is_sold": false,
"is_viewer_seller": false,
"listing_date_text": null,
"location": {
"city": "Austin",
"city_page_id": "106224666074625",
"display_name": "Austin, Texas",
"state": "TX"
},
"price": {
"amount": 300,
"amount_with_offset_in_currency": 30000,
"formatted_amount": "$300"
},
"primary_photo": {
"id": "742022888999863",
"url": "https://scontent-bos5-1.xx.fbcdn.net/v/t39.84726-6/696326464_742022902333195_6718077421452400338_n.jpg?stp=c43.0.260.260a_dst-jpg_p261x260_tt6&_nc_cat=106&ccb=1-7&_nc_sid=92e707&_nc_ohc=dzY2b4-6EowQ7kNvwFDgohs&_nc_oc=AdomRHPRV49gouEOWqxlFxuEeLcoc5cBjRhXhi91oslqlUNdZ9EV-te1C_pvL-eyVzs&_nc_zt=14&_nc_ht=scontent-bos5-1.xx&_nc_gid=GvS1066o3EBgpWuqL6BQZA&_nc_ss=7e289&oh=00_Af6M2kbWMsKLjEHmSUv6oiPJt3skIfetxG3oB2YOIiDuTg&oe=6A0D6E08"
},
"story_key": "26881002338175809",
"story_type": "POST",
"strikethrough_price": null,
"title": "ANCHEER E Bike",
"url": "https://www.facebook.com/marketplace/item/1880804689276480/"
}
],
"success": true
}
}
]
}
```Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Official example
Example from the provider's documentation. Field values in your results will differ.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 13
Review these request fields before running. Keep the published provider and request method unchanged.
query- Search keyword
category_id- Numeric Facebook Marketplace category ID. Listing results include this value as category_id.
lat- Latitude for the search location
lng- Longitude for the search location
radius_km- Search radius in kilometers
min_price- Minimum listing price
max_price- Maximum listing price
sort_by- Facebook Marketplace sort option. creation_time_descend usually orders the first pages newest first, but Facebook can insert newer listings on later cursor pages.
delivery_method- Delivery filter
condition- Condition filter
date_listed- Facebook Marketplace date filter. Uses the same calendar-day buckets as the UI, so last_24_hours can include listings from the prior calendar day.
availability- Availability filter
cursor- Opaque pagination cursor returned from the previous response. Pass it back as-is.
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/scrapecreators/v1/facebook/marketplace/search?availability=available&category_id=1658310421102081&condition=used_good&date_listed=7&delivery_method=local_pickup&lat=30.2677&lng=-97.7475&max_price=500.0&min_price=100.0&query=bike&radius_km=65.0&sort_by=creation_time_descend' \ -X GET \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json'Check the response
Sample response · Documented HTTP 200
Sample response{ "credits_charged": 1, "credits_remaining": 49997831258, "cursor": "eyJwZyI6MCwiYjJj....", "has_next_page": true, "listings": [ { "category_id": "1658310421102081", "creation_time": null, "delivery_types": [ "IN_PERSON" ], "id": "1880804689276480", "is_hidden": false, "is_live": true, "is_pending": false, "is_sold": false, "is_viewer_seller": false, "listing_date_text": null, "location": { "city": "Austin", "city_page_id": "106224666074625", "display_name": "Austin, Texas", "state": "TX" }, "price": { "amount": 300, "amount_with_offset_in_currency": 30000, "formatted_amount": "$300" }, "primary_photo": { "id": "742022888999863", "url": "https://scontent-bos5-1.xx.fbcdn.net/v/t39.84726-6/696326464_742022902333195_6718077421452400338_n.jpg?stp=c43.0.260.260a_dst-jpg_p261x260_tt6&_nc_cat=106&ccb=1-7&_nc_sid=92e707&_nc_ohc=dzY2b4-6EowQ7kNvwFDgohs&_nc_oc=AdomRHPRV49gouEOWqxlFxuEeLcoc5cBjRhXhi91oslqlUNdZ9EV-te1C_pvL-eyVzs&_nc_zt=14&_nc_ht=scontent-bos5-1.xx&_nc_gid=GvS1066o3EBgpWuqL6BQZA&_nc_ss=7e289&oh=00_Af6M2kbWMsKLjEHmSUv6oiPJt3skIfetxG3oB2YOIiDuTg&oe=6A0D6E08" }, "story_key": "26881002338175809", "story_type": "POST", "strikethrough_price": null, "title": "ANCHEER E Bike", "url": "https://www.facebook.com/marketplace/item/1880804689276480/" } ], "success": true }