Wikimedia Enterprise/Documentation

Welcome to the Wikimedia Enterprise APIs! Wikimedia Enterprise provides a suite of APIs designed for high-volume access to information from Wikipedia and other Wikimedia projects.

Here are some ways you can integrate with Wikimedia projects using Wikimedia Enterprise APIs.

Getting started with Wikimedia data?

 * Download Wikipedia articles in bulk using the exports API. Exports are updated daily across all supported projects.

Want to update your systems in real time? There two ways to do that:

 * Hook into the Firehose streams to automatically receive updates as they happen.
 * Use the hourly diffs API to get changes made within the last 24 hours.

Want to look up a single Wikipedia article?

 * Query the pull API to receive the latest version of an article.

Getting Started
Once you’ve received your Wikimedia Enterprise credentials, it’s time to make your first call. Start by running this curl command in your terminal to fetch the list of supported projects.

You should receive a list of all supported Wikimedia projects, including the project language and the size of the download. If not, check your credentials, and try again.

Next, download a project export. Run this curl command to download Afrikaans Wikipedia to your machine.

Open the downloaded file to see newline-delimited JSON with a line representing each article in the project. To learn about the data provided for each article, visit the data dictionary.

Now use the diffs endpoint to see what changed in Afrikaans Wikipedia today. Change the date to today’s date, and run this command to download a smaller file containing the pages that have changed in the last past day.

There you have it! You’re ready to download Wikimedia content and stay up to date with the latest changes. Try this workflow with another project, and explore the API reference to discover more APIs.

Authentication
Wikimedia Enterprise APIs require basic authentication passed via the Authorization header.

Your Wikimedia Enterprise credentials carry many privileges related to your account, so be careful to keep them secure. Do not share your credentials in publicly accessible areas.

All API requests must be made over HTTPS. Calls made over plain HTTP will be redirected to HTTPS. Calls without authentication in the header will fail.

Endpoints
API URL
 * https://api.enterprise.wikimedia.com

Projects covered in Wikimedia Enterprise
Below are all the projects that we have in our tools. Use this as a reference for what is included in this project and the  property