Documentation menu
Getting Started
Wikimedia Enterprise provides a suite of APIs for high-volume, read-only access to Wikipedia and other supported Wikimedia projects, developed and maintained by the Wikimedia Foundation. This is the main documentation hub for the Wikimedia Enterprise APIs. Use the sidebar menu to navigate through the API guides, or consult our API reference documentation for exhaustive details per endpoint.
This page takes you from a new account to your first responses in about ten minutes: create an account, copy an access token, then make three calls. The calls use curl in a terminal; to start without one, use a coding agent.
Create a free account
Sign up for a free account (no credit card required) and verify your email. A free account includes up to 50,000 On-demand API requests, 30 snapshot downloads, and 1,500 snapshot chunk downloads a month.
If you're a Wikimedia community member, see the Access section on Meta-Wiki for other ways to use the APIs.
Get an access token
Every API request must carry an access token in the Authorization header. Log in to your dashboard and click Copy access token. Then paste it into this command in a terminal:
export ACCESS_TOKEN="paste-your-access-token-here"$env:ACCESS_TOKEN="paste-your-access-token-here"The token lasts 24 hours. Your dashboard shows when it expires. The calls below read your token from the terminal until you close it. In a new terminal, you need to re-enter the command above before making new calls.
For code that runs longer than 24 hours, it's best practice to build logic that automatically logs in and refreshes its own tokens, as shown in the Authentication guide.
Treat your access token like a password. It is valid for 24 hours, even if you log out of your dashboard before it expires. Clipboard managers and other apps on your computer can read what you copy, and your terminal saves the command in its history. Never store your access token in a file, a code repository, or a chat with an AI tool.
Make your first calls
Run these in the same terminal. API responses will be in JSON format on one line; the examples here are formatted for easier reading.
Look up a project
To get data for a specific Wikimedia project, you first need to know its project identifier, such as enwiki for English Wikipedia. Project Info returns metadata about one project. Projects Available lists all available projects.
curl -s -H "Authorization: Bearer $ACCESS_TOKEN" \ https://api.enterprise.wikimedia.com/v2/projects/enwikicurl.exe -s -H "Authorization: Bearer $env:ACCESS_TOKEN" ` https://api.enterprise.wikimedia.com/v2/projects/enwiki{ "name": "Wikipedia", "identifier": "enwiki", "url": "https://en.wikipedia.org", "code": "wiki", "in_language": { "identifier": "en" }}Get one article
The On-demand API returns the current version of an article by name. In this example, the filters value filters the response down to only English Wikipedia. The fields parameter truncates the response to only four fields. Leave fields out to get the whole article. This call and the next use macOS and Linux syntax; on Windows, run them in WSL or Git Bash.
curl -s -X POST \ -H "Authorization: Bearer $ACCESS_TOKEN" \ -H "Content-Type: application/json" \ https://api.enterprise.wikimedia.com/v2/articles/NASA \ -d '{ "filters": [{"field": "is_part_of.identifier", "value": "enwiki"}], "fields": ["name", "url", "date_modified", "abstract"] }'[ { "name": "NASA", "url": "https://en.wikipedia.org/wiki/NASA", "date_modified": "2026-10-20T23:23:43Z", "abstract": "The National Aeronautics and Space Administration is an independent agency of the U.S. federal government..." }]Check a snapshot before downloading it
The Snapshot API delivers a whole project as one compressed NDJSON file. Snapshot Info reports a snapshot's size, article count, and chunks without downloading it. The snapshot identifier is the project identifier plus a namespace: simplewiki_namespace_0 is the articles in Simple English Wikipedia.
curl -s -H "Authorization: Bearer $ACCESS_TOKEN" \ https://api.enterprise.wikimedia.com/v2/snapshots/simplewiki_namespace_0{ "identifier": "simplewiki_namespace_0", "date_modified": "2026-10-27T03:48:55.750384432Z", "size": { "value": 2652.857, "unit_text": "MB" }, "chunks": [ "simplewiki_namespace_0_chunk_0", "simplewiki_namespace_0_chunk_1" ], "record_count": 290094}The response above is trimmed. To download a sample, request one chunk with Chunk Download; the full file is at Snapshot Download. On a free account, each chunk counts toward your 1,500 chunk downloads a month and each full snapshot toward your 30 snapshot downloads. Some projects, such as English Wikipedia, are larger than a terabyte.
The article payload is the same in the On-demand response, every line of a snapshot file, and the Realtime API, so one parser handles all three.
Troubleshooting
401 - Unauthorizedon an API call: theAuthorizationheader is missing, misspelled, or carries an expired token. Tokens last 24 hours; copy a new one from your dashboard. A new terminal window does not haveACCESS_TOKENset, so run the token command again there.429 - Too Many Requests: you went over your monthly allowance or the request rate (10 requests per second on a free account). Your dashboard shows your usage.
Status Codes lists every response code.
Developer tools
With a coding agent
Copy this prompt into Claude Code, Cursor, Codex, or another coding agent, and replace the text in brackets with what you want to do. The prompt points the agent at the markdown versions of these docs, the OpenAPI definition, and the docs MCP server. The prompt also tells the agent never to ask for your password or tokens in the chat and never to write them to a file.
I have a Wikimedia Enterprise account and want to use the Wikimedia Enterprise APIs.
Read https://enterprise.wikimedia.com/llms.txt and https://enterprise.wikimedia.com/docs/index.md first. Check every request and response shape against https://enterprise.wikimedia.com/docs/api/wme-api.yaml. If you can add MCP servers, add https://enterprise.wikimedia.com/mcp (Streamable HTTP, no auth) for searching the docs.
Never ask for my username, password or tokens in this chat, and never write them to a file. Any code that needs to log in asks me for them when it runs and keeps tokens in memory only.
What I want to do: [describe it here. If you're not sure yet, ask the agent to make one On-demand API call for a single article.]The Wikimedia Enterprise agent skill gives a coding agent this context before it starts: which API fits the task, how authentication and identifiers work, and where in these docs to find limits and response shapes. It works in any agent that reads SKILL.md, including Claude Code, Codex, Cursor and Gemini CLI:
npx skills add wikimedia-enterprise/agent-skillsAI Agents and MCP covers the agent skill, the Claude Code plugin, the markdown versions and the docs MCP server in full.
Software development kits (SDKs)
We have built software development kits (SDKs) in Go and Python to help you get started:
Postman
The Wikimedia Enterprise Postman collection has a ready-made request for every endpoint. It logs in and refreshes your access token for you, with your credentials kept in Postman Vault. Fork it from the public workspace, or import the collection file from GitHub; the repository's README has the setup steps.
Which API should I use?
- Bulk data for a whole project: the Snapshot API downloads every article in a project as one compressed NDJSON file.
- The current live version of specific articles: the On-demand API returns the most recent version of individual articles by name.
- Updates as they happen: the Realtime API streams every change (firehose) or delivers hourly batch files. Paid plans only.
- Parsed, machine-readable JSON instead of raw HTML/wikitext: the Beta Structured Contents endpoints provide pre-parsed JSON output for On-demand and Snapshot payloads.
Whichever API you pick, every payload includes Credibility Signals for judging content trust; the tuning guide shows how to use them. To weigh quota, format, and freshness trade-offs, see Choose the right API for the job in Best Practices.
Next steps
- Work through the guides for the APIs that fit your use case: Metadata, Snapshot, On-demand, and Realtime.
- Fields, Filters, and Limit shows how to request exactly the data you need.
- Identifiers is the reference page for what each endpoint's
{identifier}expects, since the format differs per resource. - Data Primer explains how data from Wikimedia projects is created and maintained.
- The Best Practices page collects the key takeaways per API.
- The API reference documents every endpoint and response field, and you can download the OpenAPI definition for any API tooling, or start from the Postman collection.
If you have questions, look through the FAQs or use your account dashboard to contact support or provide feedback. Uptime history and current status are at status.enterprise.wikimedia.com. For daily snapshots, the Realtime firehose, or additional egress, contact us.