Facebook Marketplace Local Listings Search
Search Facebook Marketplace items near coordinates by keyword and price filters with live status, delivery method, city, and pricing.
curl -sG "https://api.agentapigate.ai/v1/facebook/marketplace/search" \ --data-urlencode "query=bike" \ --data-urlencode "lat=30.2677" \ --data-urlencode "lng=-97.7475" \ --data-urlencode "limit=10" \ --data-urlencode "format=md" \ -H "Authorization: Bearer aag_live_YOUR_KEY" \ -H "X-AAG-Max-Cost: 0.0100"
# Facebook Marketplace Local Listings Search (`facebook.marketplace.search`) **query**: bike · **count**: 10 ## listings - [1] id: 2793856851029591, title: Mongoose Bike, currency: USD, city: Austin, state: TX - [2] id: 1531654422343477, title: Crave Specialized Mountain Bike, currency: USD, city: Austin, state: TX - [3] id: 2584760208713179, title: Next bike, currency: USD, city: Austin, state: TX - [4] id: 1741008490712460, title: Bike, currency: USD, city: Austin, state: TX - [5] id: 969927112632938, title: Bike, currency: USD, city: Austin, state: TX - [6] id: 1704428411038165, title: Bike Letric, currency: USD, city: Austin, state: TX - [7] id: 1155499750250728, title: Hybrid Bike - 1 month use - 50% off, currency: USD, city: Austin, state: TX - [8] id: 1181498277665565, title: mongoose bike, currency: USD, city: Austin, state: TX - [9] id: 2229555871314863, title: Retro Cruiser Huffy Bicycle, currency: USD, city: San Marcos, state: TX - [10] id: 1741444907986002, title: GT XCR 3000 full-suspension mountain bike with aluminum frame and quality components., currency: USD, city: Austin, state: TX
Endpoint Parameters, Cost & Token Economy Reference
Endpoint ID:facebook.marketplace.search · Method: GET| Parameter | Type | Req | Sample / Default | Description |
|---|---|---|---|---|
| query | string | required | bike | Search keyword (e.g. bike, sofa, macbook) |
| lat | number | optional | 30.2677 | Latitude for local search |
| lng | number | optional | -97.7475 | Longitude for local search |
| price_min | number | optional | — | Optional minimum price filter |
| price_max | number | optional | — | Optional maximum price filter |
| limit | number | optional | 10 | Max listings (1-25) |
| format | enum | optional | json | compact | md | Response format; compact or md cuts LLM tokens. |
| dry_run | 0 | 1 | optional | 1 | Returns exact pre-flight price quote & validation at $0.00 cost. |
| Access Rail / Metric | Value | Policy & SLA |
|---|---|---|
| API Key (PAYG) | $0.0030 / call | $0/mo · Balance never expires |
| Remote MCP Tool | facebook_marketplace_search | OAuth 2.1 Hub & /mcp/commerce |
| x402 Base USDC | $0.0030 / call | Zero-signup USDC enabled |
| P50 Latency | 2075 ms | $0 billed on empty or 4xx/5xx |
| Token Economy | 4232t → 305t (-93%) | Partner credit: eligible |
More facebook.marketplace Sibling Endpoints
Frequently Asked Questions
How do I call Facebook Marketplace Local Listings Search (facebook.marketplace.search) over REST and Remote MCP?
Send GET requests to https://api.agentapigate.ai/v1/facebook/marketplace/search with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool facebook_marketplace_search on https://mcp.agentapigate.ai/mcp.
What does facebook.marketplace.search cost per call and are failed calls billed?
Each successful HTTP 200 response costs $0.003 USD from a non-expiring PAYG balance ($0/month minimum). Upstream errors, empty responses, and ?dry_run=1 pre-flight quotes always bill $0.00.
How does ?format=md or ?format=compact optimize AI agent token usage on facebook.marketplace.search?
Passing ?format=md transforms the response into normalized Markdown (~305 tokens vs ~4232 raw tokens, saving 93% of LLM context budget) while preserving structured JSON via ?format=json.
Can I restrict an AI agent key to only commerce endpoints with a daily USD cap?
Yes. Create a scoped aag_agent_* sub-key via POST /v1/keys with allowed_packs: ["commerce"], optional allowed_endpoints: ["facebook.marketplace.search"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.