Skip to main content
POST
/
api
/
fandom
/
pages
/
list
/fandom/pages/list
curl --request POST \
  --url https://api.anysite.io/api/fandom/pages/list \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "wiki": "<string>",
  "count": 2,
  "timeout": 300,
  "lang": "",
  "prefix": "",
  "namespace": "article",
  "filter_redirects": "all"
}
'
[
  {
    "id": 123,
    "title": "<string>",
    "@type": "@fandom_page_ref",
    "alias": "",
    "namespace": 123,
    "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"

count
integer
required

Number of pages to return

Required range: x >= 1
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
prefix
string
default:""

Return only pages whose title starts with this prefix

Maximum string length: 255
namespace
enum<string>
default:article

Which namespace to list (article namespace by default)

Available options:
article,
talk,
user,
project,
file,
template,
help,
category,
forum,
user_blog,
blog
filter_redirects
enum<string>
default:all

Whether to include redirect pages

Available options:
all,
redirects,
nonredirects

Response

Successful Response

id
integer
required
title
string
required
@type
string
default:@fandom_page_ref
alias
string
default:""
namespace
integer | null
web_url
string
default:""