Core Platform Team/Initiatives/API Platform/API list
Appearance
This page is obsolete. It is being retained for archival purposes. It may document extensions or features that are obsolete and/or no longer supported. Do not rely on the information here being up-to-date. |
See also: Web APIs hub
Productionized
[edit]- Wikimedia REST API (aka RESTBase)
- https://www.mediawiki.org/wiki/Wikimedia_REST_API and https://en.wikipedia.org/api/rest_v1/
- Address: Per project at /api/rest_v1
- Includes mobileapps service https://wikitech.wikimedia.org/wiki/Mobileapps_(service)
- Includes Pageviews API (https://wikitech.wikimedia.org/wiki/Analytics/AQS/Pageviews)
- Includes Wikifeeds (https://www.mediawiki.org/wiki/Wikifeeds), also proxied through the Gateway under /feed https://api.wikimedia.org/wiki/API_reference/Feed)
- Includes (Node.js) Recommendation API (endpoints vary per wiki)
- MediaWiki Action API
- https://www.mediawiki.org/wiki/API:Main_page
- Reference: Per project at /w/api.php
- Includes Wikibase API https://www.mediawiki.org/wiki/Wikibase/API
- Includes Extension APIs https://www.mediawiki.org/wiki/API:Extensions#Module_creation_and_registration
- MediaWiki REST API
- https://www.mediawiki.org/wiki/API:REST_API
- Reference: Per project at /w/rest.php
- Also proxied through the Gateway under /core (https://api.wikimedia.org/wiki/API_reference/Core)
- EventStreams API
- ORES API
- Link recommendations
- Swagger: https://api.wikimedia.org/service/linkrecommendation/apidocs/#
- Proxied through the Gateway under /service/linkrecommendation (https://api.wikimedia.org/wiki/API_reference/Service/Link_recommendation)
Wikidata
[edit]- SPARQL (query.wikidata.org)
- Wikidata Linked Data Interface
- Wikidata LDF:
Commons
[edit]- Wikimedia Commons Query Service (WCQS) SPARQL endpoint for commons (https://wcqs-beta.wmflabs.org/)
- Docs: https://commons.wikimedia.org/wiki/Commons:SPARQL_query_service
- will be pushed to production as part of T260568
Internal
[edit]- Special:RunJobs undocumented entry point for executing jobs from the job queue. Internal use only, protected by HMAC.
Deprecated
[edit]- MediaWiki AJAX interface
- From the old days, before the action API exists. Still used by some extensions
- See $wgAjaxExportList, T42787
Non-Productionized
[edit]- Mobile Apps REST API
- https://mobileapps.wmflabs.org/?doc#/
- Page Content Service is proxied through the Gateway under /core.../description (example: https://api.wikimedia.org/wiki/API_reference/Core/Pages/Get_description)
- This Cloud VPS instance is intended for development and testing only and should not be relied upon in production. See also https://wikifeeds.wmflabs.org/?doc#/, to which the same warning applies.
- https://mobileapps.wmflabs.org/?doc#/
- Image recommendations
- Wikidata GraphQL:
- Endpoint: https://tptools.toolforge.org/wdql.html
- Recommendation API
?Questionable?
[edit]- CXServer (Content Translation)
- NSFW (Not Safe For Work) API
- Similar Users
- Optical Character Recognition
Research
[edit]Keep Research team posted on when we begin publishing docs to portal as these are all experimental
Slides with more details on Research APIs
- Article Topic API
- Documentation https://meta.wikimedia.org/wiki/Research:Language-Agnostic_Topic_Classification/Outlink_model_performance
- Code: https://github.com/geohci/wikipedia-language-agnostic-topic-classification
- Interface: https://wiki-topic.toolforge.org/
- Example call: https://wikipedia-topic.wmcloud.org/api/v1/topic?lang=en&title=Chadwick_Boseman
- Article Region API
- Documentation: https://meta.wikimedia.org/wiki/Research:Language-Agnostic_Topic_Classification/Countries
- Code: https://github.com/geohci/wiki-region-groundtruth
- Example call: https://wiki-region.wmcloud.org/api/v1/region?lang=en&titles=Chadwick_Boseman
- Interface: https://wiki-topic.toolforge.org/countries
- Person (Occupation) API
- Article Quality
- Docs: https://meta.wikimedia.org/wiki/Research:Prioritization_of_Wikipedia_Articles/Language-Agnostic_Quality
- Example call: https://misalignment.wmcloud.org/api/v1/quality-article?lang=en&title=Chadwick_Boseman
- Code: https://github.com/wikimedia/research-api-endpoint-template/blob/misalignment/model/wsgi.py
- Article Gender
- Docs: https://www.google.com/url?q=https://phabricator.wikimedia.org/T288666&sa=D&source=editors&ust=1631224474834000&usg=AOvVaw06BjYfl52iT84cmJuZCy6g
- Example call: https://article-gender-data.wmcloud.org/api/v1/details?lang=en&title=Modern_art
- Usage script: https://en.wikipedia.org/wiki/User:TayIorRobinson/wikigender.js
- List-Building (TODO: see what APIs this tool is using)
- Clickstream
- Docs & Code: https://github.com/mnzpk/wikinav
- Example Call: https://wikinav.wmcloud.org/api/v1/en/Chocolate/sources/latest
- Interface: https://wikinav.toolforge.org/
- Section Recommendation
- https://meta.wikimedia.org/wiki/Research:Expanding_Wikipedia_articles_across_languages/Inter_language_approach#Section_Recommendation
- Code: https://github.com/digitalTranshumant/wmf-interlanguage/blob/master/SecRec.ipynb
- Example call: https://secrec.wmflabs.org/API/recommendation/en/Quilombo?verbose=True&blind=False
- Citation Needed