Are the language comparable?

#61
by VityaVitalich - opened

Dear maintainers,

I found that passages with the same ids have different articles. Is there any way to match them, so that i could access one article with multiple languages? or maybe you can help and show me the source where there is such tool

Wikimedia org

You can call the Wikipedia actions API, with one or more pageids (separated by commas). It gives you the related pages in other projects/languages. You may need to page through the results if you get a long response.

https://en.wikipedia.org/w/api.php?action=query&pageids=[Your_Page_ID]&prop=langlinks&lllimit=max&format=json

{"batchcomplete":"","query":{"normalized":[{"from":"Josephine_Baker","to":"Josephine Baker"}],"pages":{"255083":{"pageid":255083,"ns":0,"title":"Josephine Baker","langlinks":[{"lang":"af","*":"Josephine Baker"},{"lang":"ar","*":"\u062c\u0648\u0632\u0641\u064a\u0646 \u0628\u064a\u0643\u0631"},{"lang":"arz","*":"\u062c\u0648\u0632\u0641\u064a\u0646 \u0628\u064a\u0643\u0631"},{"lang":"az","*":"Jozefina....

Sign up or log in to comment