Stack Overflow

List Stack Overflow tags

List Stack Overflow tags by popularity, activity or name, with question counts.

GET/v1/stack-overflow/tags
1credit
x-api-keystringheader

API key (`sfk_...`)

Parameters
6
sitestringquery

Stack Exchange site, by its API name (`askubuntu`, `serverfault`, `math`, `ru.stackoverflow`). Default: `stackoverflow`. The sites endpoint lists them all.

querystringquery

Part of the tag name to look for.

min 1 chars · max 35 chars

sortstringquery

Order: `popular` (default; most questions first), `activity` or `name`.

one of: popular, activity, name

orderstringquery

Direction of the sort: `desc` (default) or `asc`.

one of: desc, asc

limitintegerquery

Up to this many rows per page, 1 to 100. Default: 30. A page can hold fewer than `limit` rows where rows share a creation second or a block of 100 rows ends. Follow `page.nextCursor` until `hasMore` is false.

≥ 1 · ≤ 100

cursorstringquery

Cursor from `page.nextCursor` of the previous response. It only works with the same filters.

min 1 chars · max 1024 chars

Response fields
20

Endpoint-specific response payload.

datasite
string

The Stack Exchange site the tags belong to.

The tags on this page.

datatags[]name
string

Tag name.

datatags[]questionCount
integernullable

Questions with the tag.

datatags[]hasSynonyms
booleannullable

Whether other names point at this tag.

datatags[]isModeratorOnly
booleannullable

Whether only moderators can apply it.

datatags[]isRequired
booleannullable

Whether a question needs at least one tag of this kind.

datatags[]lastActivityAt
stringnullable

Last question activity under the tag, ISO 8601 UTC; null when the list does not carry it.

Other names that point at this tag; empty when none or when the list does not carry them.

datatags[]synonyms[]
stringoptional

Pagination state for the current page.

datapagehasMore
boolean

Whether another page is available.

datapagenextCursor
stringnullable

Cursor for the next page; null on the last page.

datalimitReached
boolean

True when the list stopped at the site's 25-page ceiling (2,500 rows, or 625 when the page carries text), or when a user's answer or comment list is too large for page-offset paging and has served its first 100 rows (25 when it carries text). Sort by `creation` to page deeper. False for every list that ends because it ran out.

dataapproximate
boolean

True for `sort=popular` and `sort=activity`. Stack Exchange picks the rows of each page from a ranking that is not up to date with the counts it shows, so a tag whose count belongs on this page can be missing, and a page can start with the last tag of the one before (we remove those repeats). The rows returned are exactly what Stack Exchange returned. `sort=name` is exact.

Metadata describing the request and billing outcome.

metarequestId
string

Unique request identifier for tracing this API call.

min 1 chars

metacreditsCharged
integer

Credits charged for this request.

≥ 0

metaversion
string

Public API version that served the response.

one of: v1

Code example

curl "https://api.socialfetch.dev/v1/stack-overflow/tags?sort=name" \
  -H "x-api-key: YOUR_API_KEY"

Responses

Tag listing.