Fandom

Search a Fandom wiki

Search the pages of a Fandom wiki by keyword.

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

API key (`sfk_...`)

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

querystringrequiredquery

Search text.

min 1 chars · max 300 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})?$

namespaceintegeroptionalquery

MediaWiki namespace number. 0 = articles (default), 14 = categories, 6 = files, 2 = user pages.

≥ 0 · ≤ 100000

limitintegeroptionalquery

Results per page, 1–100. Default: 25.

≥ 1 · ≤ 100

pageintegeroptionalquery

Page number (1-based). Default: 1.

≥ 1 · ≤ 500

Response fields
23

Endpoint-specific response payload.

datalookupStatus
string

`not_found` when the wiki does not exist; the list is then empty.

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.

dataquery
string

The search text.

Matching pages, best first.

dataresults[]pageId
integer

MediaWiki page id.

dataresults[]title
string

Page title.

dataresults[]namespace
integer

Namespace number.

dataresults[]url
string

Page URL.

dataresults[]size
integernullable

Wikitext size in bytes.

dataresults[]wordCount
integernullable

Word count.

dataresults[]lastEditedAt
stringnullable

When the page was last edited (ISO-8601).

Pagination state for the current page.

datapagepage
integer

Current page number (1-based).

≥ 0

datapagehasMore
boolean

Whether another page is available.

datapagenextPage
integernullable

Next page number when more pages exist; null on the last page.

≥ 0

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/search?query=Peely" \
  -H "x-api-key: YOUR_API_KEY"

Responses

Matching pages, best first.