Reputation: 83
Can we fetch text from Wikipedia randomly? I do not care about the content of the text, the whole I need is to fetch random text whenever I query for the same.
The above API gives the result corresponding to the given title (Virat_Kohli), but I do not want to give any title to the API.
Upvotes: 0
Views: 208
Reputation: 1641
Yes, use a generator with random. Just ommit the title and append this to your query &generator=random&grnnamespace=0&grnlimit=1
Upvotes: 3