Facebook Marketplace search API
Search Facebook Marketplace via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no cookies required. Compare 2 implementations (LiteScrape and ScrapeCreators), pass parameters such as limit, location, max_price, and retrieve structured data including returned continuation token field, returned latitude field, returned location field, returned longitude field, and returned max price field for content research and account lookup, and integration reference.
- Selected price
- $0.00188 / callPublished pricing
- Sellers / APIs
- 2 / 2
- Requests · 30d
- 0Selected implementation · last 30 days
- Success rate · 30d
- —No requests in this period
Facebook Marketplace search API
Prepare your request, then continue with your agent.
Selected price
$0.00188 / call
- Provider
- API
- Pricing
On this page
Overview
Facebook Marketplace — Marketplace Search API
Search for Facebook Marketplace listings by keyword and lat/lng. Provide query in query, lat in query, lng in query. Read the response using the field paths below, preserving identifiers and the declared value types when mapping results.
Quick Facts
| Fact | Value |
|---|---|
| Access | OpenAny REST |
| Authentication | OpenAny API key in the Authorization header |
| Core inputs | query: query, category_id, lat, lng, radius_km, min_price, max_price, sort_by, delivery_method, condition, date_listed, availability, cursor |
| Selected implementation | scrapecreators · Facebook Marketplace — Marketplace Search |
| Billing | Follow the selected implementation pricing, billing unit, quantity and charge rules |
What You Can Build
- Market reference and account inspection: Keep market, asset and account identities distinct when interpreting records.
- Integration reference: Use the selected request format and keep source identifiers with the returned result.
Documented Response Fields
| Field | Meaning |
|---|---|
cursor |
Pagination cursor |
credits_charged |
Returned credits charged field |
credits_remaining |
Returned credits remaining field |
has_next_page |
Returned has next page field |
listings[].id |
Identifier |
listings[].title |
Title |
listings[].category_id |
Returned category id field |
listings[].creation_time |
Returned creation time value (nullable in the reference) |
Quick Start
- Set OPENANY_API_KEY to your OpenAny API key.
- Review the supported inputs and set any required query value shown in the template.
- Check the HTTP response and business result before reading optional fields.
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&min_price=100&query=bike&radius_km=65&sort_by=creation_time_descend' \
-X GET \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json'
Request and Response Examples
The response is a published documentation reference; its values may be historical. The request is an independent calling template. Use current returned identifiers and optional fields for your target resource.
Published Facebook Marketplace — Marketplace Search API implementation contract.
Pricing and Billing
The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.
Frequently Asked Questions
Related APIs
Playground
Run sends a real API request. Charges follow the published API contract.
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 | 0 | —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: 4. 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
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 |
lat | URL query parametersquery | number | Yes | Latitude for the search location |
lng | URL query parametersquery | number | Yes | Longitude for the search location |
category_id | URL query parametersquery | string | No | Numeric Facebook Marketplace category ID. Listing results include this value as category_id. |
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.
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
Agent integration
Copy the resource contract without sharing an API key.
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 }