Skip to main content
POST
/
api
/
fandom
/
pages
/fandom/pages
curl --request POST \
  --url https://api.anysite.io/api/fandom/pages \
  --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",
    "display_title": "<string>",
    "alias": "",
    "namespace": 123,
    "content_model": "<string>",
    "language": "<string>",
    "length": 123,
    "last_revision_id": 123,
    "touched_at": "<string>",
    "image": {
      "image": "<string>",
      "@type": "@fandom_page_image",
      "width": 123,
      "height": 123
    },
    "categories": [],
    "web_url": "",
    "edit_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:

"Harry Potter"

"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
display_title
string | null
alias
string
default:""
namespace
integer | null
content_model
string | null
language
string | null
length
integer | null
last_revision_id
integer | null
touched_at
string | null
image
FandomPageImage · object
categories
string[]
web_url
string
default:""
edit_url
string
default:""