Thread:Project:Support desk/Language based query issue

Hi,

I am trying to extract info from wiki for a given title in different languages, issue is it only works for some and returns no content for others.

For example, 1. https://en.wikipedia.org/w/api.php?action=query&prop=extracts&format=json&utf8=&exintro=&explaintext=&redirects=&titles=India (returns correct output) 2. https://hi.wikipedia.org/w/api.php?action=query&prop=extracts&format=json&utf8=&exintro=&explaintext=&redirects=&titles=India (returns correct output)

3. https://en.wikipedia.org/w/api.php?action=query&prop=extracts&format=json&utf8=&exintro=&explaintext=&redirects=&titles=Indian%20Institute%20of%20Science (return correct output) 4. https://hi.wikipedia.org/w/api.php?action=query&prop=extracts&format=json&utf8=&exintro=&explaintext=&redirects=&titles=Indian%20Institute%20of%20Science (this does not work)

The content for the last one (in hindi language) exists, as one can reach to the page https://hi.wikipedia.org/wiki/भारतीय_विज्ञान_संस्थान (after visiting english version https://en.wikipedia.org/wiki/Indian_Institute_of_Science)

How do i resolve the above issue (url 4)?

Regards, Ashok

Regards, Ashok