Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wikipedia API: how to get the number of revisions of a page?

Anyone know how to get the number of revisions of a wikipedia page using mediawiki API? I have read this API documentation, but can't find the related API:
Revision API

like image 584
masu.mo Avatar asked Aug 21 '11 04:08

masu.mo


People also ask

Is there an API for Wikipedia?

What is the Wikipedia API? The Wikipedia API (official documentation) is supported by the MediaWiki's API and provide access to Wikipedia and other MediaWiki data without interacting with the user interface.

Does Wikipedia have a free API?

Wikipedia and other Wikimedia projects are free, collaborative repositories of knowledge, written and maintained by volunteers from around the world. The Wikimedia API gives you open access to add this free knowledge to your projects and apps.

How do I get an API page on Wikipedia?

There are three main methods for retrieving page content via the API: Get the contents of a page using the Revisions API (as wikitext). Get the contents of a page using the Parse API (as HTML or wikitext). Get plain text or limited HTML extracts of a page using the API of the TextExtracts extension.


1 Answers

The only possibility is to retrieve all revisions and count them. You might need to continue the query for that.

Bug 17993 is about including a count, but is still unsolved.

like image 91
Bergi Avatar answered Sep 30 '22 19:09

Bergi