Introducing the Instagram APIRead more →

Fandom Wiki Search API. Wiki pages matching your search.

Search one wiki's pages by keyword. We handle the proxies, blocks and platform changes.

In your agent: Fandom MCP server →

Fandom Wiki Search API at a glance

Returns the pages of a public Fandom wiki that match your words, best match first, from the wiki's name or link, on any language edition. Each page has its id, title, link, type, namespace, size, word count and when it was last edited. Pages follow each other without the rows skipped and repeated by Fandom's own page offsets.

GET /v1/fandom/search_wiki_pages

Read the API reference
  • 1 credit per page, $0.75–$1.97 per 1,000 pages
  • 17 typed fields null when unknown
  • 99 wiki pages per page, the wiki's own search ranking, best match first
  • query is all it needs, e.g. peely

Send one request. Get up to 99 wiki pages back.

Copy the request in your language, or hand it to your agent. Sign up for an API key and your first 100 credits are free.

$ npm install socialtap
query = peely
GET /v1/fandom/search_wiki_pagesTry in
// Node 18+: save this as app.mjs (an ES module) and run: node app.mjs
const params = new URLSearchParams({
  query: "peely",
  wiki: "fortnite",
});
const res = await fetch(`https://socialtap.dev/v1/fandom/search_wiki_pages?${params}`, {
  headers: { "x-api-key": process.env.SOCIALTAP_API_KEY ?? "" },
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.error.code}: ${body.error.message}`);
const { data, page, meta } = body;
console.log(data, meta.credits_charged);
200 OK · GET https://socialtap.dev/v1/fandom/search_wiki_pagesLong arrays and strings are shortened here. Real responses are complete.Docs

What you send and what comes back.

The response reference lists every field, its type and when it is null. See the full schema.

  • Null means unknown

    A field Fandom doesn't show is null, never zero or an empty string, so a real zero always means zero.

  • What it accepts

    Words to find in the wiki's page titles and text, or the wiki's own search link (fortnite.fandom.com/wiki/Special:Search?query=peely), which names the wiki too.

  • What comes back

    Wiki pages (Fandom articles, categories, files) with their readable text, source markup, sections, infoboxes and last edit.

platformstring
Platform that hosts the wiki.
In the example "fandom"
idstring
Platform-native page ID (string), unique on the platform: the wiki's link key (wiki.name) and the page's number on that wiki, joined by a colon (fortnite:11594; fortnite/de:2536 on the German edition). Stays the same when the page is renamed, where the platform keeps its number; an endpoint that reads a page takes it back as its input.
In the example "fortnite:11594"
titlestring
The page's title as its wiki names it, with spaces (not the underscores of its link) and its namespace prefix (Category:Outfits).
In the example "Peely"
urlstring
Canonical page URL.
In the example "https://fortnite.fandom.com/wiki/Peely"
typestring
page: an article or any other page; category: a category's page, which lists its members; file: an uploaded file's page (an image, a video). New values may be added; treat unknown values as page.
In the example "page"
wikiobject
The wiki the page belongs to: its link key and link, and its ID and title when the answer carries them.
In the example id: "440321", name: "fortnite", title: "Fortnite Wiki", …
textstring
The page's readable text as plain text: its body as rendered (templates expanded, tables kept), without navigation, infoboxes or edit links. Not the source (that is markup; a readme's text is its source). Null when the page renders no text, and on lists that don't carry it.
In the example null
markupstring
The page's source as its editors wrote it, in its markup (MediaWiki wikitext, Markdown), not rendered: what a readme's text is to a README, with markup_format as its format. Null when the page is empty, on lists, and when the request leaves it out.
In the example null

What teams build with the Fandom Wiki Search API.

  • Find the right page before reading it

    Search the wiki for what a user asks about, then send the best result's url to the Fandom Wiki Page API for its text and infoboxes.

  • Map a topic across a wiki

    Walk every page of a search such as a character's name and keep each id, title and edited_at, to see which pages cover it and how fresh they are.

  • Search a wiki's categories or files

    Set namespace to 14 for categories or 6 for files, and use type and url to sort what comes back.

Good to know before you build.

  • text, markup, editor and the page's lists are empty or null: the Fandom Wiki Page API returns them for each url.
  • Fandom's search stops after the first few thousand results of a search: there the walk ends with platform_limit.
  • A wiki Fandom does not serve, or a language edition the wiki lacks, returns not_found.
  • Fandom's ranking can move a result by a place between pages: one already served is not repeated, and one can, rarely, be passed over.
  • Fandom's firewall refuses a query of script or SQL syntax (<script>, UNION SELECT): it returns invalid_input.

1 credit per page. Failed requests are free.

Buy credits once and spend them on any endpoint, on any platform.

SourcePrice per successful pagePer 1,000 pages
Platform API api1 credit$0.75–$1.97
  • Cache hits are free.
  • Credits from packs and top-ups never expire.
  • A monthly plan's credits are spent first, and what is left of them ends at each renewal.
  • Prices exclude tax: sales tax is added at checkout where it applies.
  • Outside the US, plans and packs are sold to businesses: checkout asks for your VAT, GST or other business tax ID.

Questions about the Fandom Wiki Search API.

More in the API reference.

Can I search a Fandom wiki without a login?
Yes. It reads the wiki's own public search, as a visitor who is not signed in sees it, on any language edition.
Can I sort Fandom search results by date?
No. Fandom's search ranks by best match only. Each page has edited_at, so you can sort a page of results yourself.
How much does the Fandom Wiki Search API cost?
A page of up to 99 wiki pages costs 1 credit. Every successful page is charged, empty pages included. SocialTap credits cost $0.75–$1.97 per 1,000, depending on the plan or pack.
How do I get the next page?
Repeat the same request with cursor set to page.next_cursor from the previous response, keeping the other parameters. When page.has_more is false there are no more pages. Cursors expire after 24 hours.

Try it with your own search.

Type it in the playground, or copy the request into your code.

100free credits
  • No credit card
  • Failed requests are free
  • Works on all 310 endpoints
Start for free Read the docs