Query structured spec data via REST or MCP. Get exactly what your agent needs.
https://wikimedia.org/api/rest_v1
/media/math/check/{type}
Checks the supplied TeX formula for correctness and returns the
normalised formula representation as well as information about
identifiers. Available types are tex and inline-tex. The response
contains the x-resource-location header which can be used to retrieve
the render of the checked formula in one of the supported rendering
formats. Just append the value of the header to /media/math/{format}/
and perform a GET request against that URL.
Stability: stable.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| type | path | required | string | The input type of the given formula; can be tex or inline-tex |
application/x-www-form-urlencoded
MathCheckFormulaRequest
| Property | Type | Required |
|---|---|---|
| q | string | required |
Error
Information about the checked formula
Invalid type
POST /media/math/check/{type}
/transform/html/from/{from_lang}/to/{to_lang}
Fetches the machine translation for the posted content from the source
to the destination language.
Stability: unstable
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| from_lang | path | required | string | The source language code |
| to_lang | path | required | string | The target language code |
application/x-www-form-urlencoded
TransformContentMachineTranslateRequest
| Property | Type | Required |
|---|---|---|
| html | string | required |
Error
The translated content
POST /transform/html/from/{from_lang}/to/{to_lang}
/transform/html/from/{from_lang}/to/{to_lang}/{provider}
Fetches the machine translation for the posted content from the source
to the destination language.
Stability: unstable
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| from_lang | path | required | string | The source language code |
| to_lang | path | required | string | The target language code |
| provider | path | required | string | The machine translation provider id |
application/x-www-form-urlencoded
TransformContentMachineTranslateRequest
| Property | Type | Required |
|---|---|---|
| html | string | required |
Error
The translated content
POST /transform/html/from/{from_lang}/to/{to_lang}/{provider}
BytesDifferenceDataGetAbsoluteAggregateByProjectAndDateRangeResponse
{
"type": "object",
"example": {},
"properties": {}
}
BytesDifferenceDataGetAbsolutePerPageResponse
{
"type": "object",
"example": {},
"properties": {}
}
BytesDifferenceDataGetNetAggregateByProjectAndDateRangeResponse
{
"type": "object",
"example": {},
"properties": {}
}
BytesDifferenceDataGetSumNetTextBytesDifferencePerPageResponse
{
"type": "object",
"example": {},
"properties": {}
}
EditedPagesDataGetAggregateByProjectAndDateRangeResponse
{
"type": "object",
"example": {},
"properties": {}
}
EditedPagesDataGetNewPagesCountsForProjectResponse
{
"type": "object",
"example": {},
"properties": {}
}
EditedPagesDataGetTopByAbsoluteBytesDifferenceResponse
{
"type": "object",
"example": {},
"properties": {}
}
EditedPagesDataGetTopByEditsCountResponse
{
"type": "object",
"example": {},
"properties": {}
}
EditedPagesDataGetTopByNetBytesDifferenceResponse
{
"type": "object",
"example": {},
"properties": {}
}
EditorsDataGetEditorsCountsForProjectResponse
{
"type": "object",
"example": {},
"properties": {}
}
EditorsDataGetTopByAbsoluteBytesDifferenceResponse
{
"type": "object",
"example": {},
"properties": {}
}
EditorsDataGetTopByNetBytesDifferenceResponse
{
"type": "object",
"example": {},
"properties": {}
}
EditorsDataGetTopEditorsByEditsCountResponse
{
"type": "object",
"example": {},
"properties": {}
}
EditsDataGetEditsCountsForProjectResponse
{
"type": "object",
"example": {},
"properties": {}
}
EditsDataGetPageEditCountsResponse
{
"type": "object",
"example": {},
"properties": {}
}
LegacyDataGetPagecountsAggregateByProjectAndDateRangeResponse
{
"type": "object",
"example": {},
"properties": {}
}
MathCheckFormulaRequest
{
"type": "object",
"required": [
"q"
],
"properties": {
"q": {
"type": "string",
"description": "The formula to check"
}
}
}
PageviewsDataGetPageviewCountsByArticleDateRangeResponse
{
"type": "object",
"example": {},
"properties": {}
}
PageviewsDataGetPageviewCountsByProjectResponse
{
"type": "object",
"example": {},
"properties": {}
}
PageviewsDataListByCountryAndAccessResponse
{
"type": "object",
"example": {},
"properties": {}
}
PageviewsDataListMostViewedArticlesByProjectAndTimespanResponse
{
"type": "object",
"example": {},
"properties": {}
}
RegisteredUsersDataGetNewUserCountsByProjectAndDateRangeResponse
{
"type": "object",
"example": {},
"properties": {}
}
TransformContentMachineTranslateRequest
{
"type": "object",
"required": [
"html"
],
"properties": {
"html": {
"type": "string",
"x-textarea": true,
"description": "The HTML content to translate"
}
}
}
TransformGetListToolLanguagePairsResponse
{
"type": "object",
"example": {},
"properties": {}
}
TransformToolLanguagePairsList200Response
{
"type": "object",
"example": {},
"properties": {}
}
TransformToolLanguagePairsListResponse
{
"type": "object",
"example": {},
"properties": {}
}
UniqueDevicesDataGetByProjectAndDateRangeResponse
{
"type": "object",
"example": {},
"properties": {}
}
absolute-bytes-difference
{
"properties": {
"items": {
"type": "array",
"items": {
"properties": {
"project": {
"type": "string"
},
"results": {
"type": "array",
"items": {
"properties": {
"timestamp": {
"type": "string"
},
"abs_bytes_diff": {
"type": "integer",
"format": "int64"
}
}
}
},
"page-type": {
"type": "string"
},
"editor-type": {
"type": "string"
},
"granularity": {
"type": "string"
}
}
}
}
}
}
absolute-bytes-difference-per-editor
{
"properties": {
"items": {
"type": "array",
"items": {
"properties": {
"project": {
"type": "string"
},
"results": {
"type": "array",
"items": {
"properties": {
"timestamp": {
"type": "string"
},
"abs_bytes_diff": {
"type": "integer",
"format": "int64"
}
}
}
},
"page-type": {
"type": "string"
},
"user-text": {
"type": "string"
},
"granularity": {
"type": "string"
}
}
}
}
}
}
absolute-bytes-difference-per-page
{
"properties": {
"items": {
"type": "array",
"items": {
"properties": {
"project": {
"type": "string"
},
"results": {
"type": "array",
"items": {
"properties": {
"timestamp": {
"type": "string"
},
"abs_bytes_diff": {
"type": "integer",
"format": "int64"
}
}
}
},
"page-title": {
"type": "string"
},
"editor-type": {
"type": "string"
},
"granularity": {
"type": "string"
}
}
}
}
}
}
availability
{
"type": "object",
"required": [
"todays_featured_article",
"most_read",
"picture_of_the_day",
"in_the_news",
"on_this_day"
],
"properties": {
"most_read": {
"type": "array",
"items": {
"type": "string"
},
"description": "domains for wikis with this feature enabled, or [ '*.<project>.org' ] for all wikis in a project"
},
"in_the_news": {
"type": "array",
"items": {
"type": "string"
},
"description": "domains for wikis with this feature enabled, or [ '*.<project>.org' ] for all wikis in a project"
},
"on_this_day": {
"type": "array",
"items": {
"type": "string"
},
"description": "domains for wikis with this feature enabled, or [ '*.<project>.org' ] for all wikis in a project"
},
"picture_of_the_day": {
"type": "array",
"items": {
"type": "string"
},
"description": "domains for wikis with this feature enabled, or [ '*.<project>.org' ] for all wikis in a project"
},
"todays_featured_article": {
"type": "array",
"items": {
"type": "string"
},
"description": "domains for wikis with this feature enabled, or [ '*.<project>.org' ] for all wikis in a project"
}
}
}
by-country
{
"properties": {
"items": {
"type": "array",
"items": {
"properties": {
"year": {
"type": "string"
},
"month": {
"type": "string"
},
"access": {
"type": "string"
},
"project": {
"type": "string"
},
"countries": {
"type": "array",
"items": {
"properties": {
"rank": {
"type": "integer",
"format": "int32"
},
"views": {
"type": "integer",
"format": "int64"
},
"country": {
"type": "string"
}
}
}
}
}
}
}
}
}
cx_dict
{
"type": "object",
"properties": {
"source": {
"type": "string",
"description": "the original word to look up"
},
"translations": {
"type": "array",
"items": {
"type": "object",
"properties": {
"info": {
"type": "string",
"description": "extra information about the phrase"
},
"phrase": {
"type": "string",
"description": "the translated phrase"
},
"sources": {
"type": "string",
"description": "the source dictionary used for the translation"
}
}
},
"description": "the translations found"
}
}
}
cx_languagepairs
{
"type": "object",
"properties": {
"source": {
"type": "array",
"items": {
"type": "string",
"description": "one source language"
},
"description": "the list of available source languages"
},
"target": {
"type": "array",
"items": {
"type": "string",
"description": "one destination language"
},
"description": "the list of available destination languages"
}
}
}
cx_list_pairs_for_tool
{
"type": "object"
}
cx_list_tools
{
"type": "object",
"properties": {
"tools": {
"type": "array",
"items": {
"type": "string",
"description": "the tool available"
},
"description": "the list of tools available for the given language pair"
}
}
}
cx_mt
{
"type": "object",
"properties": {
"contents": {
"type": "string",
"description": "the translated content"
}
}
}
edited-pages
{
"properties": {
"items": {
"type": "array",
"items": {
"properties": {
"project": {
"type": "string"
},
"results": {
"type": "array",
"items": {
"properties": {
"timestamp": {
"type": "string"
},
"edited_pages": {
"type": "integer",
"format": "int32"
}
}
}
},
"page-type": {
"type": "string"
},
"editor-type": {
"type": "string"
},
"granularity": {
"type": "string"
},
"activity-level": {
"type": "string"
}
}
}
}
}
}
editors
{
"properties": {
"items": {
"type": "array",
"items": {
"properties": {
"project": {
"type": "string"
},
"results": {
"type": "array",
"items": {
"properties": {
"editors": {
"type": "integer",
"format": "int32"
},
"timestamp": {
"type": "string"
}
}
}
},
"page-type": {
"type": "string"
},
"editor-type": {
"type": "string"
},
"granularity": {
"type": "string"
},
"activity-level": {
"type": "string"
}
}
}
}
}
}
edits
{
"properties": {
"items": {
"type": "array",
"items": {
"properties": {
"project": {
"type": "string"
},
"results": {
"type": "array",
"items": {
"properties": {
"edits": {
"type": "integer",
"format": "int64"
},
"timestamp": {
"type": "string"
}
}
}
},
"page-type": {
"type": "string"
},
"editor-type": {
"type": "string"
},
"granularity": {
"type": "string"
}
}
}
}
}
}
edits-per-editor
{
"properties": {
"items": {
"type": "array",
"items": {
"properties": {
"project": {
"type": "string"
},
"results": {
"type": "array",
"items": {
"properties": {
"edits": {
"type": "integer",
"format": "int64"
},
"timestamp": {
"type": "string"
}
}
}
},
"page-type": {
"type": "string"
},
"user-text": {
"type": "string"
},
"granularity": {
"type": "string"
}
}
}
}
}
}
edits-per-page
{
"properties": {
"items": {
"type": "array",
"items": {
"properties": {
"project": {
"type": "string"
},
"results": {
"type": "array",
"items": {
"properties": {
"edits": {
"type": "integer",
"format": "int64"
},
"timestamp": {
"type": "string"
}
}
}
},
"page-title": {
"type": "string"
},
"editor-type": {
"type": "string"
},
"granularity": {
"type": "string"
}
}
}
}
}
}
listing
{
"required": [
"items"
],
"properties": {
"items": {
"type": "array",
"items": {
"type": "string"
}
}
},
"description": "The result format for listings"
}
net-bytes-difference
{
"properties": {
"items": {
"type": "array",
"items": {
"properties": {
"project": {
"type": "string"
},
"results": {
"type": "array",
"items": {
"properties": {
"timestamp": {
"type": "string"
},
"net_bytes_diff": {
"type": "integer",
"format": "int64"
}
}
}
},
"page-type": {
"type": "string"
},
"editor-type": {
"type": "string"
},
"granularity": {
"type": "string"
}
}
}
}
}
}
net-bytes-difference-per-editor
{
"properties": {
"items": {
"type": "array",
"items": {
"properties": {
"project": {
"type": "string"
},
"results": {
"type": "array",
"items": {
"properties": {
"timestamp": {
"type": "string"
},
"net_bytes_diff": {
"type": "integer",
"format": "int64"
}
}
}
},
"page-type": {
"type": "string"
},
"user-text": {
"type": "string"
},
"granularity": {
"type": "string"
}
}
}
}
}
}
net-bytes-difference-per-page
{
"properties": {
"items": {
"type": "array",
"items": {
"properties": {
"project": {
"type": "string"
},
"results": {
"type": "array",
"items": {
"properties": {
"timestamp": {
"type": "string"
},
"net_bytes_diff": {
"type": "integer",
"format": "int64"
}
}
}
},
"page-title": {
"type": "string"
},
"editor-type": {
"type": "string"
},
"granularity": {
"type": "string"
}
}
}
}
}
}
new-pages
{
"properties": {
"items": {
"type": "array",
"items": {
"properties": {
"project": {
"type": "string"
},
"results": {
"type": "array",
"items": {
"properties": {
"new_pages": {
"type": "integer",
"format": "int32"
},
"timestamp": {
"type": "string"
}
}
}
},
"page-type": {
"type": "string"
},
"editor-type": {
"type": "string"
},
"granularity": {
"type": "string"
}
}
}
}
}
}
new-registered-users
{
"properties": {
"items": {
"type": "array",
"items": {
"properties": {
"project": {
"type": "string"
},
"results": {
"type": "array",
"items": {
"properties": {
"timestamp": {
"type": "string"
},
"new_registered_users": {
"type": "integer",
"format": "int32"
}
}
}
},
"granularity": {
"type": "string"
}
}
}
}
}
}
originalimage
{
"type": "object",
"required": [
"source",
"width",
"height"
],
"properties": {
"width": {
"type": "integer",
"description": "Original image width"
},
"height": {
"type": "integer",
"description": "Original image height"
},
"source": {
"type": "string",
"description": "Original image URI"
}
}
}
pagecounts-project
{
"properties": {
"items": {
"type": "array",
"items": {
"properties": {
"count": {
"type": "integer",
"format": "int64"
},
"project": {
"type": "string"
},
"timestamp": {
"type": "string"
},
"access-site": {
"type": "string"
},
"granularity": {
"type": "string"
}
}
}
}
}
}
| Version | Endpoints | Schemas | Ingested | Status |
|---|---|---|---|---|
| 1.0.0 | 35 | 63 | 2026-05-11 | current |
| 1.0.0 | 35 | 63 | 2026-04-16 |