Fandom

List Fandom wiki pages

List every page on a Fandom wiki in title order.

GET/v1/fandom/wikis/{wiki}/pages
1credit
x-api-keystringheader

API key (`sfk_...`)

Parameters
7
wikistringrequiredpath

Fandom wiki subdomain, e.g. `fortnite` for fortnite.fandom.com or `blox-fruits` for blox-fruits.fandom.com. A full wiki host or URL is also accepted.

min 1 chars · max 63 chars · pattern: ^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$

langstringoptionalquery

Language edition of the wiki, e.g. `de` for fortnite.fandom.com/de. Omit for the main (usually English) edition.

pattern: ^[a-z]{2,3}(?:-[a-z]{2,4})?$

namespaceintegeroptionalquery

MediaWiki namespace number. 0 = articles (default), 14 = categories, 6 = files, 2 = user pages.

≥ 0 · ≤ 100000

prefixstringoptionalquery

Only titles starting with this text.

min 1 chars · max 255 chars

includeRedirectsbooleanoptionalquery

Include redirect pages. Default: false. Fandom drops redirects after counting `limit`, so a page can hold fewer items while `hasMore` is still true.

limitintegeroptionalquery

Items per page, 1–500. Default: 100.

≥ 1 · ≤ 500

cursorstringoptionalquery

Pass `page.nextCursor` from the previous response to get the next page.

min 1 chars · max 512 chars

Response fields
20

Endpoint-specific response payload.

datalookupStatus
string

`not_found` when the wiki does not exist; the list is then empty.

one of: found, not_found

The wiki this response came from.

datawikiid
string

Wiki subdomain, e.g. `fortnite`.

datawikilang
stringnullable

Language edition path, or null for the main edition.

datawikiurl
string

Base URL of the wiki.

Pages in title order.

datapages[]pageId
integer

MediaWiki page id.

datapages[]title
string

Page title.

datapages[]namespace
integer

Namespace number.

datapages[]url
string

Page URL.

Pagination state for the current 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.

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

metastale
booleanoptional

Present, and `true`, only when the source couldn't be reached and this is the last good answer for the same request instead, up to 24 hours old. Absent on every live answer.

one of: true

metafetchedAt
stringoptional

When a stale answer (`stale: true`) was originally fetched (ISO 8601, UTC). Absent on every live answer.

Code example

curl "https://api.socialfetch.dev/v1/fandom/wikis/fortnite/pages" \
  -H "x-api-key: YOUR_API_KEY"

Responses

Every page on the wiki, in title order.