Playground Sign in Start free
Recipe Social and video

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.

recipe=facebook/listing
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'
200 OK · JSON
{
    "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

FieldTypeExample
listingslist of 3+ items
listings[].imageimage URLhttps://scontent-lga3-1.xx.fbcdn.net/v/t39.84726-6/886032808_109926...
listings[].locationtextNew York, NY
listings[].pricetext$45
listings[].titletextGuitar for sale
listings[].urlURLhttps://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'

The answer is {"result": {...}} with the headers Ujb-Recipe and Ujb-Credits. Your own parameters always win over the recipe.

What people build with Facebook data

  • Market research

    Follow public company pages and job postings to see who grows and hires.

    Learn more
  • Listings 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 typeCredits a pagePer 1,000, StarterPer 1,000, Pro
Search results5$0.82$0.50

See all plans

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.

Get Facebook data as JSON today.

5,000 free credits for 7 days. No card.