Skip to main content
POST
/
api
/
fandom
/
categories
/
members
/fandom/categories/members
curl --request POST \
  --url https://api.anysite.io/api/fandom/categories/members \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "wiki": "<string>",
  "category": "<string>",
  "count": 2,
  "timeout": 300,
  "lang": "",
  "sort": "sortkey"
}
'
[
  {
    "id": 123,
    "title": "<string>",
    "@type": "@fandom_category_member",
    "alias": "",
    "namespace": 123,
    "type": "<string>",
    "added_at": "<string>",
    "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"

category
string
required

Category name (with or without the 'Category:' prefix)

Minimum string length: 1
Examples:

"Spells"

"Category:Mobs"

count
integer
required

Number of category members 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
type
enum<string> | null

Filter members by kind (pages, subcategories or files); all kinds by default

Available options:
page,
subcat,
file
namespace
enum<string> | null

Filter members to a single page kind / namespace; all namespaces by default

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

Order members alphabetically by sort key or by the time they were added

Available options:
sortkey,
timestamp

Response

Successful Response

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