Talk:Analytics/Wikistats/Database API


API calls (prototyping phase) (either obsolete, or needs update to conform to current API call)

edit
action=analytics
&metric=[comscore_unique_visitors|comscore_reach_percentage]
&month_range=yyyy-mm;yyyy-mm
&filter=[ region_code=[aa,bb,..|*] | country_code=[aa,bb,..|*|top:10] | web_properties=top:10 ]
&data=[time_series,time_series_cumulative,percentage_growth_last_month,percentage_growth_last_year,percentage_growth_series]
[&lang=en]
&format=[csv,json,text,...]
&modality=[absolute|indexed]
.
action=analytics
&metric=squid_pageviews
&month_range=yyyy-mm;yyyy-mm
&filter=[ (none | ?) region_code=[aa,bb,..|*] | country_code=[aa,bb,..|*|top:10] ] | project_codes=[wb,wn,wk,,...|*] (| wiki_codes=wp:en,wp:de,..|top:10)]
&data=[time_series,percentage_growth_last_month,percentage_growth_last_year,percentage_growth_series]
&mobile=[Y|N|*]
&normalized=[Y|N]
[&lang=en]
&returntype=[csv,json,text,...]
&modality=[absolute|indexed]
.
action=analytics
&metric=[dump_article_count|dump_binary_count|dump_edits|dump_new_registered_editors|dump_active_editors_[5,100]]
&month_range=yyyy-mm;yyyy-mm
&filter=[project_codes=[wb,wn,wk,,...|*] | wiki_codes=wp:en,wp:de,..|top:10]
&data=[time_series(,percentage_growth_last_month,percentage_growth_last_year,percentage_growth_series(?))]
&normalized=[Y|N]
&edits=[[un]registered|*]
[&lang=en]
&returntype=[csv,json,text,...]
&modality=[absolute|indexed]

Filter select_regions

edit

comScore also has reach and unique visitor counts for many countries, in a different report. Their regional report only contains 3 major countries. We use data for India for current report card. Instead import all metrics per country?

Return to "Analytics/Wikistats/Database API" page.