Is there a Facebook Marketplace API?
Checked on 2026-11-19.
Not a public one. Meta documents two interfaces to Marketplace, and neither is open to an ordinary developer: a partner API for publishing listings, and a research library that can search public listings from inside a controlled research environment. For searching listings from your own code there is no official route. Here is what exists, who can use it, and what an unofficial HTTP API returns.
What Meta documents: an API for partners to publish listings
The Marketplace Platform section of Meta's developer documentation lists one product, Marketplace Partnerships: "Enable partners to distribute their products on the Facebook platform." It has two APIs.
- Product Item API: "How to upload, update, or delete products on Facebook Marketplace". A call is a
POSTto/{product-catalog-id}/items_batchwith up to 300 items, each with the methodCREATE,UPDATEorDELETE, and the page asks for no more than 30 calls per minute. - Seller API: "How to upload, update, or delete sellers on Facebook Marketplace". Every product in a partner's catalogue must have a seller.
Both write a partner's own catalogue. Neither page describes a call that searches Marketplace or reads other sellers' listings.
Who is a partner? Meta's announcement of 13 February 2025 launched the Facebook Marketplace Partner Program "to enable eligible third-party partners to distribute listings on Facebook Marketplace to users in the European Economic Area", and it says whom it means: "online classified ad service providers as defined in the European Commission's decision". In May 2025 Meta named Catawiki and Vendora as the first European partners. A test with eBay had started that January.
Where it stops: if you run a classifieds platform with consumer-to-consumer listings, this programme is your route. It is not an API for a seller's own Marketplace account, and it does not read listings.
The official search: Meta Content Library, for researchers
Meta does have a search over Marketplace listings, in the Meta Content Library API. Its data includes "Public listings on Facebook Marketplace from Pages or profiles", and the search takes keywords, categories, countries, a price range and a sort order. This search is put together from the examples in Meta's guide:
from metacontentlibraryapi import MetaContentLibraryAPIClient as client
client.set_default_version(client.LATEST_VERSION)
response = client.get(
path="facebook/marketplace-listings/preview",
params={"listing_countries": ["US"], "price_max": "10000", "q": "rentals"},
)
display(response.json()) # Display first pageWhere it stops: it is for research, and it does not run on your server. To be eligible, "applicants must be affiliated with a qualified academic institution or a qualified non-academic research institution", both of them not-for-profit. An independent body reviews each application. The API is used from a notebook in Meta's Secure Research Environment or in an approved third-party cleanroom, and Meta charges no fee for access or computation in its own environment. For a study of Marketplace it is the right route. For a price tracker or a resale tool it is not available.
Searching listings from your own code
Pipefetch has a Marketplace search as one HTTPS request: a search term and a place in, the listings Facebook shows near that place out, as JSON. It returns what Marketplace shows a visitor who is not logged in. It is an independent service, not an official API, and it is not affiliated with or endorsed by Meta.
import os
import requests
res = requests.get(
"https://pipefetch.com/v1/facebook/marketplace",
params={"q": "bike", "location": "10001", "sort": "newest", "maxPrice": 200},
headers={"x-api-key": os.environ["PIPEFETCH_API_KEY"]},
timeout=90,
)
if res.status_code == 404:
print(res.json()["error"]["code"]) # no_results or location_not_found: not charged
else:
res.raise_for_status()
data = res.json()["data"]
print("Searched around:", data["search"]["location"]) # check that it is the place you meant
for item in data["listings"]:
print(item["priceFormatted"], item["title"], item["city"], item["url"])Each listing has its title, the price as a number and as Facebook writes it, the currency, the earlier price of a listing that was marked down, city and state, the time it was listed, one photo, whether it is available, pending or sold, the seller's public name, how the item changes hands and whether shipping is offered.
The filters are a price range (minPrice and maxPrice, in whole units of the local currency) and four orders: best, newest, price_low and price_high. A search returns up to 20 listings and costs 1 credit whatever the limit. A new account has 100 free credits and needs no card. The reference lists every parameter and field.
Name the place with a postal code
The location parameter is text, and Facebook decides which place it means. A postal code is the dependable way to say it: 10001 was understood as "New York, NY". A city name works too, but Facebook can match it to a smaller place with a similar name: in an earlier run of ours, "New York, NY" became New City, New York.
Whatever you send, search.location in the answer says which place Facebook understood, so check it before you trust the prices. The area searched around that place is Facebook's choice, and a radius cannot be set. A location Facebook knows no place for answers 404 location_not_found, a search that finds nothing answers 404 no_results, and neither is charged.
What it leaves out
A search returns what Marketplace shows in its list of results. Descriptions, further photos, exact coordinates, item condition and seller ratings are on each listing's own page and are not included; url is the address of that page. There is no category filter, no radius and no second page of results. And it only reads: it cannot publish a listing, change one or message a seller.
Which one is for you?
| You are | Use |
|---|---|
| A classifieds platform that wants its listings on Marketplace | The Marketplace Partner Program, with its Product Item and Seller APIs |
| A researcher at a university or a not-for-profit research institute | Meta Content Library API |
| A developer who needs current listings and prices in code | An unofficial HTTP API such as Pipefetch |
| A seller who wants to manage their own listings by API | Meta documents no API for this |
Listings are posted by people
A listing carries the public name of its seller and, for some sellers, a link to their Marketplace profile. When the seller is a person, that is personal data under laws such as the GDPR, whichever route fetched it. Price research needs the items and the prices, not the sellers: leave the names out of what you store.
Meta's terms of service say you "may not access or collect data from our Products using automated means (without our prior permission)". The partner API and the Content Library come with that permission. An unofficial route does not, and you are responsible for how you use what it returns.
Try it with 100 free credits. No card needed. No scraper to build or maintain. Get an API key or read the docs.
APIs used in this guide
More Facebook guides
- How to get a Facebook Page's posts without app review
- Facebook Groups API alternatives after its removal in 2024
- How to get a Facebook Page's follower count and contact details in Python
Guides for other sources
Every source
YouTube
- How to get a YouTube transcript in Python
- How to get a YouTube transcript in Node.js
- YouTube API quota exceeded: what the error means and how to fix it
- How to find a YouTube channel ID from a handle or URL
- How to download YouTube subtitles as SRT or VTT
- youtube-transcript-api RequestBlocked or IpBlocked: why it happens and how to fix it
- How to get YouTube comments in Python
- How to search YouTube from Python
- How to list a YouTube channel's videos in Python
- How to summarize a YouTube video with an LLM in Python
- How to get YouTube transcripts and video stats in Google Sheets
- How to get YouTube video views and likes in Python
- How to get YouTube transcripts in n8n, Make and Zapier
- LangChain YoutubeLoader fails on a server: why, and a loader that works
- How to get a YouTube channel's subscriber count in Python
- How to give Claude or Cursor access to YouTube (MCP server)
- How to get YouTube comments in Node.js
- How to analyze YouTube comments with an LLM in Python
- How to list a YouTube channel's Shorts in Python
- How to search YouTube from JavaScript
- How to get an Instagram follower count in Python
- Instagram Basic Display API alternatives: what to use after the shutdown
- Instaloader 401 Unauthorized, 429 and "Login required": what to do
- How to calculate an Instagram engagement rate in Python
- How to get an Instagram follower count in Node.js
- How to get Instagram follower counts in Google Sheets
- How to get Instagram Reel views in Python
Websites
- Clearbit Logo API alternatives: get a company logo from its domain
- How to extract email addresses from a website in Python
- How to turn a web page into Markdown in Python
- How to detect what a website is built with, in Python
- How to get the contact emails and phone numbers of websites in Google Sheets
- How to build a LangChain tool that reads web pages and searches Google
- How to turn a web page into Markdown in JavaScript for RAG
- How to extract social media links from a website in Python
- How to get a website's favicon in Python
- How to check robots.txt in Python before you fetch a page
TikTok
- How to get a TikTok video's views and likes in Python
- How to get the comments of a TikTok video in Python
- How to get a TikTok follower count in Python
- TikTok Research API: who can get access, and what to do if you cannot
- How to get TikTok video views, likes and shares in Node.js
- How to get TikTok views, likes and follower counts in Google Sheets
- How to get Google search results in Python
- pytrends 429 TooManyRequestsError: what it means and what to do
- How to get Google Trends data in Python
- Why is Wyoming first in Google Trends?
- How to get Google search results in Node.js
- How to get Google search results into Google Sheets
- How to give an LLM live Google results with tool calling
Threads
- How to get LinkedIn company data in Python
- How to search LinkedIn jobs from Python
- How to get a LinkedIn company page's latest posts in Python