Wikipedia is a free encyclopedia that everyone can edit.
We are collecting the number of Wikipedia articles (namespace=0
) in the 25 most popular wikipedias and Wikimedia Commons (namespace=6
):
en nl de sv fr it ru es pl war ceb ja vi pt zh uk ca no fi fa id cs ko hu ar commons
We would for example use en.wikipedia.org
as HOST
in the API URL
below. We are not counting the number of hits in the user or file namespaces.
ALM Name | wikipedia |
ALM Configuration | default |
ALM Core Attributes | url | ALM Other Attributes | language namespace |
Protocol | REST |
Format | JSON |
Rate-limiting | unknown |
Authentication | no |
Restriction by IP Address | no |
API URL | http://HOST/w/api.php?action=query&list=search&format=json&srsearch=\"DOI\"+OR+\"URL\"&srnamespace=NAMESPACE&srwhat=text&srinfo=totalhits&srprop=timestamp&srlimit=50&sroffset=%{sroffset}&continue= |
Example Response
{
"batchcomplete": "",
"query": {
"searchinfo": {
"totalhits": 8
},
"search": [
{
"ns": 6,
"title": "File:Cercopithecus lomamiensis Female.jpg",
"timestamp": "2013-08-29T21:27:22Z"
},
{
"ns": 6,
"title": "File:Cercopithecus lomamiensis Juv.jpg",
"timestamp": "2013-08-29T21:28:03Z"
},
{
"ns": 6,
"title": "File:Cercopithecus lomamiensis (Lesula).png",
"timestamp": "2013-08-29T21:25:48Z"
},
{
"ns": 6,
"title": "File:Cercopithecus lomamiensis MaleP.jpg",
"timestamp": "2013-08-29T21:29:00Z"
},
{
"ns": 6,
"title": "File:Cercopithecus lomamiensis Male.jpg",
"timestamp": "2013-08-29T21:28:22Z"
},
{
"ns": 6,
"title": "File:Journal.pone.0044271.g001.png",
"timestamp": "2013-08-29T21:14:47Z"
},
{
"ns": 6,
"title": "File:Cercopithecus hamlyni booms - journal.pone.0044271.s015.ogg",
"timestamp": "2015-02-24T14:34:48Z"
},
{
"ns": 6,
"title": "File:Cercopithecus lomamiensis booms - journal.pone.0044271.s016.ogg",
"timestamp": "2015-02-24T14:34:48Z"
}
]
}
}
Source Code
The source code is available here.