# 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.

Web page: https://soldgraph.com/facebook-marketplace-api

## Example

`GET /v1/facebook/listings`

```bash
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`

```bash
curl -G https://api.soldgraph.com/v1/facebook/item \
  -H "Authorization: Bearer $SOLDGRAPH_KEY" \
  --data-urlencode "q=2796090964120499"
```

## Questions

### Is there a Facebook Marketplace API?

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.

### How do I search near a location?

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`.

### Can I get sold prices from Facebook Marketplace?

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.

### How many listings does one search return?

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`.

### What does a listing lookup add?

`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.

### How much does it cost?

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.

## Pricing

- Free: 100 requests once, no credit card required.
- Lite: $9 a month for 2,000 requests.
- Starter: $19 a month for 5,000 requests.
- Pro: $49 a month for 20,000 requests.
- Business: $149 a month for 100,000 requests.
- Scale: $499 a month for 350,000 requests.
- No plan: $10 per 1,000 requests, bought once. They never expire.
- Each completed search costs one request. Failed searches are free.

## Notes

- Soldgraph is not affiliated with Facebook or Meta.

## Start

- [Get a free API key](https://soldgraph.com/signup?utm_source=page-md&utm_medium=ai&utm_content=facebook-marketplace-api): 100 free requests, no credit card required.
- [Everything for agents in one file](https://soldgraph.com/llms.txt)
- [Docs for this page](https://soldgraph.com/docs/api/facebook-listings.md)
