Hi,
I'm looking for help using the MediaWiki API to get some page view counts.
I'm able to get page view counts on some sites, such as the wikia muppet site: http://muppet.wikia.com//api.php?action=query&prop=info&titles=Beake...
But that's not working on en.wikipedia.org: http://en.wikipedia.org/w/api.php?action=query&titles=Health&prop=in...
That gives an error message that says: "Unrecognized value for parameter 'inprop': views".
A few questions: + Does that error message happen because Wikipedia is configured with $wgDisableCounters=true, or am I doing something wrong? + Is there some other API that I should look at for getting page counts? + Should I ping Henrik about maybe screen-scraping from his stats.grok.se page traffic stats pages?
Thanks, I appreciate any help you can give me. I'm doing this work as part of the Health Speaks effort to translate health information into more languages, and we want to get a sense of how useful the newly translated pages turn out to be.
Brian Skinner Health Speaks, Google.org http://sitescontent.google.com/healthspeaks/
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
On 9/14/2010 5:29 PM, Brian Skinner wrote:
Hi,
I'm able to get page view counts on some sites, such as the wikia muppet site: But that's not working on en.wikipedia.org:
Wikia is not Wikimedia (Wikimedia is the foundation that runs Wikipedia, Wikiquote, Wiktionary, etc)
That gives an error message that says: "Unrecognized value for parameter 'inprop': views". A few questions:
- Does that error message happen because Wikipedia is configured with
$wgDisableCounters=true, or am I doing something wrong?
Likely.
- Is there some other API that I should look at for getting page counts?
Not that I know of off hand.
- Should I ping Henrik about maybe screen-scraping from his
stats.grok.se page traffic stats pages?
Or use the raw stats linked to at the bottom.
2010/9/15 Q overlordq@gmail.com:
That gives an error message that says: "Unrecognized value for parameter 'inprop': views". A few questions:
- Does that error message happen because Wikipedia is configured with
$wgDisableCounters=true, or am I doing something wrong?
Likely.
inprop=views is not valid in core either. Looks like Wikia either hacked this in themselves or added it using an extension.
Roan Kattouw (Catrope)
- Should I ping Henrik about maybe screen-scraping from his
stats.grok.se page traffic stats pages?
http://stats.grok.se/about says:
*Q:* Where does the data come from? *A:* Domas Mituzas http://dammit.lt/ put together a system to gather access statistics from wikipedia's squid cluster and publishes it herehttp://dammit.lt/wikistats/. This site is a mere visualizer of that data.
On Wed, Sep 15, 2010 at 10:09 AM, Roan Kattouw roan.kattouw@gmail.comwrote:
2010/9/15 Q overlordq@gmail.com:
That gives an error message that says: "Unrecognized value for parameter 'inprop': views". A few questions:
- Does that error message happen because Wikipedia is configured with
$wgDisableCounters=true, or am I doing something wrong?
Likely.
inprop=views is not valid in core either. Looks like Wikia either hacked this in themselves or added it using an extension.
Roan Kattouw (Catrope)
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Thanks for all the info and pointers. I'll get in touch with Domas and Henrik.
:o) Brian
On Wed, Sep 15, 2010 at 8:08 AM, സാദിക്ക് ഖാലിദ് Sadik Khalid sadik.khalid@gmail.com wrote:
- Should I ping Henrik about maybe screen-scraping from his
stats.grok.se page traffic stats pages?
http://stats.grok.se/about says:
Q: Where does the data come from? A: Domas Mituzas put together a system to gather access statistics from wikipedia's squid cluster and publishes it here. This site is a mere visualizer of that data.
On Wed, Sep 15, 2010 at 10:09 AM, Roan Kattouw roan.kattouw@gmail.com wrote:
2010/9/15 Q overlordq@gmail.com:
That gives an error message that says: "Unrecognized value for parameter 'inprop': views". A few questions:
- Does that error message happen because Wikipedia is configured with
$wgDisableCounters=true, or am I doing something wrong?
Likely.
inprop=views is not valid in core either. Looks like Wikia either hacked this in themselves or added it using an extension.
Roan Kattouw (Catrope)
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
-- സ്നേഹാന്വേഷണങ്ങളോടെ, സാദിക്ക് ഖാലിദ്
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Brian Skinner wrote:
Thanks for all the info and pointers. I'll get in touch with Domas and Henrik.
:o) Brian
No need to bother domas. Just download from http://dammit.lt/wikistats/
Henrik may provide you already processed data, though.
Yes, the already processed data seems like it would be a better fit for my use case. I only need monthly summary data, and only for 3,000 pages, so I don't want to abuse the dammit.lt server by doing a monthly download of 720 files at about 60M each.
:o) Brian
On Wed, Sep 15, 2010 at 2:28 PM, Platonides platonides@gmail.com wrote:
Brian Skinner wrote:
Thanks for all the info and pointers. I'll get in touch with Domas and Henrik.
:o) Brian
No need to bother domas. Just download from http://dammit.lt/wikistats/
Henrik may provide you already processed data, though.
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
mediawiki-api@lists.wikimedia.org