Skip to main content
POST
/
api
/
fandom
/
pages
/
content
/fandom/pages/content
curl --request POST \
  --url https://api.anysite.io/api/fandom/pages/content \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "wiki": "<string>",
  "page": "<string>",
  "timeout": 300,
  "lang": ""
}
'
[
  {
    "id": 123,
    "title": "<string>",
    "@type": "@fandom_page_content",
    "alias": "",
    "html": "<string>",
    "wikitext": "<string>",
    "sections": [],
    "links": [],
    "images": [],
    "categories": [],
    "web_url": ""
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
wiki
string
required

Wiki subdomain (e.g. harrypotter, minecraft) or a full wiki URL

Minimum string length: 1
Examples:

"harrypotter"

"minecraft"

"https://elderscrolls.fandom.com"

page
string
required

Page title, numeric page id, or a wiki page URL

Minimum string length: 1
Examples:

"Quidditch"

"13"

"https://harrypotter.fandom.com/wiki/Quidditch"

timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
lang
string
default:""

Language path segment for multilingual wikis (e.g. de, es, pl); empty for the default

Maximum string length: 8

Response

Successful Response

id
integer
required
title
string
required
@type
string
default:@fandom_page_content
alias
string
default:""
html
string | null
wikitext
string | null
sections
FandomSection · object[]
images
string[]
categories
string[]
web_url
string
default:""