Facebook Marketplace API
Search public Marketplace listings by keyword and location, filter by price and condition, and read full item details for price research, flipping and alerts.
Answer in brief
Our pick is PrimaryAPI, the company that runs this site. Its Marketplace APIs search public listings by keyword near a latitude and longitude, with price, condition, delivery and recency filters, and read one listing’s full details, from price and photos to the seller’s rating. You only pay when data comes back.
Run by PrimaryAPIReviewed
curl -X POST "https://api.primaryapi.com/v1/run/facebook.marketplace" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query":"bike","lat":"30.2677","lng":"-97.7475","priceMin":100,"priceMax":500,"sort":"creation_time_descend"}'{
"output": {
"found": true,
"data": {
"hasNextPage": "<boolean>",
"nextCursor": "<string | null>",
"listings": [
{
"title": "<string | null>",
"priceAmount": "<number | null>",
"isSold": "<boolean | null>",
"isPending": "<boolean | null>", …
}
]
}
},
"credits": 2
}APIs
The APIs to start with
Prices from the PrimaryAPI catalog. You only pay when data comes back.
Why PrimaryAPI
Why PrimaryAPI is our pick.
Search by place, keyword and price
Turn a city name into coordinates with the location search, then search listings near that point by keyword, price range, condition, delivery method and how recently they were listed. Sort by newest, distance or price.
The whole listing in one call
The item API takes a listing’s URL or id and returns its title, description, price and any earlier price, photos, location, condition, delivery options, status and seller.
No Meta app, and pay only for data
You call the Marketplace APIs with your PrimaryAPI key, with no developer app to create. Calls spend credits from a prepaid balance, and you only pay when data comes back.
How to choose
What to check before you pick.
The checklist we use, true of any option you are weighing.
Search around a real place
Marketplace results depend on where you search. Check that you can search around a city or an exact point and sort by distance.
Filters in the request
Price range, condition, delivery or pickup and listing date cut a search down to what matters. Make sure each one is a request parameter, not a filter you apply after paying for the results.
Item details beyond the search card
Search results give a title, price and photo. For pricing work you also want the description, condition, any price cut, status and seller from the full listing.
Sold and pending status
Price research needs items that already sold as well as live ones. Check that you can include sold listings and see which items are pending.
Fresh results for alerts
If you watch for new listings, sort newest first and compare listing ids between runs. Check how quickly new listings show up and what a repeated search costs.
Cost per search and per item
Estimate the searches and item lookups your project needs each day, then compare prices on that basis, including what an empty search costs.
The full buyer’s guide goes further: How to choose a Facebook Marketplace API.
The official API
The official Meta Content Library API in dated facts.
Meta’s Content Library API is a research tool for querying Meta’s archive of public content, and it has included Facebook Marketplace listings since March 2025. Researchers at qualified academic or not-for-profit institutions apply for access, and queries run in controlled-access cleanrooms.
Read on from Meta’s published pages. Check the official documentation (opens in a new tab) before you rely on a figure.
On 2025-03-14 Meta added Marketplace to the Meta Content Library API: “You can now perform queries on Facebook Marketplace listings.”
Meta Content Library and API changelog (opens in a new tab)Marketplace searches match keywords in listing titles and descriptions and filter by category, listing country, price (when one country is set), view counts and creation date. Results sort by views or date, or by price for a single country.
Guide to Facebook Marketplace data (Meta for Developers) (opens in a new tab)Meta refreshes the view counts of Marketplace listings every 2 to 3 days.
Guide to Facebook Marketplace data (Meta for Developers) (opens in a new tab)To be eligible, applicants must be affiliated with a qualified academic institution or a qualified not-for-profit research institution, and they apply through Meta’s Research Tools Manager.
Get access, Meta Content Library and API (opens in a new tab)An independent review of each application can take 2 to 3 weeks, and Meta’s processing typically takes another 2 to 3 weeks after that review.
Get access, Meta Content Library and API (opens in a new tab)Meta charges no fees for access or computation in the Content Library web interface or for the API on Meta’s Secure Research Environment.
Get access, Meta Content Library and API (opens in a new tab)The API runs in Meta’s Secure Research Environment, a cleanroom used through a secure browser, or in an approved third-party cleanroom.
Meta Content Library and API overview (opens in a new tab)Meta’s Marketplace Partnership Program works the other way: it lets eligible third-party partners distribute listings on Facebook Marketplace, with a Product Item API and a Seller API to upload, update or delete products and sellers.
Marketplace Partnerships (Meta for Developers) (opens in a new tab)
Resources
Official resources from the platforms.
The platforms’ own documentation, for when you need the primary reference.
Is there a Facebook Marketplace API?
Meta’s Content Library API can search Marketplace listings for approved researchers, and Meta’s partner APIs let eligible partners publish listings. For reading public listings from your own code, our pick is PrimaryAPI, the company that runs this site: it searches listings by keyword and location and returns item details as JSON.
How do I search Facebook Marketplace by location with an API?
Resolve the place first: PrimaryAPI’s Marketplace Location Search turns a city or place name into coordinates. Then send a keyword with that latitude and longitude to the Marketplace Search API, and sort by distance, newest or price.
Can I get sold listings from Facebook Marketplace?
Yes. The Marketplace Search API has an availability filter for available, sold or all listings, and each result says whether it is sold, pending or live. That lets you compare the asking prices of items that sold with those still for sale.
Can I see who is selling a Marketplace item?
Yes. The Marketplace Item API returns the seller’s public name, picture, join date and rating with its rating count, along with the listing’s description, photos and price.
Can I post listings to Facebook Marketplace with an API?
Not with PrimaryAPI: its Marketplace APIs read public listings and don’t post them. Meta’s Marketplace Partnership Program has APIs to upload, update and delete products and sellers, for eligible third-party partners.
How much does a Facebook Marketplace API cost?
PrimaryAPI charges credits per call from a prepaid balance, whether the call is a search page or an item lookup, and each API shows its price on its page. Pay as you go has no monthly fee or minimum.
Can I get alerts for new Facebook Marketplace listings?
Yes, by running a Marketplace search on a schedule from your own code, sorted newest first, and alerting on listing ids you haven’t seen before. Each run costs one call per page of results.
Try our pick on your own data.
Create a PrimaryAPI account, copy your key and make your first call from the docs. You only pay when data comes back.