Fandom+API.SH

Fandom API

Read any Fandom wiki as JSON: pages, infobox fields, categories, search results and recent edits.

The API.SH Fandom API returns public wiki data as JSON. Give a wiki name and get its facts and statistics, search its pages, read a page with its summary, infobox fields, sections, categories, images and links, list the members of a category, and follow recent edits and new pages.

  • 5 endpoints
  • from $1 / 1,000 calls
  • 1,000 free credits / month
  • failed calls free
Search a Fandom wiki
GET https://api.api.sh/fandom/v1/search
{ "success": true }
1 credit · $1 per 1,000 calls

What you can build with the Fandom API

Game and show data extraction

Read pages as infobox fields and section text to build character, item or episode datasets from a wiki.

Wiki search and lookup

Search a wiki by full text or title prefix, then open the matching page by title or page id.

Category crawling

List a category's pages, subcategories and files, sorted by name or edit time, and walk them page by page.

Change monitoring

Follow recent edits and new pages on a wiki to keep a copy, a bot or an alert feed current.

Wiki health and comparison

Compare wikis by articles, edits, images, registered and active users and admins.

Chatbots and RAG

Ground a bot or retrieval index in a fandom's wiki text with the page license and URL for attribution.

Fandom data you get

Field names from real responses. Numbers come parsed, URLs absolute, dates in ISO 8601.

Fandom API endpoints and prices

Every Fandom endpoint costs 1 credit per call: credits are $1 per 1,000 on a monthly plan, $2 pay-as-you-go. Pricing

Search and discovery1
Search a Fandom wiki
/fandom/v1/search
$1 · $2 PAYG
1 credit
Profiles and accounts2
Fandom category members
/fandom/v1/category
$1 · $2 PAYG
1 credit
Fandom wiki page
/fandom/v1/page
$1 · $2 PAYG
1 credit
More data2
Recently changed pages
/fandom/v1/recent
$1 · $2 PAYG
1 credit
Fandom wiki facts
/fandom/v1/wiki
$1 · $2 PAYG
1 credit

Call the Fandom API

Search a Fandom wiki: GET https://api.api.sh/fandom/v1/search

curl "https://api.api.sh/fandom/v1/search?wiki=harrypotter&q=hogwarts" \
  -H "x-api-key: $APISH_KEY"
  1. Create a free accountConfirm your email and get 1,000 free credits every month. No card needed.
  2. Create an API keyOne key works for all 483 platforms.
  3. Send the requestJSON back in one call. Add output=csv or output=ndjson for files.

Why API.SH for Fandom data

  • Public data only: no Fandom login, cookies or account needed
  • One key and one response shape for Fandom and 482 other platforms
  • Built and maintained by API.SH, not third-party publishers
  • Pay per call; errors on our side cost nothing
  • Live status for every endpoint

API.SH vs the official Fandom API

Every Fandom wiki exposes the standard MediaWiki Action API at /api.php, which is free to read and documented by MediaWiki and the Fandom Developers Wiki, but each wiki is queried separately and the raw output needs parsing. API.SH returns infobox fields, sections and counts in one consistent JSON shape.

Instead of writing MediaWiki queries per wiki, using the fandom-py library or running your own crawler, you call one endpoint with a wiki name and get clean JSON at a fixed price per call.

Fandom API questions

What Fandom data can I get?+

Wiki facts and statistics (/fandom/v1/wiki), search (/fandom/v1/search), a page with infobox, sections, categories, images and links (/fandom/v1/page), category members (/fandom/v1/category) and recent changes (/fandom/v1/recent).

How much does the Fandom API cost?+

Every Fandom endpoint costs 1 credit per call. On a monthly plan 1,000 credits cost $1 (Starter is $50/month for 50,000 credits). Pay-as-you-go is $2 per 1,000 credits, with top-ups from $15 that never expire.

Is there a free trial?+

Yes. Every account gets 1,000 free credits every month. That is 1,000 calls to /fandom/v1/category at 1 credit each.

Is there an official Fandom API?+

Yes, in a sense. Every Fandom wiki runs MediaWiki and offers its Action API at /api.php on the wiki's own domain, which is free to read without a key. API.SH is an unofficial layer on top of public pages that adds a simpler, consistent JSON shape.

Do I need a Fandom account or login?+

No. API.SH reads public Fandom wiki pages only. No endpoint uses a login, cookies or anyone's account, and nothing can edit a wiki.

How do I get started?+

1. Sign up at api.sh. 2. Copy your API key. 3. Call /fandom/v1/page with the wiki and the title of a page. Request examples and every parameter are in the docs at https://api.sh/docs. You can also use the JS or Python SDK, Google Sheets, Zapier, Make, n8n or the MCP server at https://api.sh/mcp.

Can I use the Fandom API from Python?+

Yes. API.SH is a plain HTTPS API that returns JSON, so any HTTP client works, such as requests in Python or fetch in JavaScript. There are also JS and Python SDKs, and the same key works in Google Sheets, Zapier, Make and n8n.

Can I use it for wikis in other languages?+

Yes. The wiki, page, search, category and recent endpoints take a lang parameter for wikis that are not in English.

More reference APIs all developer & reference APIs →

Start with 1,000 free credits
Every month, on every account. One key works for all 483 platforms.
Get a free API key