2010/10/19 Yassine Benajiba <benajibayass...@gmail.com>: > http://en.wikipedia.org/w/api.php?action=query&titles=Albert%20Einstein&prop=info|categoryinfo|categories&format=xml > > how can I get the same info by using list=search. For instance, when I do: > http://en.wikipedia.org/w/api.php?action=query&list=search&srwhat=text&srsearch=Albert%20Einstein&prop=categories&format=xml&sroffset=0&srlimit=50 > I don't get any categories info > Use a generator:
http://en.wikipedia.org/w/api.php?action=query&generator=search&gsrwhat=text&gsrsearch=Albert%20Einstein&prop=categories&format=xml&gsroffset=0&gsrlimit=50&cllimit=50 This'll get 50 search results for Albert Einstein, then get the first 50 categories for each of those pages. Roan Kattouw (Catrope) _______________________________________________ Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api