{"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},"version":"1.0","contract_hash":"ac9a99581f643efb79db2017665108ef781a7382446958b8e12567388440ab02","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},"changelog":[{"version":"1.0","change_kind":"initial","note":"Imported from the ready-made source catalog.","created_at":"2026-12-06T03:33:09.254Z","activated_at":"2026-12-06T03:33:09.254Z","active":true,"contract_hash":"ac9a99581f643efb79db2017665108ef781a7382446958b8e12567388440ab02","fields_count":10}]}