Facebook Marketplace API for AI agents: listings, Pages, posts and ads
Let Claude, ChatGPT, Cursor or Codex read public Facebook data: Marketplace listings by keyword and place, Pages and their posts, comments, public groups and events, and ads from the Meta Ad Library. It comes from third-party data providers and the Ad Library, so you don't sign in to Facebook or manage API keys. Your agent pays per call.
78 tools and 5 skills that use them. Pay per use from one balance, no API keys.
- Facebook Ad Details
$0.0016 per call
AnyAPIProven · 100% success - Facebook Events
$0.0016 per call
AnyAPIProven · 100% success - Facebook Events Search
$0.0016 per call
AnyAPIProven · 100% success - Facebook Marketplace Location Search
$0.0016 per call
AnyAPIProven · 100% success - Facebook Post Transcript
$0.0016 per call
AnyAPIProven · 100% success - Facebook post details by post URL
$0.0195 per 10 records
Bright DataProven · 100% success - Facebook comment replies by feedback id
$0.0025 per call
Scrape CreatorsProven · 100% success - Facebook event details by id or URL
$0.0025 per call
Scrape CreatorsProven · 100% success - Facebook events for a city by URL
$0.0025 per call
Scrape CreatorsProven · 100% success - Facebook page events by URL
$0.0025 per call
Scrape CreatorsProven · 100% success - Search Facebook Marketplace locations by city — lat/lng
$0.0025 per call
Scrape CreatorsProven · 100% success - Facebook Ad Transcript
$0.0026 per call
AnyAPIProven · 100% success - Facebook Company Search
$0.0026 per call
AnyAPIProven · 100% success - Facebook Marketplace
$0.0026 per call
AnyAPIProven · 100% success - Facebook Page Events
$0.0026 per call
AnyAPIProven · 100% success - Facebook Post Comments
$0.0026 per call
AnyAPIProven · 100% success - Facebook Profile
$0.0026 per call
AnyAPIProven · 100% success - Search Facebook and Instagram ads by keyword
$0.0143 per page
InstagramProven · 100% success - Public Facebook profile or Page by username or id
$0.0195 per call
SerpApiProven · 100% success - Facebook post comments by post id
$0.0384 per call
Just One APIProven · 100% success - Facebook profile posts by profile id
$0.0384 per call
Just One APIProven · 100% success - Meta Ad Library ads for a keyword
$0.0022 per call
MetaProven · 100% success - Find a company's Facebook and Instagram ads
$0.0143 per page
InstagramProven · 100% success - Facebook Profile Reels
$0.0016 per call
AnyAPIProven · 100% success
Starting prices. Prices can vary with length and quality. Your AI Agent works out the exact price, runs the tool from your balance and tells you what it cost. Failed uses are free.
What do you want your agent to do?
Search Marketplace listings
Listings for a keyword near a place, filtered by price, condition or recency.
Best pick: Facebook Marketplace, $0.0026 per call
Read one listing
Title, price, location, photos and details of a listing from its URL.
Best pick: Facebook Marketplace Item, $0.0016 per call
Look up a Page
A Page's category, about text, likes and followers.
Best pick: Facebook Profile, $0.0026 per call
Read posts and comments
Recent posts from a public Page with their text and engagement, then the comments under them.
Best pick: A public Facebook profile's or page's posts, by profile id or URL, $0.0018 per call
See a company's ads
The ads one Page runs in the Meta Ad Library, with dates, platforms, text and media.
Best pick: Meta Ad Library ads of one advertiser, $0.0022 per call
Follow groups and events
Recent posts from a public group, and public events by keyword or city.
Best pick: Facebook Group Posts, $0.0026 per call
Our Facebook data tools and MCPs
| Source | Best for | Example, today's price |
|---|---|---|
| Facebook Marketplace | Listings by keyword and place, and the full details of one listing | Facebook Marketplace, $0.0026 per call |
| Facebook Pages | A Page's about text, category, followers, photos, reels and events | Facebook Profile, $0.0026 per call |
| Posts and comments | A Page's recent posts, keyword search over public posts, comments, replies and video transcripts | Facebook Post Search, $0.0859 per call |
| Groups and events | Posts from public groups, and public events by keyword, city or Page | Facebook Events Search, $0.0016 per call |
| Meta Ad Library | Ads one Page runs, ads for a keyword, EU reach and spend on political and issue ads | Search the Meta ad library by keyword, Free |
Every tool here reads public data, and none uses your Facebook account. We left out tools that return a Page's email or phone number, and people search by name.
How to choose the best Facebook data tool or MCP for you
Search first, then look up
Search Marketplace or public posts to see what's there, then look up single listings or posts only for the ones you need.
Location
Marketplace search works near a place. A location lookup turns a city name into the coordinates some Marketplace tools ask for.
One advertiser or a whole market
To study a competitor, list the ads one Page runs. To see a market, search the Ad Library by keyword. EU reach and political ad spend have their own tools.
Public data only
The tools cover public Pages, posts, public groups, events, Marketplace listings and the Ad Library. Private groups and profiles aren't included.
| If you need | Choose | Today's price |
|---|---|---|
| Prices for an item in your area | Marketplace search near your city | $0.0026 per call |
| Everything about one listing | Marketplace listing details | $0.0016 per call |
| What a brand posts and how people react | A Page's recent posts, then comments | $0.0018 per call |
| A competitor's current ads | Ad Library ads of one advertiser | $0.0022 per call |
| Ads on a topic across advertisers | Ad Library keyword search | $0.0022 per call |
| Who paid for political ads | Political and issue ads with spend | Free |
| Local events on a topic | Facebook events search | $0.0016 per call |
Quick picks: Marketplace search for local prices, a Page's posts for brand research, the Ad Library for competitor ads.
Why use Agensi instead of separate Facebook data MCPs?
Building this yourself means a separate scraper or data API for each part of Facebook, each with its own key and code to maintain. With Agensi your agent reads Marketplace listings, Pages, posts, groups, events and the Meta Ad Library through one connection and pays per call from one balance. Your Facebook account is never connected. Your agent runs a tool from your balance and tells you what it found and what it cost. Failed uses are free.
| What you get | Official MCP per brand | Own API key or community server | Agensi |
|---|---|---|---|
| Accounts | One per brand | One per brand | One |
| API keys | Per brand, or a sign-in | Per brand, kept by you | None |
| Payment | A plan or credits per brand | Per brand | One balance, per use |
| Spending control | Varies | Up to you | Limits per use, day and month, or ask first |
| Several sources in one answer | Connect several servers | Several servers and keys | One connection |
| Skills for the whole job | No | No | Yes, from the marketplace |
When another way is the better choice. If you manage your own Pages, ads or product catalog, use Meta's own tools with your business account: they show your own results and messages, which public data tools can't see. For heavy Ad Library research, Meta's own Ad Library API is the direct route.
Set up in your AI agent
Connect your AI agent to Agensi once, sign in and click Allow. After that it can use every tool: it runs one from your balance and tells you what it cost. No API keys or provider accounts.
- Open Settings, then Connectors, then Browse connectors and add Agensi (or Add custom connector and paste https://mcp.agensi.io/mcp/auth).
- Sign in to Agensi and click Allow. One agent per account: connecting a new one disconnects the old one.
- Ask for what you want, for example: "Find used road bikes for sale near Austin on Facebook Marketplace, read the five best matches and tell me what a fair price is." Top up from $5 if your balance is low; failed uses are free.
- Run: claude mcp add agensi --transport http --url https://mcp.agensi.io/mcp/auth
- Sign in to Agensi and click Allow. One agent per account: connecting a new one disconnects the old one.
- Ask for what you want, for example: "Find used road bikes for sale near Austin on Facebook Marketplace, read the five best matches and tell me what a fair price is." Top up from $5 if your balance is low; failed uses are free.
- Open chatgpt.com/plugins, click Add, then Add custom MCP server. Paste https://mcp.agensi.io/mcp/auth and choose OAuth. Create it, click Connect, then sign in to Agensi and click Allow.
- Sign in to Agensi and click Allow. One agent per account: connecting a new one disconnects the old one.
- Ask for what you want, for example: "Find used road bikes for sale near Austin on Facebook Marketplace, read the five best matches and tell me what a fair price is." Top up from $5 if your balance is low; failed uses are free.
- Add an HTTP MCP server named "agensi" with url https://mcp.agensi.io/mcp/auth to .cursor/mcp.json.
- Sign in to Agensi and click Allow. One agent per account: connecting a new one disconnects the old one.
- Ask for what you want, for example: "Find used road bikes for sale near Austin on Facebook Marketplace, read the five best matches and tell me what a fair price is." Top up from $5 if your balance is low; failed uses are free.
- Add to ~/.codex/config.toml: [[mcp]] name = "agensi", type = "url", url = "https://mcp.agensi.io/mcp/auth"
- Sign in to Agensi and click Allow. One agent per account: connecting a new one disconnects the old one.
- Ask for what you want, for example: "Find used road bikes for sale near Austin on Facebook Marketplace, read the five best matches and tell me what a fair price is." Top up from $5 if your balance is low; failed uses are free.
Grok, VS Code, GitHub Copilot, Cline, Kiro and other agents with remote MCP and sign-in work too: see the setup guide.
What it costs: a worked example
"Find used road bikes for sale near Austin on Facebook Marketplace, read the five best matches and tell me what a fair price is."
- $0.0026
1 × Search Marketplace near Austin
Facebook Marketplace, $0.0026 per call
- $0.008
5 × Read five listings
Facebook Marketplace Item, $0.0016 per call
At today's starting prices. Your agent works out the exact price for your request and tells you what it cost.
Combine Facebook data tools with skills
- Competitor Ad Intelligence AnalystMaps competitors' ads from public ad libraries and turns the gaps it finds into creative briefs.
- Paid Acquisition Pilot Playbook (Google + Meta Ads)Plans a small paid test on Google and Meta, starting with a swipe file of competitor ads.
- Marketplace Flip FinderScreens local resale finds against comparable sold prices, fees and travel before you buy.