Playground Sign in Start free
Recipe Developer and reference

Stack Overflow scraper API: search results as JSON

Send any Stack Overflow page URL with recipe=stackoverflow and get title, updated, score and 4 more fields as JSON. No selectors to write, no proxies to pick.

  • 1 page type
  • 7 fields
  • 5 credits a page · $0.50 per 1,000
  • Working · 85.2% in 7 days

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

recipe=stackoverflow
curl -G 'https://api.ujeebu.com/scrape' \
  -H "ApiKey: $UJEEBU_API_KEY" \
  --data-urlencode 'url=https://stackoverflow.com/questions/tagged/web-scraping' \
  --data-urlencode 'recipe=stackoverflow'
200 OK · JSON
{
    "result": {
        "results": [
            {
                "title": "Merge two Celery tasks",
                "updated": "2026-10-14 02:52:47Z",
                "score": "-5"
            }
        ]
    },
    "success": true
}

What you get from Stack Overflow

The fields of each page type and a real sample from our last validation, shortened.

Search and listing pages recipe=stackoverflow 5 credits a page

FieldTypeExample
resultslist of 3+ items
results[].urlURLhttps://stackoverflow.com/questions/80008831/merge-two-celery-tasks
results[].titletextMerge two Celery tasks
results[].imageimage URLhttps://i.sstatic.net/zlTU5.png?s=32
results[].scoretext-5
results[].commentsnumber (as text)6
results[].descriptiontextLet's say I have a web scraping pipeline. For some reason, I use Ce...
results[].updateddate2026-10-14 02:52:47Z

Sample answer, validated 2026-11-14

{
    "results": [
        {
            "url": "https://stackoverflow.com/questions/80008831/merge-two-celery-tasks",
            "title": "Merge two Celery tasks",
            "image": "https://i.sstatic.net/zlTU5.png?s=32",
            "score": "-5",
            "comments": "6",
            "description": "Let's say I have a web scraping pipeline. For some reason, I use Celery to write sanitized payloads to the database. Each payload is a list of rows. Due to t...",
            "updated": "2026-10-14 02:52:47Z"
        },
        {
            "url": "https://stackoverflow.com/questions/79995776/why-does-selenium-playwright-keep-getting-detected-by-cloudflare-even-with-steal",
            "title": "Why does Selenium/Playwright keep getting detected by Cloudflare even with stealth options? [duplicate]",
            "image": "https://www.gravatar.com/avatar/ac856fbd26442684a89f853d1a6c349f?s=32&d=identicon&r=PG",
            "score": "-8",
            "comments": "5",
            "description": "I'm working on a web scraping project where I need to extract data from several e-commerce sites. I started with Puppeteer, then tried Playwright with stealt...",
            "updated": "2026-08-17 09:32:27Z"
        }
    ]
}

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 Stack Overflow (JavaScript rendering).

curl -G 'https://api.ujeebu.com/scrape' \
  -H "ApiKey: $UJEEBU_API_KEY" \
  --data-urlencode 'url=https://stackoverflow.com/questions/tagged/web-scraping' \
  --data-urlencode 'recipe=stackoverflow'

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

What people build with Stack Overflow data

  • Research datasets

    Build datasets of public pages for analysis, search or LLM pipelines.

    Learn more
  • Trend tracking

    Follow what gets attention over time: scores, comments, stars.

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 Stack Overflow recipe return?

JSON with 7 fields from search results (recipe=stackoverflow), for example title, updated, score, description, url. The answer is {"result": {...}} with the fields shown on this page.

How much does it cost to scrape Stack Overflow?

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 Stack Overflow: JavaScript rendering. Send only the URL and recipe=stackoverflow.

What happens when Stack Overflow changes its pages?

We check Stack Overflow 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 change the fields?

Yes. Send your own extract_rules or any setting (js, proxy_type, wait_for) and it wins over the recipe. The developer guide shows the recipe rules to start from.

Get Stack Overflow data as JSON today.

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