Wikidata API

How to connect Wikidata to ChatGPT

Add the Firecrawl plugin to ChatGPT once and it can call the Wikidata API and every other provider in Firecrawl Alexandria, with no Wikidata integration code.

Open Markdown

To connect Wikidata to ChatGPT, add the Firecrawl plugin to ChatGPT, sign in on a Firecrawl team with Alexandria enabled, and ask for Wikidata data in plain language. The connection works in ChatGPT and Codex, and you set it up once.

ChatGPT uses Wikidata as an MCP tool through Firecrawl's hosted MCP server, so you don't install or host a separate MCP server for Wikidata.

ChatGPT is OpenAI's AI assistant. Plugins add tools from other services, and the Firecrawl plugin adds web search, scraping and every data provider in Firecrawl Alexandria.

How do I connect Wikidata to ChatGPT?

  1. Install the Firecrawl plugin

    Open the Firecrawl listing in ChatGPT's plugin directory and select Install plugin. You can also open Plugins in ChatGPT or Codex and search for Firecrawl.

    The Firecrawl plugin page in ChatGPT with the Install plugin button
  2. Connect your Firecrawl account

    ChatGPT opens Firecrawl in your browser. Sign in, choose a team with Alexandria enabled, and approve access. No account yet? You can create one for free in the same flow.

    Firecrawl's consent screen asking to connect chatgpt.com to Firecrawl
  3. Attach Firecrawl to a chat

    Start a new chat so it loads the plugin, open the + menu and choose Firecrawl. You can also ask ChatGPT to use Firecrawl by name.

    ChatGPT's + menu with the Firecrawl plugin listed
  4. Ask ChatGPT for the data

    Ask in plain language and mention Wikidata or Firecrawl Alexandria. ChatGPT finds the Wikidata capability that fits and runs it. For example:

    Use Firecrawl to run Wikidata's Entity summary capability. Inspect the Alexandria inputs, ask for any missing required details, and return a small sample with sources.

What can ChatGPT do with Wikidata?

Wikidata, the free CC0 knowledge graph behind Wikipedia: entity search, full-text search, entity detail (labels, sitelinks, official websites, external identifiers), typed statements, presence summaries with page views, lookup by external identifier (IMDb, VIAF, ISNI, ORCID, ...), and SPARQL through the anonymous MediaWiki/Wikibase Action API and the Wikidata Query Service.

ChatGPT can run any of Wikidata's 7 capabilities through Alexandria. Each call is billed in Firecrawl credits on your Firecrawl team.

  • Entity summary: Lightweight presence summary for up to 50 Wikidata items or properties in one Action API `query` call (`prop=pageprops|entityterms|pageviews|info`): label, description and aliases (English), statement, external-identifier and sitelink counts, the page image file name, last revision and per-day page views on wikidata.org for the last N days. Ids that do not exist are listed in `missing_ids`; when none of the ids exists the call is `not_found`. Costs 5 Firecrawl credits per call.
  • Find by external id: Find the Wikidata item(s) carrying an external identifier: an IMDb id, VIAF cluster id, ISNI, ORCID, GND, Library of Congress id, GeoNames id, LEI, OpenCorporates id, Crunchbase organization, X/Instagram/GitHub username, LinkedIn company id or any other external-id property. Exact match through CirrusSearch `haswbstatement:`, then labels and descriptions of the matches and the property label through `wbgetentities`. Costs 5 Firecrawl credits per call.
  • Fulltext search: Full-text CirrusSearch over Wikidata items (main namespace) through the Action API `query&list=search`: matches labels, aliases and descriptions in every language and supports Wikidata search keywords such as `haswbstatement:P31=Q4830453` (instance of business), `inlabel:`, `incaption:`. Returns the total hit count, one page of hits (id, page id, plain-text title and description snippets) and `next_offset`. Costs 5 Firecrawl credits per call.
  • Get claims: Statements of one Wikidata entity through the Action API `wbgetclaims`, fully typed: for one property or for every property. Each statement carries its GUID, rank, main value (entity id, string, URL, external id, time, quantity, monolingual text or coordinate, with `somevalue`/`novalue` kept as such), qualifiers in Wikidata order and references, with the labels of every referenced property and item resolved in one map. Costs 5 Firecrawl credits per call.
  • Get entity: One Wikidata entity (item or property) through the Action API `wbgetentities`, shaped for entity-presence checks: labels, descriptions and aliases in the requested languages, sitelinks for the requested wikis (with the English Wikipedia URL surfaced), every `official website` (P856) by rank, `instance of` (P31) ids, all external identifiers (statements whose property datatype is `external-id`, with the property label resolved in one batched `wbgetentities` call per 50 properties), statement/identifier/sitelink counts and the list of property ids present so `get_claims` can fetch any statement group in full. Lookup by id, or by a Wikipedia article (`site` + `title`). Costs 5 Firecrawl credits per call.
  • Search entities: Search Wikidata items or properties by label and alias prefix through the Action API `wbsearchentities` (the typeahead the site itself uses). Returns one page of up to 50 matches with id, label, description, aliases, the matched term, concept URI and page URL, plus `next_offset` for the following page. Language is the term language searched and the display language; Wikidata falls back to other languages (`match.language` says which term matched). Costs 5 Firecrawl credits per call.
  • Sparql: Run a read-only SPARQL query against the Wikidata Query Service (`query.wikidata.org/sparql`, JSON results). Returns the projected variable names and the rows as `variable -> {type, value, datatype, language}` (unbound variables are absent from a row). WDQS enforces a 60 s query time limit; a timed-out or malformed query is reported as such. Costs 5 Firecrawl credits per call.

What should I ask ChatGPT?

Name Wikidata or Firecrawl Alexandria in the prompt so ChatGPT reaches for it. Each example opens in ChatGPT with the prompt filled in.

Troubleshooting

Why doesn't ChatGPT use Wikidata?

Start a new chat after installing so ChatGPT loads the plugin, then attach Firecrawl from the + menu and name Wikidata or Firecrawl Alexandria in the prompt.

How do I switch the Firecrawl team ChatGPT uses?

Open the Firecrawl plugin page in ChatGPT, uninstall it from the menu next to Settings, then install it again and choose the other team on Firecrawl's consent screen.

Why does ChatGPT say Wikidata isn't available?

Alexandria needs a Firecrawl team with Alexandria enabled. Reinstall the plugin and pick that team when you approve access.

Use Wikidata in other AI apps

The same Firecrawl account reaches Wikidata from other AI apps. Pick one for its setup steps:

Other data providers you can connect to ChatGPT

Frequently Asked Questions

What is Firecrawl?

Firecrawl is the web data API to search, scrape and interact with the web at scale. It turns websites into clean, LLM-ready data for AI agents and apps. The Firecrawl plugin brings those tools into ChatGPT, along with every data provider in Firecrawl Alexandria.

What is Firecrawl Alexandria?

Firecrawl Alexandria is Firecrawl's library of 550+ data providers for AI agents, Wikidata among them. Each provider returns structured data through documented capabilities. ChatGPT finds the capability that fits your question and calls it through the Firecrawl plugin, so you don't write any integration code. Alexandria needs a Firecrawl account signed in on a team with Alexandria enabled, or an API key from such a team; keyless connections don't include it.

Is there a Wikidata MCP server for ChatGPT?

ChatGPT reaches Wikidata through Firecrawl's hosted MCP server, which serves Wikidata and every other Alexandria provider as tools. Add the Firecrawl plugin once and you don't install or host a separate MCP server for Wikidata.

What does connecting Wikidata to ChatGPT unlock?

ChatGPT can run all 7 of Wikidata's capabilities, including Entity summary, Find by external id and Fulltext search, from any chat, with structured results it can sort, compare and summarize. In the same conversation, ChatGPT can combine Wikidata with Firecrawl's web search and scraping and the other providers in Firecrawl Alexandria.

Do I need my own Wikidata account or API key to use it in ChatGPT?

No. ChatGPT calls Wikidata through Firecrawl Alexandria and each call is billed in Firecrawl credits, so you don't need a separate Wikidata account or API key.

How much does it cost to use Wikidata in ChatGPT?

Each Wikidata call costs 5 Firecrawl credits. The capability list on this page shows each price and its unit. The credits come from the Firecrawl team you connect to ChatGPT, and finding the right capability is free.

Can ChatGPT use other providers besides Wikidata?

Yes. The same Firecrawl plugin reaches every provider in Firecrawl Alexandria, along with Firecrawl's web search and scraping, so you connect once.

Can I use Wikidata in other AI apps?

Yes. Connect Firecrawl to Claude, Cursor, Grok Bot, Muse signed in on a Firecrawl team with Alexandria enabled, or use the Firecrawl MCP server, CLI or API with an API key from that team, and the same Wikidata capabilities are available there. Keyless connections don't include Alexandria.

//
Get started
//
Ready to build?
Start getting web context for free and scale seamlessly as your project expands. No credit card needed.
Are you an AI agent? See setup options