Facebook scraper API: search results as JSON
Send any Facebook 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 · 97% in 7 days
5,000 free credits for 7 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": {
"title": "Guitar for sale",
"price": "$45",
"location": "New York, NY"
},
"success": true
}
What you get from Facebook
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-04
{
"listings": [
{
"image": "https://scontent-lga3-1.xx.fbcdn.net/v/t39.84726-6/886032808_1099268449395023_3280270327758306116_n.jpg?stp=c0.43.261.261a_dst-jpg_p261x260_tt6&_nc_cat=110&c...",
"location": "New York, NY",
"price": "$45",
"title": "Guitar for sale",
"url": "https://www.facebook.com/marketplace/item/2115924992373323/"
},
{
"image": "https://scontent-lga3-3.xx.fbcdn.net/v/t39.84726-6/884675347_1069388389464133_8637123750684388800_n.jpg?stp=c0.43.261.261a_dst-jpg_p261x260_tt6&_nc_cat=102&c...",
"location": "West New York, NJ",
"price": "$25",
"title": "Acoustic guitar with gig bag",
"url": "https://www.facebook.com/marketplace/item/1818377599356689/"
}
]
}
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 (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,
)
print(r.json()["result"])
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 },
});
console.log((await res.json()).result);
The answer is {"result": {...}} with the headers Ujb-Recipe and Ujb-Credits. Your own parameters always win over the recipe.
Search Facebook with parameters
Fill in the parameters and we build the Facebook search URL. The Playground and the Request builder do it for you.
| 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 |
Works today: the built URL with recipe=facebook/listing (city=nyc, query=guitar)
GET https://api.ujeebu.com/scrape?url=https%3A%2F%2Fwww.facebook.com%2Fmarketplace%2Fnyc%2Fsearch%2F%3Fquery%3Dguitar&recipe=facebook%2Flisting
A single call with the parameters and no URL is coming to the API; it is not live yet. Search with parameters in the docs
What people build with Facebook data
Market research
Follow public company pages and job postings to see who grows and hires.
Learn moreListings research
Track public listings, prices and locations.
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
What does the Facebook 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?
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: JavaScript rendering, a wait for the content and a mobile browser. Send only the URL and recipe=facebook/listing.
What happens when Facebook changes its pages?
We check Facebook 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 with parameters?
Yes. Fill in city, query, min_price, max_price: we build the Facebook search URL, and the call is that URL with recipe=facebook/listing. A single call with the parameters and no URL is coming to the API; it is not live yet.
Related recipes
LinkedInSearch results, Detail page, Profile · 5 credits
X (Twitter)Profile · 5 credits
InstagramProfile · 5 credits
TikTokProfile · 5 credits
YouTubeSearch results, Detail page · 5 credits
BlueskyProfile · 5 credits
Logos and names belong to their owners. Ujeebu is not affiliated with Facebook.
Get Facebook data as JSON today.
5,000 free credits for 7 days. No card.