# Facebook Marketplace

Search Facebook Marketplace listings by keyword near a location, filter by price, condition, delivery, recency, and availability, and get title, price, location, and image as normalized JSON.

|  |  |
| --- | --- |
| Tool id | `anyapi.facebook-marketplace` |
| Platform | [Facebook](https://www.orcarouter.ai/tools/facebook.md) |
| Capability | [Other tools](https://www.orcarouter.ai/tools/facebook/other.md) |
| Price | $0.00132 per call |
| Health | OK |
| p50 latency | — |
| Success (7 days) | — |
| Runs (30 days) | — |
| Idempotent | no |
| Data class | scraped |

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `lat` | string | yes | Latitude of the search location (e.g. '30.2677'). |
| `lng` | string | yes | Longitude of the search location (e.g. '-97.7475'). |
| `query` | string | yes | Search keyword for Marketplace listings (e.g. 'bike'). |
| `availability` | string | no | Filter by availability: available (default), sold, or all (e.g. sold). |
| `condition` | string | no | Only return listings in this condition (e.g. used_good). |
| `cursor` | string | no | Pagination cursor from a previous response to fetch the next page. |
| `dateListed` | string | no | Only return listings posted within this window (e.g. last_7_days). |
| `deliveryMethod` | string | no | Only return listings offering this delivery method (e.g. shipping). |
| `priceMax` | integer | no | Maximum listing price in whole currency units, e.g. 500 for $500. Facebook may mix in a few suggested listings outside the range. |
| `priceMin` | integer | no | Minimum listing price in whole currency units, e.g. 100 for $100. Facebook may mix in a few suggested listings outside the range. |
| `sort` | string | no | Sort order for the returned listings (e.g. price_ascend). |

## Call it

```bash
curl -sS https://api.orcarouter.ai/v1/tools/anyapi.facebook-marketplace/run \
  -H "Authorization: Bearer $ORCAROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"lat":"<lat>","lng":"<lng>","query":"<query>"}}'
```

```python
import os, requests

resp = requests.post(
    "https://api.orcarouter.ai/v1/tools/anyapi.facebook-marketplace/run",
    headers={"Authorization": f"Bearer {os.environ['ORCAROUTER_API_KEY']}"},
    json={"input":{"lat":"<lat>","lng":"<lng>","query":"<query>"}},
)
print(resp.json())
```

## Alternatives

| Tool | Source | Price | Health |
| --- | --- | --- | --- |
| [Facebook Event Details](https://www.orcarouter.ai/tools/facebook/other/facebook-event-details.md) | — | $0.00132 per call | OK |
| [Facebook Events](https://www.orcarouter.ai/tools/facebook/other/facebook-events.md) | — | $0.00132 per call | OK |
| [Facebook Group Posts](https://www.orcarouter.ai/tools/facebook/other/facebook-group-posts.md) | — | $0.00132 per call | OK |
| [Facebook Marketplace Location Search](https://www.orcarouter.ai/tools/facebook/other/facebook-marketplace-location-search.md) | — | $0.00132 per call | OK |
| [Facebook Page Contact Info](https://www.orcarouter.ai/tools/facebook/other/facebook-page-contact.md) | — | $0.00132 per call | OK |
| [Facebook Page Photos](https://www.orcarouter.ai/tools/facebook/other/facebook-photos.md) | — | $0.00132 per call | OK |
| [Facebook Post](https://www.orcarouter.ai/tools/facebook/other/facebook-post-detail.md) | — | $0.00132 per call | OK |
| [Facebook Post Transcript](https://www.orcarouter.ai/tools/facebook/other/facebook-post-transcript.md) | — | $0.00132 per call | OK |
| [Facebook event details by id or URL](https://www.orcarouter.ai/tools/facebook/other/x-v1-facebook-event-details.md) | — | $0.002068 per credit | OK |
| [Facebook events for a city by URL](https://www.orcarouter.ai/tools/facebook/other/x-v1-facebook-events.md) | — | $0.002068 per credit | OK |

Showing the first 10 of 11.

## FAQ

### How much does Facebook Marketplace cost?

Facebook Marketplace costs $0.00132 per call: 1,000 calls cost $1.32.

### What does a $10 budget buy with Facebook Marketplace?

About 7575 calls at $0.00132 per call.

### What inputs does Facebook Marketplace need?

Required inputs: lat, lng, query.

### How do I call Facebook Marketplace?

Send POST /v1/tools/{id}/run with your OrcaRouter API key and a JSON body {"input": {…}}, where {id} is the tool id POST /v1/tools/discover returns for it.

---

Markdown version of https://www.orcarouter.ai/tools/facebook/other/facebook-marketplace
