How to filter a list of article titles with select language tags using Wikipedia API?

I am trying to use language tags to be able to filter titles using the Wikipedia API.

For example: how can I filter through titles from Armenian wikipedia (https://hy.wikipedia.org)

I've tried setting the Origin to https://hy.wikipedia.org but receive: An error occurred while loading the API query response: HTTP error:

I would like to also further filter by referencing if the article exists in another language (or the original article came from a language other than Armenian).

The end goal is to filter titles that are translations/transliterations of foreign words which been written using the Armenian script.

For example:

English | https://en.wikipedia.org/wiki/Sejong_the_Great

Korean | https://ko.wikipedia.org/wiki/%EC%A1%B0%EC%84%A0_%EC%84%B8%EC%A2%85

Armenian | https://hy.wikipedia.org/wiki/%D5%8D%D5%A5%D5%BB%D5%B8%D5%B6_%D5%84%D5%A5%D5%AE

One search result could be something like above which returns:

Sejong the Great

조선 세종

Սեջոն Մեծ

I am just learning how to use the Wikipedia API so any examples or help will be greatly appreciated.



Read more here: https://stackoverflow.com/questions/66270245/how-to-filter-a-list-of-article-titles-with-select-language-tags-using-wikipedia

Content Attribution

This content was originally published by NewbCake at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: