2

Consider the following link. It says:

Showing results for andriyivs'kyi uzviz kyiv ukraine. Search instead for Andriyivski Uzviz Kyiv Ukraine.

But when I do the following request, nothing of the sort happens. Is this possible using Wikipedia API?

x-yuri
  • 16,722
  • 15
  • 114
  • 161
  • It because the right link to display a result is: `https://en.wikipedia.org/w/index.php?title=Special:Search&search=andriyivs%27kyi+uzviz+kyiv+ukraine&fulltext=Search&profile=default&searchToken=2wjyxzo1cecifnk596uz42yek` ...when you search based on the suggestion provided by Wikipedia `Andriyivski Uzviz Kyiv Ukraine` it browse to a blank page, because the page doesn't exist..... – Hackerman Nov 07 '16 at 18:22
  • Okay, I've fixed Wikipedia link. But still don't get your point. When I search as a user, I get some results. When using API I don't. – x-yuri Nov 07 '16 at 18:32
  • Additionaly, when I search for ["St. Michael's Cathedrale Kyiv Ukraine"](https://en.wikipedia.org/w/api.php?action=query&generator=search&gsrsearch=St.+Michael%27s+Cathedrale+Kyiv+Ukraine&gsrlimit=1&redirects=1&prop=extracts%7Cinfo%7Cpageprops%7Ccoordinates&exintro=1&explaintext=1&inprop=url&ppprop=disambiguation&coprop=type%7Cname%7Cdim%7Ccountry%7Cregion%7Cglobe&format=jsonfm), I get page "Ukrainian Catholic Eparchy of Saint Vladimir the Great of Paris", so it has nothing to do with whether the page exists, am I wrong? – x-yuri Nov 07 '16 at 18:32

1 Answers1

0

The search API normally returns that data, but it cannot return anything (other than a list of pages) when used as a generator. Compare your query with a simple action=query&list=search.

Tgr
  • 27,442
  • 12
  • 81
  • 118