Fandom+API.SH

Fandom API

Read any Fandom wiki as JSON: pages, infobox fields, categories, search, edit history, rankings and discussions.

The API.SH Fandom API returns public wiki data as JSON. Give a wiki name and get its facts and statistics, search its pages by full text or title prefix, and read a page with its summary, infobox fields, text by section, categories, images, links, gallery captions, data tables as rows, references, license and URL, or one section, an older revision or the page source as HTML or wikitext. List the members of a category, a page's links and backlinks, its edit history and contributors, a wiki's most linked, most edited, longest and most wanted pages, and its Discussions threads with polls and votes. Follow recent edits and new pages, and look up a contributor's edit count, groups and recent edits. The lang parameter covers wikis in other languages.

  • 11 endpoints
  • from $1 / 1,000 calls
  • 1,000 free credits / month
  • failed calls free
Fandom wiki page
GET https://api.api.sh/fandom/v1/page
{"wiki": "harrypotter","lang": null,"title": "Harry Potter","display_title": "Harry Potter","page_id": 13,"revision_id": 2034252,"redirected_from": null,"summary": "\"You are protected, in short, by your ability to love! The only protection that can possibly work against the lure of power like Voldemort's…","infoboxes": [{"title": "Harry James Potter","image": "https://static.wikia.nocookie.net/harrypotter/images/c/ce/Harry_Potter_DHF1.jpg/revision/latest?cb=20140603201724","fields": {"Born": "31 July 1980\nGodric's Hollow, West Country, England, Great Britain","Blood status": "Half-blood","Marital status": "Married","Nationality": "English","Also known as": "• The Boy Who Lived\n• Gregory Goyle (under disguise of Polyjuice Potion)\n• Neville Longbottom (the name he told Stanley Shunpike in his thir…","Title(s)": "• Seeker\n• Triwizard Champion\n• Captain\n• Master of Death","Species": "Human","Gender": "Male","Height": "Under 5'9\"","Hair colour": "Jet-black","Eye colour": "Bright green","Skin colour": "Light","Family members": "• James Potter (I) (father) †\n• Lily Potter (I) (née Evans) (mother) †\n• Ginevra Potter (née Weasley) (wife)\n• James Potter (II) (son)\n• Alb…","Romances": "• Cho Chang (ex-girlfriend)\n• Ginevra Weasley (wife)","Boggart": "Dementor","Wand": "• 11\", Holly, phoenix feather\n• 10¾\", Vine, dragon heartstring (temporarily)\n• 10\", Blackthorn, unknown core (temporarily)\n• 10\", Hawthorn, …","Patronus": "Stag","Occupation": "• Head of the British Auror Office (formerly)\n• Guest lecturer on Defence Against the Dark Arts\n• Head of the Department of Magical Law Enfo…","House": "Gryffindor","Loyalty": "• Potter family\n• Evans family\n• Hogwarts School of Witchcraft and Wizardry• Gryffindor• Gryffindor Quidditch team\n\n• Trio\n• Dumbledore's Ar…"},"headers": ["Biographical information","Physical information","… 3 more"],"type": "mom","image_caption": null}],"sections": [{"title": null,"level": 1,"text": "\"You are protected, in short, by your ability to love! The only protection that can possibly work against the lure of power like Voldemort's…"},{"title": "Biography","level": 2,"text": ""},"… 44 more"],"categories": ["1980 births","1994 Quidditch World Cup attendees","… 70 more"],"links": ["1980","31 July","… 498 more"],"external_links": ["http://www.x.com/BloomsburyBooks/","http://instagram.com/p/CuDbnpnvmLf/","… 57 more"],"images": ["https://static.wikia.nocookie.net/harrypotter/images/0/0c/Hand_pointing_right_transparent.png/revision/latest?cb=20181112005815","https://static.wikia.nocookie.net/harrypotter/images/c/c1/Padlock.png/revision/latest?cb=20061203163418","… 286 more"],"language_links": [{"lang": "ar","title": "هاري بوتر","url": "https://harrypotter.fandom.com/ar/wiki/%D9%87%D8%A7%D8%B1%D9%8A_%D8%A8%D9%88%D8%AA%D8%B1"},{"lang": "ca","title": "Harry Potter","url": "https://harrypotter.fandom.com/ca/wiki/Harry_Potter"},"… 29 more"],"description": null,"url": "https://harrypotter.fandom.com/wiki/Harry_Potter","license": {"name": "CC-BY-SA","url": "https://www.fandom.com/licensing"},"last_revision": {"revision_id": 2034252,"timestamp": "2026-10-21T10:24:11Z","user": "MrSiriusBlack","size_bytes": 498976},"length_bytes": 498976,"touched": "2026-10-30T12:05:57Z","gallery": [],"tables": [{"caption": null,"header": ["Translations of Harry James Potter"],"rows": [["Arabic","هاري ― بوتر"],["Armenian","Հարրի ― Փոթերը"],"… 16 more"]},{"caption": null,"header": ["Declension of James"],"rows": [["strong-declension noun"],["nominative","James"],"… 3 more"]},"… 6 more"],"references": ["Explore the Story: \"Harry Potter\" on Pottermore (Archived)","Harry Potter and the Chamber of Secrets, Chapter 17 (The Heir of Slytherin) - Tom Riddle states that there \"are strange likenesses between u…","… 221 more"],"cached": false,"credits_used": 1}
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, data tables 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 and link graphs

List a category's pages, subcategories and files, sorted by name or edit time, and map which pages link to each other.

Change monitoring and edit history

Follow recent edits and new pages on a wiki, and read a page's revisions with edit summaries and size changes to keep a copy, a bot or an alert feed current.

Wiki health and community research

Compare wikis by articles, edits, images, active users and admins, see their most edited and most wanted pages, and read trending Discussions threads.

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 category members/fandom/v1/category
wikistarwarscategoryJedi Masterspages5subcategories4files0count9
items[]title · page_id · type · namespace · added · url
Fandom wiki discussions/fandom/v1/discussions
wikistarwarssortnewestpage0total_threads107216total_posts1021873count20next_page1next_pivot4400000000003988353
threads[]id · title · forum · forum_id · type · author · author_id · created · replies · upvotes · trending_score · locked
Fandom wiki page/fandom/v1/page
wikiharrypottertitleHarry Potterdisplay_titleHarry Potterpage_id13revision_id2034252summary"You are protected, in short, by…urlhttps://harrypotter.fandom.com/w…length_bytes498976touched2026-10-30T12:05:57Z
infoboxes[]title · image · fields · headers · type · image_caption
sections[]title · level · text
language_links[]lang · title · url
license[]name · url

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 discovery2
Fandom most popular pages
/fandom/v1/popular
params wiki +4 optionaldocstry
$1 · $2 PAYG
1 credit
Search a Fandom wiki
/fandom/v1/search
params wiki, q +5 optionaldocstry
$1 · $2 PAYG
1 credit
Profiles and accounts6
Fandom category members
/fandom/v1/category
params wiki, category +6 optionaldocstry
$1 · $2 PAYG
1 credit
Fandom wiki page
/fandom/v1/page
params wiki +6 optionaldocstry
$1 · $2 PAYG
1 credit
Fandom page contributors
/fandom/v1/page/contributors
params wiki +7 optionaldocstry
$1 · $2 PAYG
1 credit
Fandom page links and backlinks
/fandom/v1/page/links
params wiki +8 optionaldocstry
$1 · $2 PAYG
1 credit
Fandom page edit history
/fandom/v1/page/revisions
params wiki +6 optionaldocstry
$1 · $2 PAYG
1 credit
Fandom contributor profile
/fandom/v1/user
params wiki, name +3 optionaldocstry
$1 · $2 PAYG
1 credit
More data3
Fandom wiki discussions
/fandom/v1/discussions
params wiki +6 optionaldocstry
$1 · $2 PAYG
1 credit
Recently changed pages
/fandom/v1/recent
params wiki +6 optionaldocstry
$1 · $2 PAYG
1 credit
Fandom wiki facts
/fandom/v1/wiki
params wiki +1 optionaldocstry
$1 · $2 PAYG
1 credit

Call the Fandom API

Fandom wiki page: GET https://api.api.sh/fandom/v1/page

curl "https://api.api.sh/fandom/v1/page?wiki=harrypotter" \
  -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 921 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 920 other platforms
  • Built and maintained by API.SH, not third-party publishers
  • Pay per call; errors on our side cost nothing
  • No rate limits: run as many calls in parallel as you need
  • 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; Fandom's own newer endpoints are not publicly documented. API.SH returns infobox fields, sections, tables and counts in one consistent JSON shape.

Instead of writing MediaWiki queries per wiki, using fandom-py or mwclient, or running your own crawler or an Apify actor, you call one endpoint with a wiki name and get clean JSON at a fixed price per call, next to Wikipedia under the same key.

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, tables, categories, images and links (/fandom/v1/page), category members (/fandom/v1/category), links and backlinks (/fandom/v1/page/links), edit history (/fandom/v1/page/revisions), page contributors (/fandom/v1/page/contributors), page rankings (/fandom/v1/popular), Discussions threads (/fandom/v1/discussions), recent changes (/fandom/v1/recent) and contributor profiles (/fandom/v1/user).

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 Fandom API key?+

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. Your API.SH key is the only credential you send.

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. Every endpoint takes a lang parameter for wikis that are not in English.

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, for example wiki=harrypotter and title=Hedwig. 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.

Does the Fandom API have a rate limit?+

No. API.SH puts no rate limit on your key: send as many Fandom calls in parallel as you need and pay only for the calls that run. If Fandom itself slows down, the call returns 503 with a retry-after header and is not charged.

More reference APIs all developer & reference APIs →

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