# Search Facebook Marketplace listings by keyword and lat/lng

Searches Facebook Marketplace listings by keyword and lat/lng.

|  |  |
| --- | --- |
| Tool id | `scrapecreators.x-v1-facebook-marketplace-search` |
| Platform | [Facebook](https://www.orcarouter.ai/tools/facebook.md) |
| Capability | [Search posts](https://www.orcarouter.ai/tools/facebook/search-posts.md) |
| Price | $0.002068 per credit |
| Health | OK |
| p50 latency | — |
| Success (7 days) | — |
| Runs (30 days) | — |
| Idempotent | yes |
| Data class | scraped |

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `lat` | number | yes | Latitude for the search location |
| `lng` | number | yes | Longitude for the search location |
| `query` | string | yes | Search keyword |
| `availability` | string | no | Availability filter |
| `condition` | string | no | Condition filter |
| `count` | number | no | Number of listings to return |
| `cursor` | string | no | Opaque pagination cursor returned from the previous response. Pass it back as-is. |
| `date_listed` | string | no | Date listed filter |
| `delivery_method` | string | no | Delivery filter |
| `max_price` | number | no | Maximum listing price |
| `min_price` | number | no | Minimum listing price |
| `radius_km` | number | no | Search radius in kilometers |
| `sort_by` | string | no | Sort order |

## Call it

```bash
curl -sS https://api.orcarouter.ai/v1/tools/scrapecreators.x-v1-facebook-marketplace-search/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/scrapecreators.x-v1-facebook-marketplace-search/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 Events Search](https://www.orcarouter.ai/tools/facebook/search-posts/facebook-events-search.md) | — | $0.00132 per call | OK |
| [Facebook Company Search](https://www.orcarouter.ai/tools/facebook/search-posts/facebook-search-companies.md) | — | $0.00132 per call | OK |
| [Search Facebook events by name](https://www.orcarouter.ai/tools/facebook/search-posts/x-v1-facebook-events-search.md) | — | $0.002068 per credit | OK |
| [Public Facebook profile or Page by username or id](https://www.orcarouter.ai/tools/facebook/search-posts/x-facebook-profile.md) | — | $0.0275 per call | OK |
| [Search public Facebook posts by keyword](https://www.orcarouter.ai/tools/facebook/search-posts/x-facebook-search-post-v1.md) | — | $0.032472 per call | OK |
| [Facebook Post Search](https://www.orcarouter.ai/tools/facebook/search-posts/facebook-search-posts.md) | — | $0.033 per call | OK |
| [Facebook Page Search](https://www.orcarouter.ai/tools/facebook/search-posts/facebook-search-pages.md) | — | $0.1353 per call | OK |

## FAQ

### How much does Search Facebook Marketplace listings by keyword and lat/lng cost?

Search Facebook Marketplace listings by keyword and lat/lng costs $0.002068 per credit: 1,000 units cost $2.068.

### What does a $10 budget buy with Search Facebook Marketplace listings by keyword and lat/lng?

About 4835 units (credit) at $0.002068 each.

### What inputs does Search Facebook Marketplace listings by keyword and lat/lng need?

Required inputs: lat, lng, query.

### How do I call Search Facebook Marketplace listings by keyword and lat/lng?

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/search-posts/x-v1-facebook-marketplace-search
