Fandom

Get a Fandom wiki page

Get a Fandom wiki article's text, wikitext, infoboxes and metadata.

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

API key (`sfk_...`)

Parameters
5
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])?$

titlestringrequiredquery

Page title as it appears in the wiki URL, e.g. `Peely` or `Chapter_7:_Season_4`. Spaces and underscores are equivalent. A full page URL is also accepted, and a `#section` is ignored.

min 1 chars · max 255 chars

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})?$

includeHtmlbooleanoptionalquery

Also return the rendered article HTML. Default: false.

includeWikitextbooleanoptionalquery

Return the page's wikitext source. Default: true.

Response fields
64

Endpoint-specific response payload.

datalookupStatus
string

`not_found` when the wiki or item does not exist.

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.

The page when lookupStatus is `found`; otherwise null.

datapagepageId
integer

MediaWiki page id.

datapagetitle
string

Canonical page title.

datapagedisplayTitle
stringnullable

Title as displayed, as plain text.

datapagenamespace
integer

MediaWiki namespace number: 0 = articles, 2 = user pages, 6 = files, 10 = templates, 14 = categories.

datapageurl
string

Page URL.

For `File:` pages (namespace 6), the file itself; null for other pages.

datapagefileurl
string

Direct URL of the file.

datapagefilemime
stringnullable

MIME type, e.g. `image/png`.

datapagefilesize
integernullable

File size in bytes.

datapagefilewidth
integernullable

Width in pixels.

datapagefileheight
integernullable

Height in pixels.

datapagefileuploadedAt
stringnullable

When the current version was uploaded (ISO-8601).

datapagefileuploader
stringnullable

Username that uploaded the current version.

datapageredirectedFrom
stringnullable

The requested title when it was a redirect to this page.

datapagerevisionId
integernullable

Current revision id.

datapagelastEditedAt
stringnullable

When the current revision was saved (ISO-8601).

datapagelastEditor
stringnullable

Username that saved the current revision.

datapagelastEditComment
stringnullable

Edit summary of the current revision.

datapagelength
integernullable

Size of the wikitext in bytes.

datapageplainText
string

Readable article text without navigation, infoboxes or edit links.

datapagewikitext
stringnullable

Wikitext source, or null when `includeWikitext=false`.

datapagehtml
stringnullable

Rendered article HTML, or null unless `includeHtml=true`.

Structured infoboxes on the page.

datapageinfoboxes[]title
stringnullable

Infobox heading, usually the item name.

Images shown in the infobox.

datapageinfoboxes[]images[]url
string

Image URL.

datapageinfoboxes[]images[]caption
stringnullable

Image caption.

Label/value rows in display order.

datapageinfoboxes[]fields[]group
stringnullable

Section heading inside the infobox, when grouped.

datapageinfoboxes[]fields[]key
stringnullable

Template parameter name behind the field, e.g. `rarity`.

datapageinfoboxes[]fields[]label
stringnullable

Displayed label, e.g. `Rarity`.

datapageinfoboxes[]fields[]value
string

Displayed value as plain text.

Table of contents.

datapagesections[]index
integer

Section index.

datapagesections[]level
integer

Heading level (2 = `==`).

datapagesections[]title
string

Heading text.

datapagesections[]anchor
string

URL fragment for the heading.

Visible categories, without the `Category:` prefix.

datapagecategories[]
stringoptional

Maintenance categories hidden from readers.

datapagehiddenCategories[]
stringoptional

Titles of wiki pages this page links to.

datapagelinks[]
stringoptional

Templates used on the page.

datapagetemplates[]
stringoptional

File names used on the page.

datapageimages[]
stringoptional

Links to other websites.

datapageexternalLinks[]
stringoptional

The same page in other language editions.

datapagelanguageLinks[]lang
string

Language code.

datapagelanguageLinks[]title
string

Title in that language edition.

datapagelanguageLinks[]url
stringnullable

URL in that language edition.

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/fandom/wikis/fortnite/page?title=Peely" \
  -H "x-api-key: YOUR_API_KEY"

Responses

Article content, infoboxes and metadata.