Get Wikipedia Article Languages
wikipedia_get_languagesList the language editions available for a Wikipedia article. Returns language codes, article titles in each language, and full URLs. Useful for cross-language research and for discovering the correct article title in a target language before fetching it. A popular article exists in hundreds of editions, so pass editions to narrow the answer to the codes you care about — the codes with no article come back under missing, and total_languages still reports the full count. Redirect pages are followed automatically, and source_title reports the resolved article the links belong to. The language parameter specifies which edition to query from.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Article title in the source language edition. A trailing #fragment is accepted and ignored; the characters < > [ ] { } and | cannot appear in a Wikipedia page name. | |
| editions | No | Edition codes to keep, e.g. ["fr", "de", "gsw"]. Each is matched case-insensitively against both edition_code and language_code, so either spelling of a mismatch edition finds it ("gsw" matches the edition whose edition_code is "als"). Omit to list every edition. A code with no article for this title is reported under missing rather than dropped, and is not a failure. | |
| language | No | Wikipedia language edition to query from (default "en"). Examples: "fr", "de", "ja". | en |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present when the call failed. Absent on success. | |
| missing | No | Requested edition codes with no article for this title, echoed as they were passed. Present whenever editions was given — empty when every code matched — and absent otherwise. | |
| languages | No | Available language editions excluding the source language. Narrowed to the requested codes when editions was given, and empty when none of them matched. | |
| source_title | No | Resolved article title in the source language edition — the redirect target when the input was an alias. | |
| source_language | No | The language edition that was queried. | |
| total_languages | No | Total number of other language editions the article has. Always the unfiltered count, so it exceeds the length of languages whenever editions narrowed the list. |