Wikimedia API
Mock the Wikimedia API in seconds. This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats.
[01]
About
Mock the Wikimedia API as a turnkey Mockzilla sim with 35 OpenAPI endpoints, realistic JSON payloads, no upstream signup or sandbox keys. This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. Methods: 32x GET, 3x POST. Top resource groups: Transform, Edited pages data, Bytes difference data, Editors data. Hit https://api.justmocks.com/wikimedia for the Mockzilla API Explorer landing and per-endpoint sample requests.
Endpoints
35 across 11 resource groups
Methods
GET 32 · POST 3 none deprecated
OpenAPI
3.0.0 spec version 1.0.0
Source spec
123 KB · YAML
view raw →
[02]
Endpoints
| GET |
/feed/availability
|
Gets availability of featured feed content for the apps by wiki domain. Gets availability of featured feed content for the apps by wiki domain. Stability: experimental. Mocked via Mockzilla.
|
| POST |
/media/math/check/{type}
|
Check and normalize a TeX formula. 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.
|
| GET |
/media/math/formula/{hash}
|
Get a previously-stored formula Returns the previously-stored formula via /media/math/check/{type} for the given hash. Stability: stable.
|
| GET |
/media/math/render/{format}/{hash}
|
Get rendered formula in the given format. Given a request hash, renders a TeX formula into its mathematic representation in the given format. When a request is issued to the /media/math/check/{format} POST endpoint, the response contains the x-resource-location header denoting the hash ID of the POST data. Once obtained, this endpoint has to be used to obtain the actual render. Stability: stable.
|
| GET |
/metrics/bytes-difference/absolute/aggregate/{project}/{editor-type}/{page-type}/{granularity}/{start}/{end}
|
Get the sum of absolute value of text bytes difference between current edit and previous one. Given a Mediawiki project and a date range, returns a timeseries of absolute bytes difference sums. You can filter by editors-type (all-editor-types, anonymous, group-bot, name-bot, user) and page-type (all-page-types, content, non-content). You can choose between daily and monthly granularity as well. - Stability: experimental - Rate limit: 25 req/s - License: Data accessible via this endpoint is available under the CC0 1.0 license.
|
| GET |
/metrics/bytes-difference/absolute/per-page/{project}/{page-title}/{editor-type}/{granularity}/{start}/{end}
|
Get the sum of absolute text bytes difference per page. Given a Mediawiki project, a page-title prefixed with canonical namespace (for instance 'User:Jimbo_Wales') and a date range, returns a timeseries of bytes difference absolute sums. You can filter by editors-type (all-editor-types, anonymous, group-bot, name-bot, user). You can choose between daily and monthly granularity as well. - Stability: experimental - Rate limit: 25 req/s - License: Data accessible via this endpoint is available under the CC0 1.0 license. Available as a Mockzilla mock endpoint.
|
| GET |
/metrics/bytes-difference/net/aggregate/{project}/{editor-type}/{page-type}/{granularity}/{start}/{end}
|
Get the sum of net text bytes difference between current edit and previous one. Given a Mediawiki project and a date range, returns a timeseries of bytes difference net sums. You can filter by editors-type (all-editor-types, anonymous, group-bot, name-bot, user) and page-type (all-page-types, content or non-content). You can choose between daily and monthly granularity as well. - Stability: experimental - Rate limit: 25 req/s - License: Data accessible via this endpoint is available under the CC0 1.0 license.
|
| GET |
/metrics/bytes-difference/net/per-page/{project}/{page-title}/{editor-type}/{granularity}/{start}/{end}
|
Get the sum of net text bytes difference per page. Given a Mediawiki project, a page-title prefixed with canonical namespace (for instance 'User:Jimbo_Wales') and a date range, returns a timeseries of bytes difference net sums. You can filter by editors-type (all-editor-types, anonymous, group-bot, name-bot, user). You can choose between daily and monthly granularity as well. - Stability: experimental - Rate limit: 25 req/s - License: Data accessible via this endpoint is available under the CC0 1.0 license.
|
| GET |
/metrics/edited-pages/aggregate/{project}/{editor-type}/{page-type}/{activity-level}/{granularity}/{start}/{end}
|
Get edited-pages counts for a project. Given a Mediawiki project and a date range, returns a timeseries of its edited-pages counts. You can filter by editor-type (all-editor-types, anonymous, group-bot, name-bot, user), page-type (all-page-types, content or non-content) or activity-level (1..4-edits, 5..24-edits, 25..99-edits, 100..-edits). You can choose between daily and monthly granularity as well. - Stability: experimental - Rate limit: 25 req/s - License: Data accessible via this endpoint is available under the CC0 1.0 license.
|
| GET |
/metrics/edited-pages/new/{project}/{editor-type}/{page-type}/{granularity}/{start}/{end}
|
Get new pages counts for a project. Given a Mediawiki project and a date range, returns a timeseries of its new pages counts. You can filter by editor type (all-editor-types, anonymous, group-bot, name-bot, user) or page-type (all-page-types, content or non-content). You can choose between daily and monthly granularity as well. - Stability: experimental - Rate limit: 25 req/s - License: Data accessible via this endpoint is available under the CC0 1.0 license.
|
| GET |
/metrics/edited-pages/top-by-absolute-bytes-difference/{project}/{editor-type}/{page-type}/{year}/{month}/{day}
|
Get top 100 edited-pages by absolute bytes-difference. Given a Mediawiki project and a date (day or month), returns a timeseries of the top 100 edited-pages by absolute bytes-difference. You can filter by editor-type (all-editor-types, anonymous, group-bot, name-bot, user) or page-type (all-page-types, content or non-content). - Stability: experimental - Rate limit: 25 req/s - License: Data accessible via this endpoint is available under the CC0 1.0 license. Mockzilla mock: no signup, no API key.
|
| GET |
/metrics/edited-pages/top-by-edits/{project}/{editor-type}/{page-type}/{year}/{month}/{day}
|
Get top 100 edited-pages by edits count. Given a Mediawiki project and a date (day or month), returns a timeseries of the top 100 edited-pages by edits count. You can filter by editor-type (all-editor-types, anonymous, group-bot, name-bot, user) or page-type (all-page-types, content or non-content). - Stability: experimental - Rate limit: 25 req/s - License: Data accessible via this endpoint is available under the CC0 1.0 license.
|
| GET |
/metrics/edited-pages/top-by-net-bytes-difference/{project}/{editor-type}/{page-type}/{year}/{month}/{day}
|
Get top 100 edited-pages by net bytes-difference. Given a Mediawiki project and a date (day or month), returns a timeseries of the top 100 edited-pages by net bytes-difference. You can filter by editor-type (all-editor-types, anonymous, group-bot, name-bot, user) or page-type (all-page-types, content or non-content). - Stability: experimental - Rate limit: 25 req/s - License: Data accessible via this endpoint is available under the CC0 1.0 license.
|
| GET |
/metrics/editors/aggregate/{project}/{editor-type}/{page-type}/{activity-level}/{granularity}/{start}/{end}
|
Get editors counts for a project. Given a Mediawiki project and a date range, returns a timeseries of its editors counts. You can filter by editory-type (all-editor-types, anonymous, group-bot, name-bot, user), page-type (all-page-types, content or non-content) or activity-level (1..4-edits, 5..24-edits, 25..99-edits or 100..-edits). You can choose between daily and monthly granularity as well. - Stability: experimental - Rate limit: 25 req/s - License: Data accessible via this endpoint is available under the CC0 1.0 license.
|
| GET |
/metrics/editors/top-by-absolute-bytes-difference/{project}/{editor-type}/{page-type}/{year}/{month}/{day}
|
Get top 100 editors by absolute bytes-difference. Given a Mediawiki project and a date (day or month), returns a timeseries of the top 100 editors by absolute bytes-difference. You can filter by editor-type (all-editor-types, anonymous, group-bot, name-bot, user) or page-type (all-page-types, content or non-content). The user_text returned is either the mediawiki user_text if the user is registered, or null if user is anonymous. - Stability: experimental - Rate limit: 25 req/s - License: Data accessible via this endpoint is available under the CC0 1.0 license.
|
| GET |
/metrics/editors/top-by-edits/{project}/{editor-type}/{page-type}/{year}/{month}/{day}
|
Get top 100 editors by edits count. Given a Mediawiki project and a date (day or month), returns a timeseries of the top 100 editors by edits count. You can filter by editor-type (all-editor-types, anonymous, group-bot, name-bot, user) or page-type (all-page-types, content or non-content). The user_text returned is either the mediawiki user_text if the user is registered, or null if user is anonymous. - Stability: experimental - Rate limit: 25 req/s - License: Data accessible via this endpoint is available under the CC0 1.0 license. Served by the Mockzilla mock runtime.
|
| GET |
/metrics/editors/top-by-net-bytes-difference/{project}/{editor-type}/{page-type}/{year}/{month}/{day}
|
Get top 100 editors by net bytes-difference. Given a Mediawiki project and a date (day or month), returns a timeseries of the top 100 editors by net bytes-difference. You can filter by editor-type (all-editor-types, anonymous, group-bot, name-bot, user) or page-type (all-page-types, content or non-content). The user_text returned is either the mediawiki user_text if the user is registered, or "Anonymous Editor" if user is anonymous. - Stability: experimental - Rate limit: 25 req/s - License: Data accessible via this endpoint is available under the CC0 1.0 license.
|
| GET |
/metrics/edits/aggregate/{project}/{editor-type}/{page-type}/{granularity}/{start}/{end}
|
Get edits counts for a project. Given a Mediawiki project and a date range, returns a timeseries of edits counts. You can filter by editors-type (all-editor-types, anonymous, bot, registered) and page-type (all-page-types, content or non-content). You can choose between daily and monthly granularity as well. - Stability: experimental - Rate limit: 25 req/s - License: Data accessible via this endpoint is available under the CC0 1.0 license.
|
| GET |
/metrics/edits/per-page/{project}/{page-title}/{editor-type}/{granularity}/{start}/{end}
|
Get edit counts for a page in a project. Given a Mediawiki project, a page-title prefixed with its canonical namespace (for instance 'User:Jimbo_Wales') and a date range, returns a timeseries of edit counts. You can filter by editors-type (all-editor-types, anonymous, group-bot, name-bot, user). You can choose between daily and monthly granularity as well. - Stability: experimental - Rate limit: 25 req/s - License: Data accessible via this endpoint is available under the CC0 1.0 license.
|
| GET |
/metrics/legacy/pagecounts/aggregate/{project}/{access-site}/{granularity}/{start}/{end}
|
Given a project and a date range, returns a timeseries of pagecounts. You can filter by access site (mobile or desktop) and you can choose between monthly, daily and hourly granularity as well. - Stability: experimental - Rate limit: 100 req/s - License: Data accessible via this endpoint is available under the CC0 1.0 license.
|
| GET |
/metrics/pageviews/aggregate/{project}/{access}/{agent}/{granularity}/{start}/{end}
|
Get pageview counts for a project. Given a date range, returns a timeseries of pageview counts. You can filter by project, access method and/or agent type. You can choose between daily and hourly granularity as well. - Stability: stable - Rate limit: 100 req/s - License: Data accessible via this endpoint is available under the CC0 1.0 license. Mocked via Mockzilla.
|
| GET |
/metrics/pageviews/per-article/{project}/{access}/{agent}/{article}/{granularity}/{start}/{end}
|
Get pageview counts for a page. Given a Mediawiki article and a date range, returns a daily timeseries of its pageview counts. You can also filter by access method and/or agent type. - Stability: stable - Rate limit: 100 req/s - License: Data accessible via this endpoint is available under the CC0 1.0 license.
|
| GET |
/metrics/pageviews/top-by-country/{project}/{access}/{year}/{month}
|
Get pageviews by country and access method. Lists the pageviews to this project, split by country of origin for a given month. Because of privacy reasons, pageviews are given in a bucketed format, and countries with less than 100 views do not get reported. Stability: experimental - Rate limit: 100 req/s - License: Data accessible via this endpoint is available under the CC0 1.0 license.
|
| GET |
/metrics/pageviews/top/{project}/{access}/{year}/{month}/{day}
|
Get the most viewed articles for a project. Lists the 1000 most viewed articles for a given project and timespan (month or day). You can filter by access method. - Stability: stable - Rate limit: 100 req/s - License: Data accessible via this endpoint is available under the CC0 1.0 license.
|
| GET |
/metrics/registered-users/new/{project}/{granularity}/{start}/{end}
|
Get newly registered users counts for a project. Given a Mediawiki project and a date range, returns a timeseries of its newly registered users counts. You can choose between daily and monthly granularity. The newly registered users value is computed with self-created users only, not auto-login created ones. - Stability: experimental - Rate limit: 25 req/s - License: Data accessible via this endpoint is available under the CC0 1.0 license.
|
| GET |
/metrics/unique-devices/{project}/{access-site}/{granularity}/{start}/{end}
|
Get unique devices count per project Given a project and a date range, returns a timeseries of unique devices counts. You need to specify a project, and can filter by accessed site (mobile or desktop). You can choose between daily and hourly granularity as well. - Stability: stable - Rate limit: 100 req/s - License: Data accessible via this endpoint is available under the CC0 1.0 license. Available as a Mockzilla mock endpoint.
|
| POST |
/transform/html/from/{from_lang}/to/{to_lang}
|
Machine-translate content Fetches the machine translation for the posted content from the source to the destination language. Stability: unstable
|
| POST |
/transform/html/from/{from_lang}/to/{to_lang}/{provider}
|
Machine-translate content Fetches the machine translation for the posted content from the source to the destination language. Stability: unstable
|
| GET |
/transform/list/tool/{tool}
|
Lists the tools and language pairs available for the given tool category Fetches the list of tools and all of the language pairs it can translate Stability: unstable
|
| GET |
/transform/list/tool/{tool}/{from}
|
Lists the tools and language pairs available for the given tool category Fetches the list of tools and all of the language pairs it can translate Stability: unstable
|
| GET |
/transform/list/tool/{tool}/{from}/{to}
|
Lists the tools and language pairs available for the given tool category Fetches the list of tools and all of the language pairs it can translate Stability: unstable. Mockzilla mock: no signup, no API key.
|
| GET |
/transform/word/from/{from_lang}/to/{to_lang}/{word}
|
Fetch the dictionary meaning of a word Fetches the dictionary meaning of a word from a language and displays it in the target language. Stability: unstable
|
| GET |
/transform/word/from/{from_lang}/to/{to_lang}/{word}/{provider}
|
Fetch the dictionary meaning of a word Fetches the dictionary meaning of a word from a language and displays it in the target language. Stability: unstable
|
| GET |
/transform/list/languagepairs
|
Lists the language pairs supported by the back-end Fetches the list of language pairs the back-end service can translate Stability: unstable
|
| GET |
/transform/list/pair/{from}/{to}
|
Lists the tools available for a language pair Fetches the list of tools that are available for the given pair of languages. Stability: unstable
|