<!-- Please don't mark for translation yet -->
{{Wikimedia APIs}}
Wikipedia and other [[meta:Wikimedia projects|Wikimedia projects]] are free, collaborative repositories of knowledge, written and maintained by volunteers around the world. '''Wikimedia APIs''' give you open access to use this free knowledge in your projects and apps.

{{Clickable button 2
|1=Try the API sandbox
|class=mw-ui-progressive
|url=https://en.wikipedia.org/wiki/Special:RestSandbox
}}

== Documentation ==

{{ContentGrid
|content=

{{Colored box
|title = Tutorials
|content = 
* [https://public-paws.wmcloud.org/User:APaskulin_(WMF)/API-Portal/wikifeeds-tutorial.ipynb Getting featured content from Wikipedia]
* [https://public-paws.wmcloud.org/User:APaskulin_(WMF)/en-wikipedia-search.ipynb Search Wikipedia articles]
* [https://public-paws.wmcloud.org/User:APaskulin_(WMF)/en-wikipedia-page-history.ipynb Explore page history]
* [https://public-paws.wmcloud.org/User:APaskulin_(WMF)/en-wikipedia-images.ipynb Reuse media files]
* {{ll|API:Article ideas generator|nsp=0}}
* {{ll|API:Nearby places viewer|nsp=0}}
* {{ll|API:Picture of the day viewer|nsp=0}}
* {{ll|API:Holidays viewer|nsp=0}}
}}

{{Colored box
|title = Guides
|content = 
* [[Wikimedia APIs/Content reuse|Content reuse]]
* [[Wikimedia APIs/Tools and bots|Tools and bots]]
* [[Wikimedia APIs/Conditional requests|Conditional requests]]
}}

{{Colored box
|title = Policies
|content = 
* [[Wikimedia APIs/Access policy|Access policy]]
* [[Wikimedia APIs/Stability policy|Stability policy]]
* [[Wikimedia APIs/Rate limits|Rate limits]]
}}

}}

== API catalog ==

{{ContentGrid
|content=

{{Colored box
|title = [[API:REST API|MediaWiki REST API]]
|content = Simplified read-write API for Wikimedia projects
}}

{{Colored box
|title = [[wmdoc:generated-data-platform/aqs/analytics-api/|Analytics API]]
|content = Get page views and other data about Wikimedia projects
}}

{{Colored box
|title = [[Wikifunctions API]]
|content = Discover and interact with code functions
}}

{{Colored box
|title = [[API:Action API|MediaWiki Action API]]
|content = Powerful content and wiki management API
}}

{{Colored box
|title = [[Wikimedia REST API]]
|content = Get mobile-friendly content, featured article feeds, and more
}}

{{Colored box
|title = [[Link Recommendation API]]
|content = Get suggestions for links to add to articles on Wikipedia
}}

{{Colored box
|title = [[Page Description API]]
|content = Interact with short summaries of page topics
}}

{{Colored box
|title = [https://enterprise.wikimedia.com/ Wikimedia Enterprise API]
|content = Service for high-volume commercial reuse of Wikimedia content, including free [[meta:Wikimedia_Enterprise#Access|community access]]
}}

{{Colored box
|title = [[wikitech:Machine Learning/LiftWing/API|Lift Wing Machine Learning API]]
|content = Get predictions from Wikimedia machine learning models
}}

{{Colored box
|title = [[Wikifeeds API]]
|content = Get daily featured content from Wikipedia
}}

{{Colored box
|title = [[wikitech:Event Platform/EventStreams HTTP Service|Event Streams API]]
|content = Get the most recent changes to Wikimedia projects
}}

{{Colored box
|title = [[Attribution API|Attribution API (Beta)]]
|content = Get information to fairly credit Wikimedia content
}}

}}

== API sandbox ==

The API sandbox lets you browse available APIs and make live requests. To try the sandbox, visit the Special:RESTSandbox page on the Wikimedia wiki you want to access. For example, the [[w:Special:RESTSandbox|API sandbox for English Wikipedia]] and the [[commons:Special:RESTSandbox|API sandbox for Wikimedia Commons]].

== About Wikimedia projects ==

Wikimedia content is organized by project and language. Each [[meta:Wikimedia projects|project]] hosts a different type of free content—encyclopedia articles on Wikipedia, dictionary entries on Wiktionary—and can be published under a different free license.

Most Wikimedia projects are created and maintained in a single language. This means that what we think of as Wikipedia is really over 300 different Wikipedias—English Wikipedia, Cebuano Wikipedia, Swedish Wikipedia, and many more—all writing original articles in their own language. Available languages vary by project; visit the [[Special:SiteMatrix|site matrix]] for a complete list of projects and languages. Some projects are maintained in English and translated into other languages (like [[c:|Wikimedia Commons]]), or they are created to be language neutral (like [[species:|Wikispecies]]).

== Use cases ==

=== Daily featured content ===

Many Wikipedias include a daily featured article and other curated content on their homepages. You can see an example of this on [[:en:|English Wikipedia]] and [[:he:|Hebrew Wikipedia]]. Wikimedia APIs let you access this featured content programmatically and add high-quality, multilingual knowledge to your apps.

* Get the daily featured article from  Wikipedia in more than 10 languages.
* Display the daily featured image from [[commons:|Wikimedia Commons]] with descriptions in English.
* Explore events from this day in history, including holidays, births, and deaths.

To get started, read the [https://public-paws.wmcloud.org/User:APaskulin_(WMF)/API-Portal/wikifeeds-tutorial.ipynb tutorial], or visit the [[Wikifeeds API]] docs.

=== Current events ===

Many Wikipedias maintain a list of topics in today’s news with links to relevant Wikipedia articles. Wikimedia APIs let you access these topics in more than 15 languages.

To get started, read the [https://public-paws.wmcloud.org/User:APaskulin_(WMF)/API-Portal/wikifeeds-tutorial.ipynb tutorial], or visit the [[Wikifeeds API]] docs.

=== Most-read articles ===

Wikipedia gets millions of page views every day across hundreds of languages. Wikimedia APIs offer a list of the most-read articles per day for each Wikipedia language.

To get started, visit the [[wmdoc:generated-data-platform/aqs/analytics-api/reference/page-views.html#list-most-viewed-pages|Analytics API docs]].

=== Education ===

Wikimedia projects offer a variety of open knowledge resources for teachers and students.

* Look up millions of words in thousands of languages with multilingual dictionaries on [[wiktionary:|Wiktionary]].
* Set learning free with thousands of learning resources on [[wikiversity:|Wikiversity]].
* Explore thousands of free library texts with [[wikisource:|Wikisource]].
* Learn about [[meta:Education|Wikimedia Education]] initiatives.

To get started, try the [[wikiversity:Special:RestSandbox|API sandbox for English Wikiversity]] and [https://www.wikiversity.org/ other languages].

=== Travel ===

Explore the world with free travel resources from [[wikivoyage:|Wikivoyage]].

* Learn about sightseeing, activities, cuisine and accommodation in destinations around the world.
* Browse itineraries for any length trip.
* Get helpful phrasebooks for local languages.

To get started, try the [[wikivoyage:Special:RestSandbox|API sandbox for English Wikivoyage]] and [https://www.wikivoyage.org/ other languages].

== About this page ==

This page was adapted from the [https://api.wikimedia.org/wiki/Main_Page Wikimedia API Portal] by APaskulin (WMF), Ameisenigel, DannyS712, Cedarlakeventures, and Overboard777, licensed under [[creativecommons:/by-sa/4.0/|CC BY-SA 4.0]]. The content has been modified to apply to all Wikimedia APIs.

== See also ==

For information about APIs available with any instance of MediaWiki, see [[API]].