Stack Overflow Questions API

Questions from Stack Overflow or another Stack Exchange site, found by search words and tags: title, tags, score, answers, views, accepted answer, dates and the link to the question.

$0.50 per 1,000 records

You pay only for the records you get. Zero records cost zero. 10,000 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.

Try it
Ready-made, maintained by usRecords, 12 fieldsv1.0

Data from api.stackexchange.com

Get this data

Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.

Try it

Searchoptional
Words to find in questions (title and body).
Example: connection pool
Tagsoptional
Tags the questions must all have, such as postgresql. One per line, or separated by commas.
Example: postgresql
Siteoptional
Stack Exchange site: stackoverflow (default), serverfault, superuser, dba and so on.
Example: stackoverflow
Sortoptional
Order of the results, highest first: activity (last activity), votes (score) or creation (date asked).
Answered onlyoptional
Only questions that have at least one answer.
Sinceoptional
Only questions asked on or after this day, as YYYY-MM-DD.
Example: 2026-11-01

Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 10,000 records of this API, no card. Create a free key

For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
Endpoint
POSThttps://pullrow.dev/v1/apis/stack-overflow-questions/run
  • Small runs answer in the same request; longer ones answer 202 with a run to poll.
  • fields returns only the fields you name. The examples send the ones picked on this page.
  • Idempotency-Key is optional. A retry with it is never charged twice.
  • You pay for records returned. Zero records cost zero.

Every run option, explained

Calling it needs a key
10,000 free records of this API to start. No card.
curl
curl -X POST "https://pullrow.dev/v1/apis/stack-overflow-questions/run" \
  -H "Authorization: Bearer $PULLROW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"search":"connection pool"},"max_items":50}'

Inputs

Send them as input in the request body. Leave one out to use its default.

searchtext
Words to find in questions (title and body).
example: connection pool
tagslist
Tags the questions must all have, such as postgresql.
example: postgresql
sitetext
Stack Exchange site: stackoverflow (default), serverfault, superuser, dba and so on.
default: stackoverflowexample: stackoverflow
sorttext
Order of the results, highest first: activity (last activity), votes (score) or creation (date asked).
default: activityexample: creationone of: activity, votes, creation
answered_onlyyes/no
Only questions that have at least one answer.
default: falseexample: false
sincetext
Only questions asked on or after this day, as YYYY-MM-DD.
example: 2026-11-01

What's in each record

12 fields: 10 here, 2 technical ones under Technical details.

Basics

  • Title

    Title of the question.

    Example Why is an UPDATE by primary key slow when the GIN-indexed array is unchanged?

  • Tags

    Tags on the question.

    Example postgresql, query-optimization

  • Score

    Votes up minus votes down.

    Example 4

  • Answer count

    Number of answers.

    Example 0

  • View count

    Number of views.

    Example 85

  • Answered

    Whether the question has an accepted or upvoted answer.

    Example No

  • Site

    The Stack Exchange site searched.

    Example stackoverflow

Dates

  • Created

    When the question was asked (UTC).

    Example Dec 2, 2026

  • Last activity at

    Last edit, answer or comment on it (UTC).

    Example Dec 2, 2026

Technical detailsField names and types for developers, and the 2 fields hidden above

Hidden by default

These 2 fields come with each record too. They are internal codes, notes about how the record was read or a copy of what was searched for, so the lists above leave them out.

  • Question ID question_idThe site's own id of the question.
  • Accepted answer ID accepted_answer_idId of the accepted answer, when the asker accepted one.

Field names and types

The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.

Field nameTypeShown on this page asFilled
question_idnumberQuestion ID (hidden)3 of 3
titletextTitle3 of 3
tagslistTags3 of 3
scorenumberScore3 of 3
answer_countnumberAnswer count3 of 3
view_countnumberView count3 of 3
is_answeredyes or noAnswered3 of 3
accepted_answer_idnumberAccepted answer ID (hidden)1 of 3
created_atdate and timeCreated3 of 3
last_activity_atdate and timeLast activity at3 of 3
linklinkLink3 of 3
sitetextSite3 of 3

How it reads the site

Runs on a reader we built and maintain by hand for this site.

Sample records

Sample records
RecordTitleTagsScoreAnswer countView countAnsweredSiteCreatedLast activity atLink
1Why is an UPDATE by primary key slow when the GIN-indexed array is unchanged?postgresql, query-optimization, polardb4085NostackoverflowDec 2, 2026Dec 2, 2026stackoverflow.com/questions/80019836/why-is-an-update-by-primary-key-slow-when-the-gin-indexed-array-is-unchanged
2Why does the ST_MakeLine() function produce an unexpected result when constructing sparse hexagonal grids?postgresql, postgis31123YesstackoverflowNov 29, 2026Nov 30, 2026stackoverflow.com/questions/80019327/why-does-the-st-makeline-function-produce-an-unexpected-result-when-constructi
3Postgres connection refused after moving config to docker-compose — works locallypostgresql, docker, docker-compose-3089NostackoverflowNov 27, 2026Nov 27, 2026stackoverflow.com/questions/80019033/postgres-connection-refused-after-moving-config-to-docker-compose-works-locall

Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.

Reliability

Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.

Incidents and repairs

How it is kept working What a repair can't do

A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.

  • You pay only for records returned. A run that returns none costs nothing.
Known limits
  • One run returns at most 1,000 questions, read 100 at a time.
  • The source allows 300 requests a day for each address without a key, shared by every run on our side, so heavy use can be refused until the next day; a run then ends early with the questions read so far.
  • Only question metadata is returned, not the question or answer text; open the link for the full thread.
  • Questions that were moved to another site can appear with their original title and link.
  • answered_only keeps questions with at least one answer; accepted_answer_id is filled only when the asker accepted one.
  • Scores, views and answer counts are as of the moment of the run.
  • Content on Stack Exchange sites is licensed CC BY-SA: credit Stack Overflow (or the site) and link back to the question.

Version history

A run uses the live version unless the request names another one with version.