Stack Overflow Tag Stats API

Question counts for Stack Overflow tags, or tags on any other Stack Exchange site: the most popular tags or the ones you name, each with its tag page, synonyms, Collective, last activity and optionally the tags asked about most often alongside it.

$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, 10 fieldsv1.0

Data from api.stackexchange.com/docs/tags

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

Tagsoptional
Tags to measure, as written on the site, such as ["postgresql", "mongodb"]. Leave empty for the site's tag list. One per line, or separated by commas.
Example: postgresql, mongodb
Siteoptional
The Stack Exchange site: stackoverflow, serverfault, superuser, askubuntu, dba, unix and so on, or its address such as dba.stackexchange.com.
Example: stackoverflow
Include relatedoptional
Add, for each of the first 30 tags, the tags most often used together with it.
Sortoptional
Order of the tag list when no tags are given: popular (most questions first), activity (newest question activity first) or name (A to Z).
Name containsoptional
Only tags whose name contains these letters, such as aws, when no tags are given.
Example: aws

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-tag-stats/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-tag-stats/run" \
  -H "Authorization: Bearer $PULLROW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"tags":["postgresql","mongodb"]},"max_items":50}'

Inputs

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

tagslist
Tags to measure, as written on the site, such as ["postgresql", "mongodb"]. Leave empty for the site's tag list.
example: postgresql, mongodb
sitetext
The Stack Exchange site: stackoverflow, serverfault, superuser, askubuntu, dba, unix and so on, or its address such as dba.stackexchange.com.
default: stackoverflowexample: stackoverflow
include_relatedyes/no
Add, for each of the first 30 tags, the tags most often used together with it.
default: falseexample: true
sorttext
Order of the tag list when no tags are given: popular (most questions first), activity (newest question activity first) or name (A to Z).
default: popularone of: popular, activity, name
name_containstext
Only tags whose name contains these letters, such as aws, when no tags are given.
example: aws

What's in each record

10 fields.

Basics

  • Tag

    Name of the tag, such as postgresql.

    Example postgresql

  • Site

    The Stack Exchange site the counts are from, such as stackoverflow.

    Example stackoverflow

  • Question count

    Number of questions on the site that carry this tag.

    Example 178,795

  • Has synonyms

    Yes when other tag names lead to this tag.

    Example Yes

  • Synonyms

    Other tag names that lead to this tag, such as postgres for postgresql.

    Example postgres, pgsql

  • Collectives

    Names of the Stack Overflow Collectives (company or community spaces) the tag belongs to, such as AWS or Google Cloud.

    Example AWS

  • Related tags

    Up to 10 tags used most often together with this tag, the most frequent first (with include_related).

    Example sql, python

Dates

  • Last activity at

    When a question with this tag last had activity (UTC).

    Example Dec 2, 2026

  • Captured

    When this count was read (UTC); compare runs to see growth.

    Example Dec 6, 2026

Technical detailsField names and types for developers

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
tagtextTag3 of 3
sitetextSite3 of 3
urllinkLink3 of 3
question_countnumberQuestion count3 of 3
has_synonymsyes or noHas synonyms3 of 3
synonymslistSynonyms3 of 3
collectiveslistCollectives1 of 3
related_tagslistRelated tags3 of 3
last_activity_atdate and timeLast activity at3 of 3
captured_atdate and timeCaptured3 of 3

How it reads the site

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

Sample records

Sample records
RecordTagSiteQuestion countHas synonymsSynonymsCollectivesRelated tagsLast activity atCapturedLink
1postgresqlstackoverflow178,795Yespostgres, pgsql, sql-postgres, azure-database-postgresql—sql, python, database, ruby-on-railsDec 2, 2026Dec 6, 2026stackoverflow.com/questions/tagged/postgresql
2mongodbstackoverflow175,154Yesmongo, mongod—node.js, mongoose, javascript, mongodb-queryNov 12, 2026Dec 6, 2026stackoverflow.com/questions/tagged/mongodb
3amazon-web-servicesstackoverflow158,594YesawsAWSamazon-s3, amazon-ec2, aws-lambda, pythonDec 4, 2026Dec 6, 2026stackoverflow.com/questions/tagged/amazon-web-services

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
  • Stack Exchange allows about 300 requests a day per connection without a key, shared with every other Stack Exchange data request from it. One request reads up to 100 tags; related_tags costs one more request per tag.
  • related_tags is filled for the first 30 tags of a run only, and only when include_related is on. It holds up to 10 tags, the ones most often used together with this tag first.
  • Without tags, a run reads the site's tag list in the order chosen in sort, up to 2,500 tags (25 pages of 100).
  • A synonym you ask for, such as golang, returns its main tag (go). Tags that do not exist on the site are left out.
  • question_count is the all-time total of questions carrying the tag, as the Stack Exchange API reports it, not the questions asked in a period. Run it on a schedule and compare captured_at to see growth.
  • Tag data is published by Stack Exchange under CC BY-SA 4.0: credit Stack Overflow (or the site used) when you publish it.

Version history

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