Facebook Marketplace API for search results
Send any Facebook Marketplace page URL with recipe=facebook and get title, price, location and 2 more fields as JSON. No selectors to write, no proxies to pick.
- 1 page type
- 5 fields
- 5 credits a page · $0.50 per 1,000
- Working · 95.2% in 7 days
5,000 free credits for 21 days, no card.
curl -G 'https://api.ujeebu.com/scrape' \
-H "ApiKey: $UJEEBU_API_KEY" \
--data-urlencode 'url=https://www.facebook.com/marketplace/nyc/search/?query=guitar' \
--data-urlencode 'recipe=facebook/listing'
{
"result": {
"listings": [
{
"title": "Acoustic guitar",
"price": "$30",
"location": "Bronx, NY"
}
]
},
"success": true
}
Is there an official Facebook Marketplace API?
No official API
No. Meta's Graph API gives no access to Facebook Marketplace listings, and there is no public API for Marketplace data.
Source: developers.facebook.com on developers.facebook.com, checked November 6, 2026.
How to get Facebook Marketplace data as JSON today
- Get a free API key: 5,000 free credits for 21 days, no card.
- Send any Facebook Marketplace page URL with
recipe=facebookto the Scrape API (the call). - Get 5 fields as JSON, 5 credits a page, billed only when the call succeeds.
Ujeebu's Facebook Marketplace recipe returns title, price, location and 2 more fields from any public Facebook Marketplace page as JSON: send the URL with recipe=facebook to the Scrape API, 5 credits a page, no Facebook Marketplace account or partner approval needed.
What you get from Facebook Marketplace
The fields of each page type and a real sample from our last validation, shortened.
Search and listing pages recipe=facebook/listing 5 credits a page
| Field | Type | Example |
|---|---|---|
listings | list of 3+ items | |
listings[].image | image URL | https://scontent-lga3-1.xx.fbcdn.net/v/t39.84726-6/886032808_109926... |
listings[].location | text | New York, NY |
listings[].price | text | $45 |
listings[].title | text | Guitar for sale |
listings[].url | URL | https://www.facebook.com/marketplace/item/2115924992373323/ |
Sample answer, validated 2026-11-20
{
"listings": [
{
"image": "https://scontent-phl2-1.xx.fbcdn.net/v/t39.84726-6/917341732_1774174260351749_4959799123960199289_n.jpg?stp=c0.43.261.261a_dst-jpg_p261x260_tt6&_nc_cat=107&_...",
"location": "Bronx, NY",
"price": "$30",
"title": "Acoustic guitar",
"url": "https://www.facebook.com/marketplace/item/1010244208239474/"
},
{
"image": "https://scontent-phl2-1.xx.fbcdn.net/v/t39.84726-6/906652215_2203085750241996_6899164560206705635_n.jpg?stp=c0.43.261.261a_dst-jpg_p261x260_tt6&_nc_cat=107&_...",
"location": "Brooklyn, NY",
"price": "$80",
"title": "Fender CC60S Black Acoustic Guitar w/case",
"url": "https://www.facebook.com/marketplace/item/975233571974782/"
}
]
}
One call
Send the page URL and the recipe name to the Scrape API. The recipe brings the extract rules and the settings that work on Facebook Marketplace (JavaScript rendering, a wait for the content and a mobile browser).
curl -G 'https://api.ujeebu.com/scrape' \
-H "ApiKey: $UJEEBU_API_KEY" \
--data-urlencode 'url=https://www.facebook.com/marketplace/nyc/search/?query=guitar' \
--data-urlencode 'recipe=facebook/listing'
import os, requests
r = requests.get(
"https://api.ujeebu.com/scrape",
params={"url": "https://www.facebook.com/marketplace/nyc/search/?query=guitar", "recipe": "facebook/listing"},
headers={"ApiKey": os.environ["UJEEBU_API_KEY"]},
timeout=120,
)
for item in r.json()["result"]["listings"][:3]:
print(item["title"], item["price"], item["location"])
# Example output:
# Acoustic guitar $30 Bronx, NY
# Fender CC60S Black Acoustic Guitar w/... $80 Brooklyn, NY
const params = new URLSearchParams({
url: "https://www.facebook.com/marketplace/nyc/search/?query=guitar",
recipe: "facebook/listing",
});
const res = await fetch(`https://api.ujeebu.com/scrape?${params}`, {
headers: { ApiKey: process.env.UJEEBU_API_KEY },
});
const { result } = await res.json();
for (const item of result.listings.slice(0, 3)) {
console.log(item.title, item.price, item.location);
}
// Example output:
// Acoustic guitar $30 Bronx, NY
// Fender CC60S Black Acoustic Guitar w/... $80 Brooklyn, NY
The answer is {"result": {...}} with the headers Ujb-Recipe and Ujb-Credits. Your own parameters always win over the recipe.
Search Facebook Marketplace with parameters
One call, no URL: send recipe=facebook/search with the parameters below. We build the Facebook Marketplace search URL and answer the listing JSON, at the same credits as the page call.
| Parameter | Type | Values |
|---|---|---|
city required | string | Marketplace city slug, as in facebook.com/marketplace/<city> (nyc, la, chicago, london). |
query required | string | Search words. |
min_price | int | 0 to 10000000 |
max_price | int | 0 to 10000000 |
One call (city=nyc, query=guitar)
curl -G 'https://api.ujeebu.com/scrape' \
-H 'ApiKey: YOUR_API_KEY' \
-d 'recipe=facebook/search' \
-d 'city=nyc' \
-d 'query=guitar'
import os, requests
r = requests.get(
"https://api.ujeebu.com/scrape",
params={"recipe": "facebook/search", "city": "nyc", "query": "guitar"},
headers={"ApiKey": os.environ["UJEEBU_API_KEY"]},
timeout=120,
)
for item in r.json()["result"]["listings"][:3]:
print(item["title"], item["price"], item["location"])
# Example output:
# Acoustic guitar $30 Bronx, NY
# Fender CC60S Black Acoustic Guitar w/... $80 Brooklyn, NY
const params = new URLSearchParams({
recipe: "facebook/search",
city: "nyc",
query: "guitar",
});
const res = await fetch(`https://api.ujeebu.com/scrape?${params}`, {
headers: { ApiKey: process.env.UJEEBU_API_KEY },
});
const { result } = await res.json();
for (const item of result.listings.slice(0, 3)) {
console.log(item.title, item.price, item.location);
}
// Example output:
// Acoustic guitar $30 Bronx, NY
// Fender CC60S Black Acoustic Guitar w/... $80 Brooklyn, NY
The answer carries the built URL in the Ujb-Url header; a missing or invalid parameter answers 400 naming it (free). Have the URL already? Send it with recipe=facebook/listing. Search with parameters in the docs
What people build with Facebook Marketplace data
Price research
See what similar items sell for, by condition and location.
Learn moreNew ads alerts
Catch new ads for the searches you care about shortly after they appear.
Price
Same price as the page call, no fee for the recipe. Only successful responses are billed; blocked, timed-out and failed requests are free.
| Page type | Credits a page | Per 1,000, Starter | Per 1,000, Pro |
|---|---|---|---|
| Search results | 5 | $0.82 | $0.50 |
FAQ
Is there a Facebook Marketplace API?
No. Meta's Graph API gives no access to Facebook Marketplace listings, and there is no public API for Marketplace data. Ujeebu's Facebook Marketplace recipe returns title, price, location and 2 more fields from any public Facebook Marketplace page as JSON: send the URL with recipe=facebook to the Scrape API, 5 credits a page, no Facebook Marketplace account or partner approval needed.
Does Facebook Marketplace have a public API?
No. Meta's Graph API gives no access to Facebook Marketplace listings, and there is no public API for Marketplace data. The public pages are the way in: Ujeebu's Facebook Marketplace recipe returns title, price, location and 2 more fields from any public Facebook Marketplace page as JSON: send the URL with recipe=facebook to the Scrape API, 5 credits a page, no Facebook Marketplace account or partner approval needed.
What does the Facebook Marketplace recipe return?
JSON with 5 fields from search results (recipe=facebook/listing), for example title, price, location, image, url. The answer is {"result": {...}} with the fields shown on this page.
How much does it cost to scrape Facebook Marketplace?
5 credits a page ($0.50 per 1,000 on Pro, $0.82 on Starter). Same price as the page call, no fee for the recipe. Only successful responses are billed; blocked, timed-out and failed requests are free.
Do I need proxies or a headless browser?
No. The recipe brings the settings that work on Facebook Marketplace: JavaScript rendering, a wait for the content and a mobile browser. Send only the URL and recipe=facebook/listing.
What happens when Facebook Marketplace changes its pages?
We check Facebook Marketplace every day and re-validate the recipe on real pages every week, then fix it when the site changes. Until a fix is live, the API answers 404 "the recipe has no working version" instead of empty data, and that call is free.
Can I search Facebook Marketplace with parameters?
Yes, in one call: send recipe=facebook/search with city, query, min_price, max_price and no URL. We build the Facebook Marketplace search URL (returned in the Ujb-Url header), apply recipe=facebook/listing and answer its JSON, at the same credits as the page call. A missing or invalid parameter answers 400 naming it, and that call is free.
Related recipes
VintedSearch results, Ad page · 5 credits
KleinanzeigenSearch results · 5 credits
LeboncoinSearch results · 25 credits
GumtreeSearch results, Ad page · 25 credits
OLXSearch results · 25 credits- AvitoSearch results · 5 credits
Logos and names belong to their owners. Ujeebu is not affiliated with Facebook Marketplace.
Get Facebook Marketplace data as JSON today.
5,000 free credits for 21 days. No card.