Search
/api/stackoverflow/search
Search questions by text and tags with sort and paging
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.
Try it now
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.
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"
{
"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
}
}
Structured data for real applications. Here are some ideas.
Search questions by tag and read the accepted answer to find proven fixes for the errors your users hit.
Collect questions with answers, scores and licenses as clean text for retrieval and evaluation sets.
Watch view counts, scores and new questions per tag to see which tools developers struggle with.
Read comments and owner reputation to find experts and recurring problems in a topic.
Everything you need in one API.
/api/stackoverflow/search
Search questions by text and tags with sort and paging
/api/stackoverflow/question
One question with body, tags, score and owner
/api/stackoverflow/answers
Answers to a question with bodies, scores and accepted flag
/api/stackoverflow/comments
Comments on a question with scores and authors
See how Scrappa compares to Stack Exchange API (direct).
| Feature | Scrappa | Stack Exchange API (direct) |
|---|---|---|
| Question, answer and comment bodies with plain-text variants | HTML only | |
| Per-IP daily request quota managed for you | 300 requests per IP per day without a key | |
| Stable field names with ISO 8601 dates | Raw epoch seconds | |
| Price per 1k requests | From $0.20 | Free, but you manage quota and retries |
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.