Wikipedia

List Wikipedia category members

List a Wikipedia category's members with sort keys and timestamps, plus the category counts.

GET/v1/wikipedia/categories/{title}/members
1credit
x-api-keystringheader

API key (`sfk_...`)

Parameters
6
titlestringrequiredpath

Page title on the chosen edition, e.g. `Albert Einstein`, `C++` or `Talk:Barack Obama`. URL-encode it in the path.

langstringoptionalquery

Wikimedia edition code, e.g. `en`, `de`, `ja`, `simple` or `zh-min-nan`. Default: `en`.

typestringoptionalquery

Only members of this kind: `page`, `subcat` or `file`.

one of: page, subcat, file

sortstringoptionalquery

Sort by `sortkey` (default) or by the time the member joined.

one of: sortkey, timestamp

limitintegeroptionalquery

Rows per page, 1 to 500. Default: 50.

≥ 1 · ≤ 500

cursorstringoptionalquery

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

min 1 chars · max 2048 chars

Response fields
26

Endpoint-specific response payload.

datalookupStatus
string

Whether the entity, page or data set exists. A missing entity is `not_found`; an existing entity with no rows is `found` with `empty: true`.

one of: found, not_found

datalang
string

Edition code.

datatitle
string

Category title, with the `Category:` prefix.

Counts for the category; null when the counts are temporarily unavailable.

datacategorysize
integernullable

Rows in the category.

≥ 0

datacategorypages
integernullable

Pages in it.

≥ 0

datacategoryfiles
integernullable

Files in it.

≥ 0

datacategorysubcats
integernullable

Subcategories.

≥ 0

datacategoryhidden
booleannullable

Whether the category is hidden.

datacomplete
boolean

False when the category counts are temporarily unavailable; `members` is still the full page.

Members in this page of the walk.

datamembers[]pageId
integernullable

Page id.

datamembers[]ns
integernullable

Namespace id.

datamembers[]title
string

Title.

datamembers[]sortKeyPrefix
stringnullable

Human-readable sort key.

datamembers[]type
stringnullable

`page`, `subcat` or `file`.

datamembers[]timestamp
stringnullable

When it joined the category.

Pagination state. `nextCursor` is null on the last page.

datapagehasMore
boolean

Whether another page is available.

datapagenextCursor
stringnullable

Cursor to pass in the next request when more pages exist; null on the last page.

dataempty
boolean

Whether the answer is a valid empty result rather than missing.

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/wikipedia/categories/Category%3ALiving%20people/members" \
  -H "x-api-key: YOUR_API_KEY"

Responses

List Wikipedia category members