Wikimedia
  1. Transform
Wikimedia
  • Feed content availability
    • Gets availability of featured feed content for the apps by wiki domain.
      GET
  • Math
    • Check and normalize a TeX formula.
      POST
    • Get a previously-stored formula
      GET
    • Get rendered formula in the given format.
      GET
  • Bytes difference data
    • Get the sum of absolute value of text bytes difference between current edit and previous one.
      GET
    • Get the sum of absolute text bytes difference per page.
      GET
    • Get the sum of net text bytes difference between current edit and previous one.
      GET
    • Get the sum of net text bytes difference per page.
      GET
  • Edited pages data
    • Get edited-pages counts for a project.
      GET
    • Get new pages counts for a project.
      GET
    • Get top 100 edited-pages by absolute bytes-difference.
      GET
    • Get top 100 edited-pages by edits count.
      GET
    • Get top 100 edited-pages by net bytes-difference.
      GET
  • Editors data
    • Get editors counts for a project.
      GET
    • Get top 100 editors by absolute bytes-difference.
      GET
    • Get top 100 editors by edits count.
      GET
    • Get top 100 editors by net bytes-difference.
      GET
  • Edits data
    • Get edits counts for a project.
    • Get edit counts for a page in a project.
  • Legacy data
    • /metrics/legacy/pagecounts/aggregate/{project}/{access-site}/{granularity}/{start}/{end}
  • Pageviews data
    • Get pageview counts for a project.
    • Get pageview counts for a page.
    • Get pageviews by country and access method.
    • Get the most viewed articles for a project.
  • Registered users data
    • Get newly registered users counts for a project.
  • Unique devices data
    • Get unique devices count per project
  • Transform
    • Machine-translate content
      POST
    • Machine-translate content
      POST
    • Lists the language pairs supported by the back-end
      GET
    • Lists the tools available for a language pair
      GET
    • Lists the tools and language pairs available for the given tool category
      GET
    • Lists the tools and language pairs available for the given tool category
      GET
    • Lists the tools and language pairs available for the given tool category
      GET
    • Fetch the dictionary meaning of a word
      GET
    • Fetch the dictionary meaning of a word
      GET
  1. Transform

Machine-translate content

POST
/transform/html/from/{from_lang}/to/{to_lang}/{provider}
Transform
Fetches the machine translation for the posted content from the source
to the destination language.
Stability: unstable
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://wikimedia.org/api/rest_v1/transform/html/from//to//' \
--data-urlencode 'html='
Response Response Example
200 - Example 1
{
    "contents": "string"
}

Request

Path Params
from_lang
string 
required
The source language code
to_lang
string 
required
The target language code
provider
string 
required
The machine translation provider id
Body Params application/x-www-form-urlencoded
html
string 
required
The HTML content to translate

Responses

🟢200The translated content
application/json
Body
contents
string 
optional
the translated content
🔴500Error
Modified at 2023-08-15 06:49:12
Previous
Machine-translate content
Next
Lists the language pairs supported by the back-end
Built with