Stack Overflow hub

Stack Overflow Tags API

Every tag with its question count, synonyms and last activity, most used or alphabetical.

GET /v1/stack-overflow/tags

1 credit Failed requests are free

About this endpoint

GET /v1/stack-overflow/tags returns a page of tags. Each tag has name, questionCount, hasSynonyms, isModeratorOnly, isRequired, lastActivityAt and up to 200 synonyms.

Sort by popular (the default, most questions first), activity or name. query matches part of a tag name. name is exact; popular and activity are approximate, because the site picks each page from a ranking that lags the counts it shows. A tag can then be missing from a page and a page can repeat the previous page's last tag, which we drop. approximate is true for those two sorts, and the rows keep Stack Exchange's ranking. order=asc is refused with popular; use name or activity for an ascending list.

Stack Overflow Tags API FAQ

Why is approximate true?

For sort=popular and sort=activity the site's page ranking is not up to date with the counts it shows. A tag whose count belongs on the page can be missing, and pages can repeat a boundary tag, which we remove. sort=name is exact.

How many credits does a tags page cost?

Pricing is documented on the operation in the API registry (shown on this page). Confirm on every response with meta.creditsCharged: that field is the billing source of truth. Each paginated page is a separate billed request.

How do I list every tag alphabetically?

Set sort=name. Add order=asc for A to Z. order=asc is not available with the popular sort because its pages are not stable.

Why did the list stop?

The tag list stops at 25 pages (2,500 rows), whatever the sort. limitReached is true when the ceiling was hit. Use sort=name for an exact alphabetical order, or sort=activity to order by the latest activity.