API Facebook Marketplace

Facebook Marketplace API. Local listings as JSON.

Search Facebook Marketplace near any US ZIP code and get listings back as JSON: title, asking price, city and photo. Look up any listing for its details. The median asking price comes worked out.

100 free requests · No credit card required

GET /v1/facebook/listings
curl -G https://api.soldgraph.com/v1/facebook/listings \  -H "Authorization: Bearer $SOLDGRAPH_KEY" \  --data-urlencode "q=mountain bike" \  --data-urlencode "zip=28202" \  --data-urlencode "radius=25" \  --data-urlencode "max_price=800"
GET /v1/facebook/item
curl -G https://api.soldgraph.com/v1/facebook/item \  -H "Authorization: Bearer $SOLDGRAPH_KEY" \  --data-urlencode "q=2796090964120499"
What you get

Local listings near any ZIP, in one format.

Search by place, filter like a buyer would, and get rows in the same shape as every other marketplace on Soldgraph.

Search near any ZIP

Give a ZIP code, or a latitude and longitude, and a radius from 1 to 100 miles. We search from the nearest Facebook Marketplace city and tell you which one.

Filters that are checked

Price, condition, delivery, days since listed and sort. If Facebook doesn't apply a filter you sent, the search fails and costs nothing.

Listing details

Look up one listing by ID or link for its description, condition, posted date, approximate coordinates, delivery and all photos.

Price summary

Every search comes with the median, low and high asking price for the listings on that page.

Sold prices on the same key

Compare local asks with what things sold for on eBay, Poshmark and Mercari. One key covers nine marketplaces.

In your AI tools

The MCP server lets Claude, Cursor and VS Code search local listings for you.

Know before you build

Three limits, stated up front.

These come from what Facebook shows. Plan for them and nothing will surprise you later.

Asking prices, not sales

Prices are what sellers ask. Facebook doesn't publish sold history, so there is no sold search.

One page per search

Facebook serves one page of up to about 24 listings. Run narrower searches, like price bands, to see more.

US only, no seller details

Searches cover the US. Seller details aren't public, so there is no seller field.

Full detail is in the Facebook local listings docs and the listing details docs. Pricing against sold items? See sold listings on every marketplace. Soldgraph is not affiliated with Facebook or Meta.

Building with ChatGPT? Paste this.

One prompt gives your assistant the endpoint, the sign-in header and how to wait for a result, so its first script works.

Prompt for ChatGPT, Claude or Cursor
I'm building with the Soldgraph API. It returns sold and for-sale listings from eBay and other resale marketplaces.

Read the docs first: https://soldgraph.com/llms.txt
OpenAPI spec: https://soldgraph.com/openapi.json

Rules for the code you write:
- Base URL: https://api.soldgraph.com/v1
- Auth: send the header "Authorization: Bearer <key>". Read the key from the SOLDGRAPH_KEY environment variable. Never put it in browser code.
- No key yet? If you can make HTTP requests, get one for me: POST https://api.soldgraph.com/v1/agent/keys, show me the verification_url_complete link to approve, then claim the key with POST https://api.soldgraph.com/v1/agent/keys/claim. Steps: https://soldgraph.com/docs/guides/agent-keys.md
- Facebook Marketplace listings near a place: GET /facebook/listings?q=<search words>&zip=<5-digit US ZIP>. Prices are seller asks. There is no sold search.
- A search often answers 202 with status "pending" and a poll_url. Request https://api.soldgraph.com plus poll_url with ?wait=20 and the same header, until status is "complete" or "failed".
- Read result.summary for the median, low and high price. The rows are in result.data, each with title, displayed_price, city and link.
- Each completed search uses one request. A free account starts with 100 requests that do not refill, so save results while testing instead of repeating a search.

Start with a short script that prints the median asking price for "mountain bike" near ZIP 28202. Then ask me what I want to build.
Paste it in, add your key as SOLDGRAPH_KEY, and it writes working code.Open in ChatGPT Open in Claude
FAQ

Common questions

Something else? Email hello@soldgraph.com and a person will reply.

Yes. Soldgraph returns Facebook Marketplace listings as JSON with one key. GET /v1/facebook/listings searches active US listings near a ZIP code or point, and GET /v1/facebook/item returns one listing's details.

Send a five-digit zip, or lat and lon for an exact point, and an optional radius from 1 to 100 miles. Without a radius, Facebook uses its own default of about 40 miles. The response names the Facebook city we searched from in result.location.source_city.

No. Local marketplaces don't publish sold history, and a sold item usually disappears. Prices are seller asks, and buyers often negotiate. For what things sold for, use eBay, Poshmark or Mercari sold listings with the same key.

One page of up to about 24 listings. Facebook serves one page per search, so there is no page 2. For more, run narrower searches with different sorts, price bands such as 0-50 and 50-150, or days_since_listed=1, then remove repeats by id.

GET /v1/facebook/item takes a listing id from search results, or a listing link, as q. It adds the description, condition, posted date, approximate coordinates, delivery details, category and all photos. Its status is what the seller set, not a verified sale.

One completed search or listing lookup is one request. Failed searches are free. Start with 100 free requests, no credit card required. Paid plans start at $9 a month for 2,000 requests.

Get Facebook Marketplace listings in about two minutes.

Create a free account, make a key, and send your first request. Start with 100 free requests, no credit card required.