{"api":{"id":"api_9bc01bd2931c54cea386e360","slug":"stack-overflow-tag-stats","name":"Stack Overflow Tag Stats API","description":"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.","kind":"ready_made","visibility":"public","domain":"api.stackexchange.com","source_url":"https://api.stackexchange.com/docs/tags","category":"developer","record_type":"generic","active_version":"1.0","units_per_1k":500,"health":"unknown","auto_repair":false,"last_checked_at":null,"last_run_at":null,"fields_count":10,"created_at":"2026-12-06T03:33:09.254Z","updated_at":"2026-12-06T03:33:09.254Z","runnable":true,"egress":null,"repairs":[],"repairs_total":0,"how":"Runs on a reader we built and maintain by hand for this site.","fields":[{"name":"tag","type":"string","description":"Name of the tag, such as postgresql.","required":true,"coverage":1,"example":"postgresql"},{"name":"site","type":"string","description":"The Stack Exchange site the counts are from, such as stackoverflow.","required":true,"coverage":1,"example":"stackoverflow"},{"name":"url","type":"url","description":"The tag's page of questions on the site.","required":false,"coverage":1,"example":"https://stackoverflow.com/questions/tagged/postgresql"},{"name":"question_count","type":"integer","description":"Number of questions on the site that carry this tag.","required":false,"coverage":1,"example":178795},{"name":"has_synonyms","type":"boolean","description":"True when other tag names lead to this tag.","required":false,"coverage":1,"example":true},{"name":"synonyms","type":"array","description":"Other tag names that lead to this tag, such as postgres for postgresql.","required":false,"coverage":0.8,"example":["postgres","pgsql"]},{"name":"collectives","type":"array","description":"Names of the Stack Overflow Collectives (company or community spaces) the tag belongs to, such as AWS or Google Cloud.","required":false,"coverage":0.2,"example":["AWS"]},{"name":"related_tags","type":"array","description":"Up to 10 tags used most often together with this tag, the most frequent first (with include_related).","required":false,"coverage":1,"example":["sql","python"]},{"name":"last_activity_at","type":"datetime","description":"When a question with this tag last had activity (UTC).","required":false,"coverage":1,"example":"2026-12-02T09:16:21.000Z"},{"name":"captured_at","type":"datetime","description":"When this count was read (UTC); compare runs to see growth.","required":false,"coverage":1,"example":"2026-12-06T02:43:21.108Z"}],"inputs":[{"name":"tags","type":"array","description":"Tags to measure, as written on the site, such as [\"postgresql\", \"mongodb\"]. Leave empty for the site's tag list.","example":["postgresql","mongodb"]},{"name":"site","type":"string","description":"The Stack Exchange site: stackoverflow, serverfault, superuser, askubuntu, dba, unix and so on, or its address such as dba.stackexchange.com.","default":"stackoverflow","example":"stackoverflow"},{"name":"include_related","type":"boolean","description":"Add, for each of the first 30 tags, the tags most often used together with it.","default":false,"example":true},{"name":"sort","type":"string","description":"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":"popular","enum":["popular","activity","name"]},{"name":"name_contains","type":"string","description":"Only tags whose name contains these letters, such as aws, when no tags are given.","example":"aws"}],"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":true,"properties":{"captured_at":{"description":"When this count was read (UTC); compare runs to see growth.","format":"date-time","type":"string"},"collectives":{"description":"Names of the Stack Overflow Collectives (company or community spaces) the tag belongs to, such as AWS or Google Cloud.","type":"array"},"has_synonyms":{"description":"True when other tag names lead to this tag.","type":"boolean"},"last_activity_at":{"description":"When a question with this tag last had activity (UTC).","format":"date-time","type":"string"},"question_count":{"description":"Number of questions on the site that carry this tag.","type":"integer"},"related_tags":{"description":"Up to 10 tags used most often together with this tag, the most frequent first (with include_related).","type":"array"},"site":{"description":"The Stack Exchange site the counts are from, such as stackoverflow.","type":"string"},"synonyms":{"description":"Other tag names that lead to this tag, such as postgres for postgresql.","type":"array"},"tag":{"description":"Name of the tag, such as postgresql.","type":"string"},"url":{"description":"The tag's page of questions on the site.","format":"uri","type":"string"}},"required":["tag","site"],"title":"Stack Overflow Tag Stats API","type":"object"},"samples":[{"tag":"postgresql","site":"stackoverflow","url":"https://stackoverflow.com/questions/tagged/postgresql","question_count":178795,"has_synonyms":true,"synonyms":["postgres","pgsql","sql-postgres","azure-database-postgresql"],"collectives":[],"related_tags":["sql","python","database","ruby-on-rails"],"last_activity_at":"2026-12-02T09:16:21.000Z","captured_at":"2026-12-06T02:43:21.108Z"},{"tag":"mongodb","site":"stackoverflow","url":"https://stackoverflow.com/questions/tagged/mongodb","question_count":175154,"has_synonyms":true,"synonyms":["mongo","mongod"],"collectives":[],"related_tags":["node.js","mongoose","javascript","mongodb-query"],"last_activity_at":"2026-11-12T20:13:37.000Z","captured_at":"2026-12-06T02:43:21.708Z"},{"tag":"amazon-web-services","site":"stackoverflow","url":"https://stackoverflow.com/questions/tagged/amazon-web-services","question_count":158594,"has_synonyms":true,"synonyms":["aws"],"collectives":["AWS"],"related_tags":["amazon-s3","amazon-ec2","aws-lambda","python"],"last_activity_at":"2026-12-04T11:20:48.000Z","captured_at":"2026-12-06T02:43:22.156Z"}],"validation":{"checked_at":"2026-12-06T03:33:09.177Z","field_coverage":{"captured_at":1,"collectives":0.33,"has_synonyms":1,"last_activity_at":1,"question_count":1,"related_tags":1,"site":1,"synonyms":1,"tag":1,"url":1},"fresh_read":false,"identity_unique":true,"issues":["Imported from a hand-built source. Field names and types come from its published schema; no live read was made for this check."],"level":"preview","pages_checked":0,"passed":true,"records_checked":3},"links":{"run":"https://pullrow.dev/v1/apis/api_9bc01bd2931c54cea386e360/run","openapi":"https://pullrow.dev/v1/apis/api_9bc01bd2931c54cea386e360/openapi.json","contract":"https://pullrow.dev/v1/apis/api_9bc01bd2931c54cea386e360/contract.json","page":"https://pullrow.dev/catalog/stack-overflow-tag-stats"},"runs_30d":0,"success_rate_30d":null,"price_per_1k_usd":0.5,"featured":false,"reliability":{"window_days":30,"runs":0,"completed":0,"succeeded":0,"failed":0,"success_rate":null,"last_run_at":null},"demo":{"available":false,"max_records":0,"reason":"Every run of this API costs us money, so it has no free live demo. The sample records on its page show what it returns.","code":"demo_not_available"},"meta":{"limitations":["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."]},"plain":{"summary":null,"source":"rules","fields":[{"name":"tag","label":"Tag","description":"Name of the tag, such as postgresql.","group":"Basics","shown":true,"written":false},{"name":"site","label":"Site","description":"The Stack Exchange site the counts are from, such as stackoverflow.","group":"Basics","shown":true,"written":false},{"name":"url","label":"Link","description":"The tag's page of questions on the site.","group":"Links","shown":true,"written":false},{"name":"question_count","label":"Question count","description":"Number of questions on the site that carry this tag.","group":"Basics","shown":true,"written":false},{"name":"has_synonyms","label":"Has synonyms","description":"Yes when other tag names lead to this tag.","group":"Basics","shown":true,"written":false},{"name":"synonyms","label":"Synonyms","description":"Other tag names that lead to this tag, such as postgres for postgresql.","group":"Basics","shown":true,"written":false},{"name":"collectives","label":"Collectives","description":"Names of the Stack Overflow Collectives (company or community spaces) the tag belongs to, such as AWS or Google Cloud.","group":"Basics","shown":true,"written":false},{"name":"related_tags","label":"Related tags","description":"Up to 10 tags used most often together with this tag, the most frequent first (with include_related).","group":"Basics","shown":true,"written":false},{"name":"last_activity_at","label":"Last activity at","description":"When a question with this tag last had activity (UTC).","group":"Dates","shown":true,"written":false},{"name":"captured_at","label":"Captured","description":"When this count was read (UTC); compare runs to see growth.","group":"Dates","shown":true,"written":false}],"inputs":[{"name":"tags","label":"Tags","help":"Tags to measure, as written on the site, such as [\"postgresql\", \"mongodb\"]. Leave empty for the site's tag list.","example":"postgresql, mongodb","written":false},{"name":"site","label":"Site","help":"The Stack Exchange site: stackoverflow, serverfault, superuser, askubuntu, dba, unix and so on, or its address such as dba.stackexchange.com.","example":"stackoverflow","written":false},{"name":"include_related","label":"Include related","help":"Add, for each of the first 30 tags, the tags most often used together with it.","example":"true","written":false},{"name":"sort","label":"Sort","help":"Order of the tag list when no tags are given: popular (most questions first), activity (newest question activity first) or name (A to Z).","example":"","written":false},{"name":"name_contains","label":"Name contains","help":"Only tags whose name contains these letters, such as aws, when no tags are given.","example":"aws","written":false}]}},"incidents":[]}