AgentAPIGate
Back to Catalog
GET /v1/facebook/marketplace/searchPack: commerce·MCP Tool: facebook_marketplace_search

Facebook Marketplace Local Listings Search

Search Facebook Marketplace items near coordinates by keyword and price filters with live status, delivery method, city, and pricing.

API Key Price:$0.0030 / call
x402 Base USDC:$0.0030 / call
Partner Credit:eligible
1. Parameters & Controls
Search keyword (e.g. bike, sofa, macbook)
Latitude for local search
Longitude for local search
Optional minimum price filter
Optional maximum price filter
Max listings (1-25)
Get $0.25 Free Key →
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"
1-Click Agent IDE Install
Add to Cursor (1-Click OAuth)
-93% tokens
# 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
ParameterTypeReqSample / DefaultDescription
querystringrequiredbikeSearch keyword (e.g. bike, sofa, macbook)
latnumberoptional30.2677Latitude for local search
lngnumberoptional-97.7475Longitude for local search
price_minnumberoptional—Optional minimum price filter
price_maxnumberoptional—Optional maximum price filter
limitnumberoptional10Max listings (1-25)
formatenumoptionaljson | compact | mdResponse format; compact or md cuts LLM tokens.
dry_run0 | 1optional1Returns exact pre-flight price quote & validation at $0.00 cost.
Access Rail / MetricValuePolicy & SLA
API Key (PAYG)$0.0030 / call$0/mo · Balance never expires
Remote MCP Toolfacebook_marketplace_searchOAuth 2.1 Hub & /mcp/commerce
x402 Base USDC$0.0030 / callZero-signup USDC enabled
P50 Latency2075 ms$0 billed on empty or 4xx/5xx
Token Economy4232t → 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.