Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Prototype of an API to show translation into several languages at once using MediaWiki API

License

Notifications You must be signed in to change notification settings

iredchuk/wiki-langlinks-api

Repository files navigation

wiki-langlinks-api

Not maintained any more

Prototype of an API to show translation into several languages at once using MediaWiki API.

Endpoints

GET /langlinks?search=&source=&target=

Params

  • search: search term (e.g. "Oak")
  • source: source language (e.g. "en")
  • target: "|"-separated target languages (e.g. "es|de")

200

{
  "langLinks": [
    {
      "lang": "es",
      "title": "Quercus",
      "url": "https://es.wikipedia.org/wiki/Quercus"
    },
    {
      "lang": "de",
      "title": "Eichen",
      "url": "https://de.wikipedia.org/wiki/Eichen"
    }
  ]
}

GET /langs

200

[
  {
    "lang": "de",
    "autonym": "Deutsch"
  },
  {
    "lang": "en",
    "autonym": "English"
  }
]

GET /health

200

OK

About

Prototype of an API to show translation into several languages at once using MediaWiki API

Resources

License

Stars

Watchers

Forks

Packages

No packages published