Stack Overflow API

Stack Overflow Scraper API for Questions, Answers, Comments, and Search

Scrappa's Stack Overflow API returns public Stack Overflow data as structured JSON. Search questions by text and tags, read a question with its HTML and plain-text body, and page through its answers and comments with scores, owners and licenses. No account or key is needed.

500 free credits
No card needed
From $0.20 / 1k
Pay as you go
Structured JSON
Ready for apps
API key access
Test in minutes
4
Endpoints
100
Questions per page
$0.20
Per 1k requests

Try it now

Make one request. Inspect structured JSON.

Use the first endpoint in this API family with a Scrappa API key. Every account includes 500 free monthly credits, so you can validate the response shape before buying credits.

Request preview
Request
curl -X GET "https://scrappa.co/api/stackoverflow/search?q=laravel+queue&tagged=php&sort=votes" \
  -H "Accept: application/json" \
  -H "X-API-KEY: YOUR_API_KEY"
JSON response
{
  "success": true,
  "data": {
    "questions": [
      {
        "question_id": 25877752,
        "title": "Laravel queue process timeout error",
        "link": "https://stackoverflow.com/questions/25877752/laravel-queue-process-timeout-error",
        "tags": [
          "php"
        ],
        "score": 82,
        "view_count": 112267,
        "answer_count": 4,
        "comment_count": 5,
        "is_answered": true,
        "accepted_answer_id": 26238686,
        "created_at": "2014-09-16T20:21:27Z",
        "last_activity_at": "2022-12-24T01:39:22Z"
      }
    ],
    "page": 1,
    "pagesize": 2,
    "has_more": true
  }
}

What you can build

Structured data for real applications. Here are some ideas.

Developer Support Research

Search questions by tag and read the accepted answer to find proven fixes for the errors your users hit.

AI Training and Retrieval Data

Collect questions with answers, scores and licenses as clean text for retrieval and evaluation sets.

Technology Trend Tracking

Watch view counts, scores and new questions per tag to see which tools developers struggle with.

Community Analysis

Read comments and owner reputation to find experts and recurring problems in a topic.

Available endpoints

Everything you need in one API.

Scrappa vs Stack Exchange API (direct)

See how Scrappa compares to Stack Exchange API (direct).

Question, answer and comment bodies with plain-text variants
Scrappa
Stack Exchange API (direct)
HTML only
Per-IP daily request quota managed for you
Scrappa
Stack Exchange API (direct)
300 requests per IP per day without a key
Stable field names with ISO 8601 dates
Scrappa
Stack Exchange API (direct)
Raw epoch seconds
Price per 1k requests
Scrappa
From $0.20
Stack Exchange API (direct)
Free, but you manage quota and retries

Key features

Question search by text and tags with sort, order and exact paging
Question, answer and comment bodies as HTML and plain text
Scores, owners with reputation, accepted answer flag and content license
ISO 8601 dates on every item
Unknown question ids answer 404; failures are never charged
No Stack Overflow account or API key required

Frequently asked questions

No. Every endpoint reads public data and needs no login or key of your own.

Pages are 1-based. Page N returns page N, and has_more tells you whether another page exists.

Each successful request uses one Scrappa credit. Failed requests are never charged and the API never answers with HTTP 429. An upstream outage returns a retryable 503.

No. Scrappa is an independent service and is not affiliated with or endorsed by Stack Overflow. It returns public Stack Overflow data as JSON.

Start using the Stack Overflow API

Sign up and get 500 free credits. No credit card required.