Facebook Marketplace Location Search API
Run a Facebook marketplace locations and get structured, ranked results as clean JSON.
GET request to /v1/facebook/marketplace-location-search that responds with clean JSON and costs 2 credits. Pass cache=true for a free 24h cache hit; default is always fresh. Start with 100 free credits — no credit card.What is the Facebook Marketplace Location Search API?
The Facebook Marketplace Location Search API lets you search and return matching results for Facebook marketplace locations with a single REST call. No OAuth, no infrastructure to maintain, and no platform SDKs — send the request, get clean structured JSON back. Pass cache=true to serve from the 24h shared cache (0 credits on hit); default is always fresh.
What you get
- Ranked, structured result list
- Title, URL, author, and thumbnail per result when available
- Engagement metrics where the platform exposes them
- Configurable result limit
Try it
Fill in the parameters below and copy a ready-to-run request, or open the live Playground to run it against your account (no API key paste).
Parameters
curl "https://api.captapi.com/v1/facebook/marketplace-location-search?q=Austin%2C%20TX" \
-H "Authorization: Bearer capt_live_..."
# or: -H "x-api-key: capt_live_..."Edit the parameters and the code updates instantly. Switch languages and hit copy.
Example response
{
"success": true,
"data": {
"query": "Austin, TX",
"totalReturned": 1,
"locations": [
{
"id": "austin, tx|austin|tx",
"name": "Austin, TX",
"city": "Austin",
"state": "TX",
"latitude": 30.2677,
"longitude": -97.7475
}
]
}
}Billing metadata is returned in response headers: X-Captapi-Credits (credits charged), X-Captapi-Cache (hit or miss), and X-Captapi-Source. Failed requests (4xx/5xx) are never charged. See the full list of error codes in the error reference.
Response structure
A successful call returns success, cached, creditsUsed, and a data object with the following fields:
Top-level fields
queryThe search query you sent.totalReturnedNumber of items returned in this response.
Locations
Each item in locations contains:
idStable platform ID for the item.nameName of the item or account.cityCity. Example: "Austin".stateState. Example: "TX".latitudeLatitude. Example: 30.2677.longitudeLongitude. Example: -97.7475.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| q | string | Yes | City/place search query, e.g. Austin. |
| limit | integer | No | Max items to return (default 10, max 50). Flat 2 credits per call. |
| details | boolean | No | Legacy flag. Coordinates are included when available. Flat 2 credits either way. |
| cache | boolean | No | Set true to serve from the 24h response cache. Default false — always fetch fresh data. |
Authentication: send your key as Authorization: Bearer capt_live_.... A typical call costs 2 credits. Pass cache=true for a free 24h cache hit; default is always fresh.
facebook_marketplace_location_search via @captapi/mcp. Set it up →How it works
- 1. Sign up — get 100 free credits, no card required.
- 2. Create a key from your dashboard.
- 3. Send one request to
/v1/facebook/marketplace-location-searchand parse the JSON response.
Use cases
Trend Discovery
Find trending content by keyword or hashtag.
Content Sourcing
Build feeds and playlists programmatically.
Monitoring
Track topics, brands, and competitors.
Research
Sample large sets of content for analysis.
Frequently asked questions
What does the Facebook Marketplace Location Search API do?+
The Facebook Marketplace Location Search API lets you search and return matching results from a public Facebook query using one GET request to /v1/facebook/marketplace-location-search. It returns clean JSON — no OAuth or infrastructure setup required.
How many credits does the Facebook Marketplace Location Search API cost?+
Each successful call costs 2 credits. Pass cache=true to serve from the 24h shared cache (0 credits on hit); default is always fresh. Failed or empty results are never charged.
Do I need a Facebook API key or OAuth?+
No. A single Captapi key works across every platform Captapi supports — YouTube, TikTok, Instagram, Facebook, Twitter/X, Reddit, Threads, Bluesky, Pinterest, LinkedIn, Rumble, Spotify, Kwai, and more. We handle proxies, rate limits, retries, and authentication for you.
Is the Facebook Marketplace Location Search API suitable for production use?+
Yes. It is a stable REST endpoint with predictable JSON and automatic retries. Pass cache=true to serve from the 24h shared cache (0 credits on hit); default is always fresh. Use it for analytics, monitoring, and content automation.
More Facebook APIs
Ready to use the Facebook Marketplace Location Search API?
Sign up, grab your key, and make your first call in 60 seconds.