Jump to content
Toggle sidebar
Wiki Kaminari Click
Search
English
Personal tools
Create account
Log in
Navigation
Wiki Kaminari Click
Kaminari Click Home
Integration
General Settings
JS Check
Meta Redirect
Features
Additional Subs
Allowed Domains
Conversions
Download Clickworker
On Response
Ping-back URL
Proxy-check URL
Server to Server Ping
Target URL
Traffic-back URL
Statistics
Metrics and groups
Stat API
Tools
Special pages
Printable version
Export translations
Translate
English
Language statistics
Message group statistics
Export
More
Language statistics
Message group statistics
Export
Settings
Group
Additional subs
Allowed Domains
Behavior Analysis
Conversions
Download clickworker
General settings
Js check
Meta redirect
Metrics and groups
On Response
Ping back URL
Proxy check URL
S2S ping
Stat API
Target URL
Traffic back URL
Language
aa - Afar
ab - Abkhazian
abs - Ambonese Malay
ace - Achinese
ady - Adyghe
ady-cyrl - Adyghe (Cyrillic script)
aeb - Tunisian Arabic
aeb-arab - Tunisian Arabic (Arabic script)
aeb-latn - Tunisian Arabic (Latin script)
af - Afrikaans
ak - Akan
aln - Gheg Albanian
alt - Southern Altai
am - Amharic
ami - Amis
an - Aragonese
ang - Old English
anp - Angika
ar - Arabic
arc - Aramaic
arn - Mapuche
arq - Algerian Arabic
ary - Moroccan Arabic
arz - Egyptian Arabic
as - Assamese
ase - American Sign Language
ast - Asturian
atj - Atikamekw
av - Avaric
avk - Kotava
awa - Awadhi
ay - Aymara
az - Azerbaijani
azb - South Azerbaijani
ba - Bashkir
ban - Balinese
ban-bali - Balinese (Balinese script)
bar - Bavarian
bbc - Batak Toba
bbc-latn - Batak Toba (Latin script)
bcc - Southern Balochi
bci - Baoulé
bcl - Central Bikol
be - Belarusian
be-tarask - Belarusian (Taraškievica orthography)
bg - Bulgarian
bgn - Western Balochi
bh - Bhojpuri
bho - Bhojpuri
bi - Bislama
bjn - Banjar
blk - Pa'O
bm - Bambara
bn - Bangla
bo - Tibetan
bpy - Bishnupriya
bqi - Bakhtiari
br - Breton
brh - Brahui
bs - Bosnian
btm - Batak Mandailing
bto - Iriga Bicolano
bug - Buginese
bxr - Russia Buriat
ca - Catalan
cbk-zam - Chavacano
cdo - Min Dong Chinese
ce - Chechen
ceb - Cebuano
ch - Chamorro
cho - Choctaw
chr - Cherokee
chy - Cheyenne
ckb - Central Kurdish
co - Corsican
cps - Capiznon
cr - Cree
crh - Crimean Tatar
crh-cyrl - Crimean Tatar (Cyrillic script)
crh-latn - Crimean Tatar (Latin script)
cs - Czech
csb - Kashubian
cu - Church Slavic
cv - Chuvash
cy - Welsh
da - Danish
dag - Dagbani
de - German
de-at - Austrian German
de-ch - Swiss High German
de-formal - German (formal address)
din - Dinka
diq - Zazaki
dsb - Lower Sorbian
dtp - Central Dusun
dty - Doteli
dv - Divehi
dz - Dzongkha
ee - Ewe
egl - Emilian
el - Greek
eml - Emiliano-Romagnolo
en - English
en-ca - Canadian English
en-gb - British English
eo - Esperanto
es - Spanish
es-419 - Latin American Spanish
es-formal - Spanish (formal address)
et - Estonian
eu - Basque
ext - Extremaduran
fa - Persian
fat - Fanti
ff - Fula
fi - Finnish
fit - Tornedalen Finnish
fj - Fijian
fo - Faroese
fon - Fon
fr - French
frc - Cajun French
frp - Arpitan
frr - Northern Frisian
fur - Friulian
fy - Western Frisian
ga - Irish
gaa - Ga
gag - Gagauz
gan - Gan Chinese
gan-hans - Gan (Simplified)
gan-hant - Gan (Traditional)
gcr - Guianan Creole
gd - Scottish Gaelic
gl - Galician
gld - Nanai
glk - Gilaki
gn - Guarani
gom - Goan Konkani
gom-deva - Goan Konkani (Devanagari script)
gom-latn - Goan Konkani (Latin script)
gor - Gorontalo
got - Gothic
gpe - Ghanaian Pidgin
grc - Ancient Greek
gsw - Swiss German
gu - Gujarati
guc - Wayuu
gur - Frafra
guw - Gun
gv - Manx
ha - Hausa
hak - Hakka Chinese
haw - Hawaiian
he - Hebrew
hi - Hindi
hif - Fiji Hindi
hif-latn - Fiji Hindi (Latin script)
hil - Hiligaynon
ho - Hiri Motu
hr - Croatian
hrx - Hunsrik
hsb - Upper Sorbian
hsn - Xiang Chinese
ht - Haitian Creole
hu - Hungarian
hu-formal - Hungarian (formal address)
hy - Armenian
hyw - Western Armenian
hz - Herero
ia - Interlingua
id - Indonesian
ie - Interlingue
ig - Igbo
ii - Sichuan Yi
ik - Inupiaq
ike-cans - Eastern Canadian (Aboriginal syllabics)
ike-latn - Eastern Canadian (Latin script)
ilo - Iloko
inh - Ingush
io - Ido
is - Icelandic
it - Italian
iu - Inuktitut
ja - Japanese
jam - Jamaican Creole English
jbo - Lojban
jut - Jutish
jv - Javanese
ka - Georgian
kaa - Kara-Kalpak
kab - Kabyle
kbd - Kabardian
kbd-cyrl - Kabardian (Cyrillic script)
kbp - Kabiye
kcg - Tyap
kea - Kabuverdianu
kg - Kongo
khw - Khowar
ki - Kikuyu
kiu - Kirmanjki
kj - Kuanyama
kjp - Eastern Pwo
kk - Kazakh
kk-arab - Kazakh (Arabic script)
kk-cn - Kazakh (China)
kk-cyrl - Kazakh (Cyrillic script)
kk-kz - Kazakh (Kazakhstan)
kk-latn - Kazakh (Latin script)
kk-tr - Kazakh (Turkey)
kl - Kalaallisut
km - Khmer
kn - Kannada
ko - Korean
ko-kp - Korean (North Korea)
koi - Komi-Permyak
kr - Kanuri
krc - Karachay-Balkar
kri - Krio
krj - Kinaray-a
krl - Karelian
ks - Kashmiri
ks-arab - Kashmiri (Arabic script)
ks-deva - Kashmiri (Devanagari script)
ksh - Colognian
ksw - S'gaw Karen
ku - Kurdish
ku-arab - Kurdish (Arabic script)
ku-latn - Kurdish (Latin script)
kum - Kumyk
kv - Komi
kw - Cornish
ky - Kyrgyz
la - Latin
lad - Ladino
lb - Luxembourgish
lbe - Lak
lez - Lezghian
lfn - Lingua Franca Nova
lg - Ganda
li - Limburgish
lij - Ligurian
liv - Livonian
lki - Laki
lld - Ladin
lmo - Lombard
ln - Lingala
lo - Lao
loz - Lozi
lrc - Northern Luri
lt - Lithuanian
ltg - Latgalian
lus - Mizo
luz - Southern Luri
lv - Latvian
lzh - Literary Chinese
lzz - Laz
mad - Madurese
mai - Maithili
map-bms - Basa Banyumasan
mdf - Moksha
mg - Malagasy
mh - Marshallese
mhr - Eastern Mari
mi - Māori
min - Minangkabau
mk - Macedonian
ml - Malayalam
mn - Mongolian
mni - Manipuri
mnw - Mon
mo - Moldovan
mos - Mossi
mr - Marathi
mrh - Mara
mrj - Western Mari
ms - Malay
ms-arab - Malay (Jawi script)
mt - Maltese
mus - Muscogee
mwl - Mirandese
my - Burmese
myv - Erzya
mzn - Mazanderani
na - Nauru
nah - Nāhuatl
nan - Min Nan Chinese
nap - Neapolitan
nb - Norwegian Bokmål
nds - Low German
nds-nl - Low Saxon
ne - Nepali
new - Newari
ng - Ndonga
nia - Nias
niu - Niuean
nl - Dutch
nl-informal - Dutch (informal address)
nmz - Nawdm
nn - Norwegian Nynorsk
no - Norwegian
nod - Northern Thai
nov - Novial
nqo - N’Ko
nrm - Norman
nso - Northern Sotho
nv - Navajo
ny - Nyanja
nyn - Nyankole
nys - Nyungar
oc - Occitan
ojb - Northwestern Ojibwa
olo - Livvi-Karelian
om - Oromo
or - Odia
os - Ossetic
pa - Punjabi
pag - Pangasinan
pam - Pampanga
pap - Papiamento
pcd - Picard
pcm - Nigerian Pidgin
pdc - Pennsylvania German
pdt - Plautdietsch
pfl - Palatine German
pi - Pali
pih - Norfuk / Pitkern
pl - Polish
pms - Piedmontese
pnb - Western Punjabi
pnt - Pontic
prg - Prussian
ps - Pashto
pt - Portuguese
pt-br - Brazilian Portuguese
pwn - Paiwan
qqq - Message documentation
qu - Quechua
qug - Chimborazo Highland Quichua
rgn - Romagnol
rif - Riffian
rm - Romansh
rmc - Carpathian Romani
rmy - Vlax Romani
rn - Rundi
ro - Romanian
roa-tara - Tarantino
rsk - Pannonian Rusyn
ru - Russian
rue - Rusyn
rup - Aromanian
ruq - Megleno-Romanian
ruq-cyrl - Megleno-Romanian (Cyrillic script)
ruq-latn - Megleno-Romanian (Latin script)
rw - Kinyarwanda
ryu - Okinawan
sa - Sanskrit
sah - Yakut
sat - Santali
sc - Sardinian
scn - Sicilian
sco - Scots
sd - Sindhi
sdc - Sassarese Sardinian
sdh - Southern Kurdish
se - Northern Sami
se-fi - Northern Sami (Finland)
se-no - Northern Sami (Norway)
se-se - Northern Sami (Sweden)
sei - Seri
ses - Koyraboro Senni
sg - Sango
sgs - Samogitian
sh - Serbo-Croatian
shi - Tachelhit
shi-latn - Tachelhit (Latin script)
shi-tfng - Tachelhit (Tifinagh script)
shn - Shan
shy - Shawiya
shy-latn - Shawiya (Latin script)
si - Sinhala
simple - Simple English
sjd - Kildin Sami
sje - Pite Sami
sk - Slovak
skr - Saraiki
skr-arab - Saraiki (Arabic script)
sl - Slovenian
sli - Lower Silesian
sm - Samoan
sma - Southern Sami
smn - Inari Sami
sms - Skolt Sami
sn - Shona
so - Somali
sq - Albanian
sr - Serbian
sr-ec - Serbian (Cyrillic script)
sr-el - Serbian (Latin script)
srn - Sranan Tongo
sro - Campidanese Sardinian
ss - Swati
st - Southern Sotho
stq - Saterland Frisian
sty - Siberian Tatar
su - Sundanese
sv - Swedish
sw - Swahili
syl - Sylheti
szl - Silesian
szy - Sakizaya
ta - Tamil
tay - Tayal
tcy - Tulu
tdd - Tai Nuea
te - Telugu
tet - Tetum
tg - Tajik
tg-cyrl - Tajik (Cyrillic script)
tg-latn - Tajik (Latin script)
th - Thai
ti - Tigrinya
tk - Turkmen
tl - Tagalog
tly - Talysh
tly-cyrl - Talysh (Cyrillic script)
tn - Tswana
to - Tongan
tpi - Tok Pisin
tr - Turkish
tru - Turoyo
trv - Taroko
ts - Tsonga
tt - Tatar
tt-cyrl - Tatar (Cyrillic script)
tt-latn - Tatar (Latin script)
tum - Tumbuka
tw - Twi
ty - Tahitian
tyv - Tuvinian
tzm - Central Atlas Tamazight
udm - Udmurt
ug - Uyghur
ug-arab - Uyghur (Arabic script)
ug-latn - Uyghur (Latin script)
uk - Ukrainian
ur - Urdu
uz - Uzbek
uz-cyrl - Uzbek (Cyrillic script)
uz-latn - Uzbek (Latin script)
ve - Venda
vec - Venetian
vep - Veps
vi - Vietnamese
vls - West Flemish
vmf - Main-Franconian
vmw - Makhuwa
vo - Volapük
vot - Votic
vro - Võro
wa - Walloon
war - Waray
wls - Wallisian
wo - Wolof
wuu - Wu Chinese
xal - Kalmyk
xh - Xhosa
xmf - Mingrelian
xsy - Saisiyat
yi - Yiddish
yo - Yoruba
yrl - Nheengatu
yue - Cantonese
za - Zhuang
zea - Zeelandic
zgh - Standard Moroccan Tamazight
zh - Chinese
zh-cn - Chinese (China)
zh-hans - Simplified Chinese
zh-hant - Traditional Chinese
zh-hk - Chinese (Hong Kong)
zh-mo - Chinese (Macau)
zh-my - Chinese (Malaysia)
zh-sg - Chinese (Singapore)
zh-tw - Chinese (Taiwan)
zu - Zulu
Format
Export for off-line translation
Export in native format
Export in CSV format
Fetch
{{DISPLAYTITLE:Stat API}}<languages/> '''[https://kaminari.click/user How to obtain the token]''' '''[https://kaminari.click/api Detailed description of the requests and responses for each endpoint].''' === '''Endpoint list:''' === {| class="wikitable" ! Method !! Path !! Description |- | OPTIONS || /api/stat/get || Returns all possible groupings and metrics grouped by categories |- | POST || /api/stat/filter || Obtaining data for filter |- | POST || /api/stat/data || Obtaining data for the table |} == How to get all possible groupings and metrics == To obtain all possible groupings and metrics grouped by categories use this URL: {| class="wikitable" ! Method !! Path |- | OPTIONS || /api/stat/get |} '''If you want to better understand what our metrics mean, visit page [[Metrics_and_groups|Metrics and groups]].''' === Request === ''No parameters'' === Response === <div class="mw-collapsible mw-collapsed" style="width:80%; overflow:auto;"> Response example <pre class="mw-collapsible-content"> { "success":true, "code":200, "msg":[], "data":{ "groups":{ "time":[ { "id":"time_hour", "icon":"date", "filterType":"range" }, { "id":"time_day", "icon":"date", "filterType":"range" }, { "id":"time_week", "icon":"date", "filterType":"range" }, { "id":"time_month", "icon":"date", "filterType":"range" }, { "id":"time_dateTime", "icon":"date", "filterType":"list", "filterSync":true } ], "sub":[ { "id":"sub_integration", "icon":"text", "filterType":"list", "filterSync":false }, { "id":"sub_botType", "icon":"text", "filterType":"list", "filterSync":false }, { "id":"sub_cnvId", "icon":"text", "filterType":"list", "filterSync":true }, { "id":"sub_clickId", "icon":"number", "filterType":"list", "filterSync":true }, { "id":"sub_referer", "icon":"text", "filterType":"list", "filterSync":true, "tooltip":true }, { "id":"sub_1", "icon":"text", "filterType":"list", "filterSync":true }, { "id":"sub_2", "icon":"text", "filterType":"list", "filterSync":true }, { "id":"sub_3", "icon":"text", "filterType":"list", "filterSync":true }, { "id":"sub_4", "icon":"text", "filterType":"list", "filterSync":true }, { "id":"sub_5", "icon":"text", "filterType":"list", "filterSync":true }, { "id":"sub_6", "icon":"text", "filterType":"list", "filterSync":true }, { "id":"sub_7", "icon":"text", "filterType":"list", "filterSync":true } ], "geo":[ { "id":"geo_language", "icon":"text", "filterType":"list", "filterSync":true }, { "id":"geo_timezone", "icon":"text", "filterType":"list", "filterSync":false }, { "id":"geo_country", "icon":"text", "filterType":"list", "filterSync":false }, { "id":"geo_city", "icon":"text", "filterType":"list", "filterSync":true }, { "id":"geo_provider", "icon":"text", "filterType":"list", "filterSync":true }, { "id":"geo_ip", "icon":"text", "filterType":"list", "filterSync":true } ], "device":[ { "id":"device_browser", "icon":"text", "filterType":"list", "filterSync":true, "tooltip":true }, { "id":"device_browserEngine", "icon":"text", "filterType":"list", "filterSync":true, "tooltip":true }, { "id":"device_os", "icon":"text", "filterType":"list", "filterSync":true, "tooltip":true }, { "id":"device_realOs", "icon":"text", "filterType":"list", "filterSync":false, "tooltip":true }, { "id":"device_device", "icon":"text", "filterType":"list", "filterSync":true, "tooltip":true }, { "id":"device_type", "icon":"text", "filterType":"list", "filterSync":false, "tooltip":true }, { "id":"device_connectionType", "icon":"text", "filterType":"list", "filterSync":false }, { "id":"device_useragent", "icon":"text", "filterType":"list", "filterSync":true } ], "screen":[ { "id":"screen_width", "icon":"number", "filterType":"range", "tooltip":true }, { "id":"screen_height", "icon":"number", "filterType":"range", "tooltip":true }, { "id":"screen_orientation", "icon":"text", "filterType":"list", "filterSync":false }, { "id":"screen_pixelDensity", "icon":"number", "filterType":"list", "filterSync":true, "tooltip":true } ] }, "metrics":{ "summary":[ { "id":"summary_totalVisits", "icon":"number", "filterType":"range" }, { "id":"summary_validVisits", "icon":"number", "filterType":"range", "filterSync":false, "tooltip":true }, { "id":"summary_validVisitsPc", "icon":"number", "filterType":"range", "filterSync":false }, { "id":"summary_techLosses", "icon":"number", "filterType":"range", "filterSync":false, "tooltip":true }, { "id":"summary_techLossesPc", "icon":"number", "filterType":"range", "filterSync":false }, { "id":"summary_uniqUsers", "icon":"number", "filterType":"range", "tooltip":true }, { "id":"summary_uniqUsersPc", "icon":"number", "filterType":"range" }, { "id":"summary_conversions", "icon":"number", "filterType":"binary", "filterSync":false, "tooltip":true }, { "id":"summary_conversionsPc", "icon":"number", "filterType":"range", "filterSync":false } ], "bots":[ { "id":"bots_total", "icon":"number", "filterType":"range", "filterSync":false, "tooltip":true }, { "id":"bots_totalPc", "icon":"number", "filterType":"range", "filterSync":false }, { "id":"bots_crawler", "icon":"number", "filterType":"binary", "filterSync":false, "tooltip":true }, { "id":"bots_crawlerPc", "icon":"number", "filterType":"range", "filterSync":false }, { "id":"bots_spoofing", "icon":"number", "filterType":"binary", "filterSync":false, "tooltip":true }, { "id":"bots_spoofingPc", "icon":"number", "filterType":"range", "filterSync":false }, { "id":"bots_automated", "icon":"number", "filterType":"binary", "filterSync":false, "tooltip":true }, { "id":"bots_automatedPc", "icon":"number", "filterType":"range", "filterSync":false }, { "id":"bots_iFrame", "icon":"number", "filterType":"binary", "filterSync":false, "tooltip":true }, { "id":"bots_iFramePc", "icon":"number", "filterType":"range", "filterSync":false }, { "id":"bots_badReputationIp", "icon":"number", "filterType":"binary", "filterSync":false, "tooltip":true }, { "id":"bots_badReputationIpPc", "icon":"number", "filterType":"range", "filterSync":false }, { "id":"bots_blocked", "icon":"number", "filterType":"binary", "filterSync":false, "tooltip":true }, { "id":"bots_blockedPc", "icon":"number", "filterType":"range", "filterSync":false } ], "lowQuality":[ { "id":"lowQuality_total", "icon":"number", "filterType":"binary", "filterSync":false, "tooltip":true }, { "id":"lowQuality_totalPc", "icon":"number", "filterType":"range", "filterSync":false }, { "id":"lowQuality_proxy", "icon":"number", "filterType":"binary", "filterSync":false, "tooltip":true }, { "id":"lowQuality_proxyPc", "icon":"number", "filterType":"range", "filterSync":false }, { "id":"lowQuality_spoofing", "icon":"number", "filterType":"binary", "filterSync":false, "tooltip":true }, { "id":"lowQuality_spoofingPc", "icon":"number", "filterType":"range", "filterSync":false }, { "id":"lowQuality_automated", "icon":"number", "filterType":"binary", "filterSync":false, "tooltip":true }, { "id":"lowQuality_automatedPc", "icon":"number", "filterType":"range", "filterSync":false }, { "id":"lowQuality_trafficCheats", "icon":"number", "filterType":"binary", "filterSync":false, "tooltip":true }, { "id":"lowQuality_trafficCheatsPc", "icon":"number", "filterType":"range", "filterSync":false } ], "feature":[ { "id":"feature_adBlock", "icon":"number", "filterType":"list", "filterSync":false, "tooltip":true }, { "id":"feature_adBlockPc", "icon":"number", "filterType":"range" }, { "id":"feature_isMobile", "icon":"number", "filterType":"binary", "tooltip":true }, { "id":"feature_isMobilePc", "icon":"number", "filterType":"range" }, { "id":"feature_webView", "icon":"number", "filterType":"binary", "tooltip":true }, { "id":"feature_webViewPc", "icon":"number", "filterType":"range" }, { "id":"feature_iFrame", "icon":"number", "filterType":"binary", "filterSync":false, "tooltip":true }, { "id":"feature_iFramePc", "icon":"number", "filterType":"range", "filterSync":false }, { "id":"feature_pushNotifications", "icon":"number", "filterType":"binary", "filterSync":false, "tooltip":true }, { "id":"feature_pushNotificationsPc", "icon":"number", "filterType":"range", "filterSync":false } ], "beAn":[ { "id":"beAn_pageVisibility", "icon":"number", "filterType":"list", "filterSync":false, "tooltip":true, "disabled":false }, { "id":"beAn_pageVisibilityPc", "icon":"number", "filterType":"range", "filterSync":false, "disabled":false }, { "id":"beAn_pageActivity", "icon":"number", "filterType":"list", "filterSync":false, "tooltip":true, "disabled":false }, { "id":"beAn_pageActivityPc", "icon":"number", "filterType":"range", "filterSync":false, "disabled":false }, { "id":"beAn_pageAcceptance", "icon":"number", "filterType":"list", "filterSync":false, "tooltip":true, "disabled":false }, { "id":"beAn_pageAcceptancePc", "icon":"number", "filterType":"range", "filterSync":false, "disabled":false } ] } } } </pre> </div> ==== API ==== {| class="wikitable" ! Key !! Type !! Description |- | success || Boolean || Was the request successful or it failed |- | code || Number || Response status code |- |msg || [String] || Error message |- | colspan="3" |data |- |data.groups |{ groupTitle: ['''<item>''', …] } |See bellow description '''<item>''' |- |data.metrics |{ metricTitle: ['''<item>''', …] } |See bellow description '''<item>''' |} {| class="wikitable mw-collapsible" |+Description '''<item>''' !Key !Type !Description |- |id |String |<groupTitle or metricTitle> + underscore + <metric or group's name> (groupTitle_id, for example: lowQuality_total, feature_adBlock) |- |icon |<code>date</code><nowiki> | </nowiki><code>text</code><nowiki> | </nowiki><code>number</code> |Type of content served |- |filterType |<code>range</code><nowiki> | </nowiki><code>list</code><nowiki> | </nowiki><code>binary</code> |See bellow description '''<filters>''' |- |filterSync |Boolean * |<code>list</code> with server-side search |} == How to get all possible values for filter == To obtain values use this URL: {| class="wikitable" ! Method !! Path |- | POST || /api/stat/filter |} === Request === <div class="mw-collapsible" style="width:80%; overflow:auto;"> Request example <pre class="mw-collapsible-content"> { "id":"geo_language", "searchQuery":"en", "dateFrom":"2024-04-10", "dateTo":"2024-04-10" } </pre> </div> ==== API ==== {| class="wikitable" !Key !Type !Description |- |id |String |Filter name |- |searchQuery |String |Search query |- |dateFrom |String |What date should we start searching? Date in the format Y-m-d. |- |dateTo |String |Until what date should we continue searching?? Date in the format Y-m-d. |} === Response === <div class="mw-collapsible mw-collapsed" style="width:80%; overflow:auto;"> Response example <pre class="mw-collapsible-content"> { "success":true, "code":200, "msg":[], "data":{ "items":[ { "id":"bd", "label":"Bengali" }, { "id":"bez", "label":"Bena (Tanzania)" }, { "id":"bn", "label":"Bengali" }, { "id":"ce", "label":"Chechen" }, { "id":"ckb", "label":"Central Kurdish" }, { "id":"en", "label":"English" }, { "id":"fr", "label":"French" }, { "id":"hy", "label":"Armenian" }, { "id":"kam", "label":"Kamba (Kenya)" }, { "id":"kln", "label":"Kalenjin" }, { "id":"km", "label":"Central Khmer" }, { "id":"luo", "label":"Luo (Kenya and Tanzania)" }, { "id":"mfe", "label":"Morisyen" }, { "id":"seh", "label":"Sena" }, { "id":"ses", "label":"Koyraboro Senni Songhai" }, { "id":"sl", "label":"Slovenian" }, { "id":"tk", "label":"Turkmen" }, { "id":"tzm", "label":"Central Atlas Tamazight" }, { "id":"ve", "label":"Venda" }, { "id":"vec", "label":"Venetian" }, { "id":"yav", "label":"Yangben" }, { "id":"yrl", "label":"Nhengatu" } ] } } </pre> </div> ==== API ==== {| class="wikitable" !Key !Type !Description |- | success || Boolean || Was the request successful or it failed |- | code || Number || Response status code |- |msg || [String] || Error message |- | colspan="3" |data |- |data.items |[{ id: Number, label: String }] |{ id: 1, label: "Param A" } |} == How to get full statistic data == To obtain such data use this URL: {| class="wikitable" ! Method !! Path |- | POST || /api/stat/data |} === Request === <div class="mw-collapsible mw-collapsed" style="width:80%; overflow:auto;"> Request example <pre class="mw-collapsible-content"> { "id":null, "name":null, "perPage":50, "groups":[ "time_day", "geo_country" ], "metrics":[ "summary_totalVisits", "bots_total", "bots_totalPc" ], "filters":{ "filters":[ { "id":"geo_language", "type":"list", "include":["sl", "hr", "sh", "bs", "sr"], "exclude":[] } ], "period":"today", "timezone":-3 }, "compare":null } </pre> </div> ==== API ==== {| class="wikitable" !Key !Type !Description |- |id |String |Optional parameter |- |name |String |Optional parameter |- |perPage |Number |Number of lines shown simultaneously. Default value is 50. |- |page |Number |Current page number. Default value is 1. |- |groups |[String] |Groups you would like to see in statistics. See bellow allowed values in '''<groups>''' |- |metrics |[String] |Metrics you would like to see in statistics. See bellow allowed values in '''<metrics>''' <div class="mw-translate-fuzzy"> |- | colspan="3" |filters |- |filters.dateFrom |String |Date in the format Y-m-d. If you specify a period, dateFrom will not work. The period has high priority. |- |filters.dateTo |String |Date in the format Y-m-d. If you specify a period, dateTo will not work. The period has high priority. |- |filters.period |<nowiki>today | yesterday | currentWeek | 7days| month | null</nowiki> |If you specify a period, dateFrom and dateTo will not work. The period has high priority |- |filters.timezone |Number |From -12 to +12. Default value is 0, which means that the data will be output in UTC. |- |filters.filters |['''<filters>'''] |See bellow description '''<filters>''' |- |compare |'''<compare>''' |See bellow description '''<compare>''' |} </div> {| class="wikitable" |+Description <groups> !API name !Name in UI !Comment |- |time_hour |Hour | |- |time_day |Day | |- |time_week |Week | |- |time_month |Month | |- |time_dateTime |Date time | |- |sub_integration |Integration | |- |sub_botType |Bot or fraud type | |- |sub_referer |Referer | |- |sub_1 |Sub1 | |- |sub_2 |Sub2 | |- |sub_3 |Sub3 | |- |sub_4 |Sub4 | |- |sub_5 |Sub5 | |- |sub_6 |Sub6 | |- |sub_7 |Sub7 | |- |sub_8 |Sub8 |This group is available only if feature [[Additional_subs|Additional subs]] is on |- |sub_9 |Sub9 |This group is available only if feature [[Additional_subs|Additional subs]] is on |- |sub_10 |Sub10 |This group is available only if feature [[Additional_subs|Additional subs]] is on |- |sub_conversionType |Conversion status |This group is available only if feature [[Conversions|Conversions]] is on |- |sub_cnvId |Conversion ID |This group is available only if feature [[Conversions|Conversions]] is on |- |geo_language |Browsers language | |- |geo_timezonename |Browsers time zone | |- |geo_country |Country from IP | |- |geo_city |City from IP | |- |geo_timezone |Time zone from IP | |- |geo_provider |Provider from IP | |- |geo_ip |Truncated IP |We store IP without the last octet |- |device_browserEngine |Real browser engine | |- |device_realOs |Real OS | |- |device_connectionType |Connection type | |- |device_browser |Browser from UA | |- |device_os |OS from UA | |- |device_device |Device from UA | |- |device_type |Device type from UA | |- |device_useragent |User agent | |- |screen_width |Screen width | |- |screen_height |Screen height | |- |screen_orientation |Ccreen orientation | |- |screen_pixelDensity |Pixel density | |} {| class="wikitable" |+Description <metrics> !API name !Name in UI !Comment |- |summary_totalVisits |Hits | |- |summary_validVisits |Good | |- |summary_techLosses |Tech. losses | |- |summary_uniqUsers |Unique users | |- |summary_validVisitsPc |Good, % | |- |summary_techLossesPc |Tech. losses, % | |- |summary_uniqUsersPc |Unique users, % | |- |bots_total |IVT total |Bots and fraud total |- |bots_crawler |Crawler bots | |- |bots_spoofing |Spoofing bots | |- |bots_automated |Automated bots | |- |bots_iFrame |Incorrect requests | |- |bots_badReputationIp |Bad reputation IP bots | |- |bots_blocked |Blocked hits | |- |bots_totalPc |IVT total, % | |- |bots_crawlerPc |Crawler bots, % | |- |bots_spoofingPc |Spoofing bots, % | |- |bots_automatedPc |Automated bots, % | |- |bots_iFramePc |Incorrect requests, % | |- |bots_badReputationIpPc |Bad reputation IP bots, % | |- |bots_blockedPc |Blocked hits, % | |- |lowQuality_total |SV total |Suspicious visits total |- |lowQuality_proxy |Proxy | |- |lowQuality_spoofing |Spoofing SV |Suspicious visits, that may be spoofing |- |lowQuality_automated |Automated SV |Suspicious visits, that may be automated bots |- |lowQuality_trafficCheats |Fraud SV |Other types of suspicious visits |- |lowQuality_totalPc |SV total, % | |- |lowQuality_proxyPc |Proxy, % | |- |lowQuality_spoofingPc |Spoofing SV, % | |- |lowQuality_automatedPc |Automated SV, % | |- |lowQuality_trafficCheatsPc |Fraud SV, % | |- |conversions_total |Conversions |This metric is available only if feature [[Conversions|Conversions]] is on |- |conversions_l1 |L1 |This metric is available only if feature [[Conversions|Conversions]] is on |- |conversions_l2 |L2 |This metric is available only if feature [[Conversions|Conversions]] is on |- |conversions_l3 |L3 |This metric is available only if feature [[Conversions|Conversions]] is on |- |conversions_l4 |L4 |This metric is available only if feature [[Conversions|Conversions]] is on |- |conversions_totalPc |Conversions, % |This metric is available only if feature [[Conversions|Conversions]] is on |- |conversions_l1Pc |L1, % |This metric is available only if feature [[Conversions|Conversions]] is on |- |conversions_l2Pc |L2, % |This metric is available only if feature [[Conversions|Conversions]] is on |- |conversions_l3Pc |L3, % |This metric is available only if feature [[Conversions|Conversions]] is on |- |conversions_l4Pc |L4, % |This metric is available only if feature [[Conversions|Conversions]] is on |- |feature_adBlock |AdBlock | |- |feature_isMobile |Is mobile | |- |feature_webView |WebView | |- |feature_iFrame |IFrame | |- |feature_pushNotifications |Push notifications | |- |feature_adBlockPc |AdBlock, % | |- |feature_isMobilePc |Is mobile, % | |- |feature_webViewPc |WebView, % | |- |feature_iFramePc |IFrame, % | |- |feature_pushNotificationsPc |Push notifications, % | |- |beAn_pageVisibility |Visible page |This metric is available only if feature [[Behavioral_analysis|Behavioral analysis]] is on |- |beAn_pageActivity |Active page |This metric is available only if feature [[Behavioral_analysis|Behavioral analysis]] is on |- |beAn_pageAcceptance |Accepted page |This metric is available only if feature [[Behavioral_analysis|Behavioral analysis]] is on |- |beAn_pageVisibilityPc |Visible page, % |This metric is available only if feature [[Behavioral_analysis|Behavioral analysis]] is on |- |beAn_pageActivityPc |Active page, % |This metric is available only if feature [[Behavioral_analysis|Behavioral analysis]] is on |- |beAn_pageAcceptancePc |Accepted page, % |This metric is available only if feature [[Behavioral_analysis|Behavioral analysis]] is on |} {| class="wikitable mw-collapsible" |+Description <filters> !Key !Type !Description |- |id |String |Column by which you would like to filter. See above allowed values in '''<groups>''' and '''<metrics>''' |- |type |<code>range</code><nowiki> | </nowiki><code>list</code><nowiki> | </nowiki><code>binary</code> | |- |range |{from: Number, to: Number} |For filters with type <code>range</code> |- |include |[Any] |For filters with type <code>list</code> and <code>binary</code>. Show only records with included values. |- |exclude |[Any] |For filters with type <code>list</code> and <code>binary</code>. Show only records without included values. |} ===== Filters examples ===== '''Type <code>list</code>, include in on.''' Search the visits only from Cambodia ("KH") or China ("CN"). <pre> { ... "filters":{ "filters":[ { "id":"geo_country", "type":"list", "include":["KH","CN"], "exclude":[] } ], "period":"today", "timezone":-3 } } </pre> '''Type <code>list</code>, exclude in on.''' Search the visits from any country except Cambodia ("KH") andr China ("CN"). <pre> { ... "filters":{ "filters":[ { "id":"geo_country", "type":"list", "include":[], "exclude":["KH","CN"] } ], "period":"today", "timezone":-3 } } </pre> '''Type <code>binary</code>, include is on.''' Search for visits made only by crawlers (i.e. search engine and social network bots). <pre> { ... "filters":{ "filters":[ { "id":"bots_crawler", "type":"binary", "include":[1], "exclude":[] } ], "period":"today", "timezone":-3 } } </pre> '''Type <code>binary</code>, exclude is on.''' Do not show visits made by crawlers. <pre> { ... "filters":{ "filters":[ { "id":"bots_crawler", "type":"binary", "include":[], "exclude":[1] } ], "period":"today", "timezone":-3 } } </pre> '''Type <code>range</code>.''' Search for slices, where total amount of bot visits is between 1 000 and 10 000 hits. <pre> { ... "filters":{ "filters":[ { "id":"bots_total", "type":"range", "range":{ "from":1000, "to":10000 } } ], "period":"today", "timezone":-3 } } </pre> Type <code>range</code>. Search for slices, where more than 50% of visits made from mobile devices. <pre> { ... "filters":{ "filters":[ { "id":"feature_isMobilePc", "type":"range", "range":{ "from":50, "to":null } } ], "period":"today", "timezone":-3 } } </pre> Type <code>range</code>. Search for visits made before 10 a.m. UTC-3. <pre> { ... "filters":{ "filters":[ { "id":"time_hour", "type":"range", "range":{ "from":null, "to":10 } } ], "period":"today", "timezone":-3 } } </pre> {| class="wikitable mw-collapsible" |+Description <compare> !Key !Type !Description |- |dateFrom |String |Date in the format Y-m-d |- |dateTo |String |Date in the format Y-m-d |- |mode |<nowiki>compare_value | diff | percent</nowiki> | |- |sort |Boolean | |} === Response === <div class="mw-collapsible mw-collapsed" style="width:80%; overflow:auto;"> Response example <pre class="mw-collapsible-content"> { "success":true, "code":200, "msg":[], "data":{ "rows":[ { "id":0, "time_day":{ "rawValue":"10.04.2024", "value":"10.04.2024", "diff":null, "percent":null, "compare_value":null }, "geo_country":{ "rawValue":"AE", "value":"United Arab Emirates ", "diff":null, "percent":null, "compare_value":null }, "summary_totalVisits":{ "rawValue":"1", "value":"1", "diff":null, "percent":null, "compare_value":null }, "bots_total":{ "rawValue":"0", "value":"0", "diff":null, "percent":null, "compare_value":null }, "bots_totalPc":{ "rawValue":0, "value":"0", "diff":null, "percent":null, "compare_value":null } }, { "id":1, "time_day":{ "rawValue":"10.04.2024", "value":"10.04.2024", "diff":null, "percent":null, "compare_value":null }, "geo_country":{ "rawValue":"AT", "value":"Austria", "diff":null, "percent":null, "compare_value":null }, "summary_totalVisits":{ "rawValue":"27", "value":"27", "diff":null, "percent":null, "compare_value":null }, "bots_total":{ "rawValue":"0", "value":"0", "diff":null, "percent":null, "compare_value":null }, "bots_totalPc":{ "rawValue":0, "value":"0", "diff":null, "percent":null, "compare_value":null } }, { "id":2, "time_day":{ "rawValue":"10.04.2024", "value":"10.04.2024", "diff":null, "percent":null, "compare_value":null }, "geo_country":{ "rawValue":"BA", "value":"Bosnia and Herzegovina", "diff":null, "percent":null, "compare_value":null }, "summary_totalVisits":{ "rawValue":"349", "value":"349", "diff":null, "percent":null, "compare_value":null }, "bots_total":{ "rawValue":"3", "value":"3", "diff":null, "percent":null, "compare_value":null }, "bots_totalPc":{ "rawValue":0.86, "value":"0.86", "diff":null, "percent":null, "compare_value":null } }, { "id":3, "time_day":{ "rawValue":"10.04.2024", "value":"10.04.2024", "diff":null, "percent":null, "compare_value":null }, "geo_country":{ "rawValue":"BD", "value":"Bangladesh", "diff":null, "percent":null, "compare_value":null }, "summary_totalVisits":{ "rawValue":"1", "value":"1", "diff":null, "percent":null, "compare_value":null }, "bots_total":{ "rawValue":"0", "value":"0", "diff":null, "percent":null, "compare_value":null }, "bots_totalPc":{ "rawValue":0, "value":"0", "diff":null, "percent":null, "compare_value":null } }, { "id":4, "time_day":{ "rawValue":"10.04.2024", "value":"10.04.2024", "diff":null, "percent":null, "compare_value":null }, "geo_country":{ "rawValue":"BG", "value":"Bulgaria", "diff":null, "percent":null, "compare_value":null }, "summary_totalVisits":{ "rawValue":"3", "value":"3", "diff":null, "percent":null, "compare_value":null }, "bots_total":{ "rawValue":"0", "value":"0", "diff":null, "percent":null, "compare_value":null }, "bots_totalPc":{ "rawValue":0, "value":"0", "diff":null, "percent":null, "compare_value":null } }, { "id":5, "time_day":{ "rawValue":"10.04.2024", "value":"10.04.2024", "diff":null, "percent":null, "compare_value":null }, "geo_country":{ "rawValue":"BR", "value":"Brazil", "diff":null, "percent":null, "compare_value":null }, "summary_totalVisits":{ "rawValue":"1", "value":"1", "diff":null, "percent":null, "compare_value":null }, "bots_total":{ "rawValue":"0", "value":"0", "diff":null, "percent":null, "compare_value":null }, "bots_totalPc":{ "rawValue":0, "value":"0", "diff":null, "percent":null, "compare_value":null } }, { "id":6, "time_day":{ "rawValue":"10.04.2024", "value":"10.04.2024", "diff":null, "percent":null, "compare_value":null }, "geo_country":{ "rawValue":"CA", "value":"Canada", "diff":null, "percent":null, "compare_value":null }, "summary_totalVisits":{ "rawValue":"1", "value":"1", "diff":null, "percent":null, "compare_value":null }, "bots_total":{ "rawValue":"0", "value":"0", "diff":null, "percent":null, "compare_value":null }, "bots_totalPc":{ "rawValue":0, "value":"0", "diff":null, "percent":null, "compare_value":null } }, { "id":7, "time_day":{ "rawValue":"10.04.2024", "value":"10.04.2024", "diff":null, "percent":null, "compare_value":null }, "geo_country":{ "rawValue":"CH", "value":"Switzerland", "diff":null, "percent":null, "compare_value":null }, "summary_totalVisits":{ "rawValue":"4", "value":"4", "diff":null, "percent":null, "compare_value":null }, "bots_total":{ "rawValue":"0", "value":"0", "diff":null, "percent":null, "compare_value":null }, "bots_totalPc":{ "rawValue":0, "value":"0", "diff":null, "percent":null, "compare_value":null } }, { "id":8, "time_day":{ "rawValue":"10.04.2024", "value":"10.04.2024", "diff":null, "percent":null, "compare_value":null }, "geo_country":{ "rawValue":"DE", "value":"Germany", "diff":null, "percent":null, "compare_value":null }, "summary_totalVisits":{ "rawValue":"110", "value":"110", "diff":null, "percent":null, "compare_value":null }, "bots_total":{ "rawValue":"0", "value":"0", "diff":null, "percent":null, "compare_value":null }, "bots_totalPc":{ "rawValue":0, "value":"0", "diff":null, "percent":null, "compare_value":null } }, { "id":9, "time_day":{ "rawValue":"10.04.2024", "value":"10.04.2024", "diff":null, "percent":null, "compare_value":null }, "geo_country":{ "rawValue":"HR", "value":"Croatia", "diff":null, "percent":null, "compare_value":null }, "summary_totalVisits":{ "rawValue":"274", "value":"274", "diff":null, "percent":null, "compare_value":null }, "bots_total":{ "rawValue":"4", "value":"4", "diff":null, "percent":null, "compare_value":null }, "bots_totalPc":{ "rawValue":1.46, "value":"1.46", "diff":null, "percent":null, "compare_value":null } }, { "id":10, "time_day":{ "rawValue":"10.04.2024", "value":"10.04.2024", "diff":null, "percent":null, "compare_value":null }, "geo_country":{ "rawValue":"HU", "value":"Hungary", "diff":null, "percent":null, "compare_value":null }, "summary_totalVisits":{ "rawValue":"1", "value":"1", "diff":null, "percent":null, "compare_value":null }, "bots_total":{ "rawValue":"0", "value":"0", "diff":null, "percent":null, "compare_value":null }, "bots_totalPc":{ "rawValue":0, "value":"0", "diff":null, "percent":null, "compare_value":null } }, { "id":11, "time_day":{ "rawValue":"10.04.2024", "value":"10.04.2024", "diff":null, "percent":null, "compare_value":null }, "geo_country":{ "rawValue":"IN", "value":"India", "diff":null, "percent":null, "compare_value":null }, "summary_totalVisits":{ "rawValue":"2", "value":"2", "diff":null, "percent":null, "compare_value":null }, "bots_total":{ "rawValue":"0", "value":"0", "diff":null, "percent":null, "compare_value":null }, "bots_totalPc":{ "rawValue":0, "value":"0", "diff":null, "percent":null, "compare_value":null } }, { "id":12, "time_day":{ "rawValue":"10.04.2024", "value":"10.04.2024", "diff":null, "percent":null, "compare_value":null }, "geo_country":{ "rawValue":"IR", "value":"Iran", "diff":null, "percent":null, "compare_value":null }, "summary_totalVisits":{ "rawValue":"1", "value":"1", "diff":null, "percent":null, "compare_value":null }, "bots_total":{ "rawValue":"0", "value":"0", "diff":null, "percent":null, "compare_value":null }, "bots_totalPc":{ "rawValue":0, "value":"0", "diff":null, "percent":null, "compare_value":null } }, { "id":13, "time_day":{ "rawValue":"10.04.2024", "value":"10.04.2024", "diff":null, "percent":null, "compare_value":null }, "geo_country":{ "rawValue":"IT", "value":"Italy", "diff":null, "percent":null, "compare_value":null }, "summary_totalVisits":{ "rawValue":"2", "value":"2", "diff":null, "percent":null, "compare_value":null }, "bots_total":{ "rawValue":"0", "value":"0", "diff":null, "percent":null, "compare_value":null }, "bots_totalPc":{ "rawValue":0, "value":"0", "diff":null, "percent":null, "compare_value":null } }, { "id":14, "time_day":{ "rawValue":"10.04.2024", "value":"10.04.2024", "diff":null, "percent":null, "compare_value":null }, "geo_country":{ "rawValue":"LB", "value":"Lebanon", "diff":null, "percent":null, "compare_value":null }, "summary_totalVisits":{ "rawValue":"2", "value":"2", "diff":null, "percent":null, "compare_value":null }, "bots_total":{ "rawValue":"0", "value":"0", "diff":null, "percent":null, "compare_value":null }, "bots_totalPc":{ "rawValue":0, "value":"0", "diff":null, "percent":null, "compare_value":null } }, { "id":15, "time_day":{ "rawValue":"10.04.2024", "value":"10.04.2024", "diff":null, "percent":null, "compare_value":null }, "geo_country":{ "rawValue":"LU", "value":"Luxembourg", "diff":null, "percent":null, "compare_value":null }, "summary_totalVisits":{ "rawValue":"1", "value":"1", "diff":null, "percent":null, "compare_value":null }, "bots_total":{ "rawValue":"0", "value":"0", "diff":null, "percent":null, "compare_value":null }, "bots_totalPc":{ "rawValue":0, "value":"0", "diff":null, "percent":null, "compare_value":null } }, { "id":16, "time_day":{ "rawValue":"10.04.2024", "value":"10.04.2024", "diff":null, "percent":null, "compare_value":null }, "geo_country":{ "rawValue":"MA", "value":"Morocco", "diff":null, "percent":null, "compare_value":null }, "summary_totalVisits":{ "rawValue":"1", "value":"1", "diff":null, "percent":null, "compare_value":null }, "bots_total":{ "rawValue":"0", "value":"0", "diff":null, "percent":null, "compare_value":null }, "bots_totalPc":{ "rawValue":0, "value":"0", "diff":null, "percent":null, "compare_value":null } }, { "id":17, "time_day":{ "rawValue":"10.04.2024", "value":"10.04.2024", "diff":null, "percent":null, "compare_value":null }, "geo_country":{ "rawValue":"ME", "value":"Montenegro", "diff":null, "percent":null, "compare_value":null }, "summary_totalVisits":{ "rawValue":"42", "value":"42", "diff":null, "percent":null, "compare_value":null }, "bots_total":{ "rawValue":"0", "value":"0", "diff":null, "percent":null, "compare_value":null }, "bots_totalPc":{ "rawValue":0, "value":"0", "diff":null, "percent":null, "compare_value":null } }, { "id":18, "time_day":{ "rawValue":"10.04.2024", "value":"10.04.2024", "diff":null, "percent":null, "compare_value":null }, "geo_country":{ "rawValue":"MK", "value":"Republic of North Macedonia", "diff":null, "percent":null, "compare_value":null }, "summary_totalVisits":{ "rawValue":"21", "value":"21", "diff":null, "percent":null, "compare_value":null }, "bots_total":{ "rawValue":"0", "value":"0", "diff":null, "percent":null, "compare_value":null }, "bots_totalPc":{ "rawValue":0, "value":"0", "diff":null, "percent":null, "compare_value":null } }, { "id":19, "time_day":{ "rawValue":"10.04.2024", "value":"10.04.2024", "diff":null, "percent":null, "compare_value":null }, "geo_country":{ "rawValue":"MT", "value":"Malta", "diff":null, "percent":null, "compare_value":null }, "summary_totalVisits":{ "rawValue":"1", "value":"1", "diff":null, "percent":null, "compare_value":null }, "bots_total":{ "rawValue":"0", "value":"0", "diff":null, "percent":null, "compare_value":null }, "bots_totalPc":{ "rawValue":0, "value":"0", "diff":null, "percent":null, "compare_value":null } }, { "id":20, "time_day":{ "rawValue":"10.04.2024", "value":"10.04.2024", "diff":null, "percent":null, "compare_value":null }, "geo_country":{ "rawValue":"NO", "value":"Norway", "diff":null, "percent":null, "compare_value":null }, "summary_totalVisits":{ "rawValue":"1", "value":"1", "diff":null, "percent":null, "compare_value":null }, "bots_total":{ "rawValue":"0", "value":"0", "diff":null, "percent":null, "compare_value":null }, "bots_totalPc":{ "rawValue":0, "value":"0", "diff":null, "percent":null, "compare_value":null } }, { "id":21, "time_day":{ "rawValue":"10.04.2024", "value":"10.04.2024", "diff":null, "percent":null, "compare_value":null }, "geo_country":{ "rawValue":"PL", "value":"Poland", "diff":null, "percent":null, "compare_value":null }, "summary_totalVisits":{ "rawValue":"8", "value":"8", "diff":null, "percent":null, "compare_value":null }, "bots_total":{ "rawValue":"0", "value":"0", "diff":null, "percent":null, "compare_value":null }, "bots_totalPc":{ "rawValue":0, "value":"0", "diff":null, "percent":null, "compare_value":null } }, { "id":22, "time_day":{ "rawValue":"10.04.2024", "value":"10.04.2024", "diff":null, "percent":null, "compare_value":null }, "geo_country":{ "rawValue":"QA", "value":"Qatar", "diff":null, "percent":null, "compare_value":null }, "summary_totalVisits":{ "rawValue":"2", "value":"2", "diff":null, "percent":null, "compare_value":null }, "bots_total":{ "rawValue":"0", "value":"0", "diff":null, "percent":null, "compare_value":null }, "bots_totalPc":{ "rawValue":0, "value":"0", "diff":null, "percent":null, "compare_value":null } }, { "id":23, "time_day":{ "rawValue":"10.04.2024", "value":"10.04.2024", "diff":null, "percent":null, "compare_value":null }, "geo_country":{ "rawValue":"RO", "value":"Romania", "diff":null, "percent":null, "compare_value":null }, "summary_totalVisits":{ "rawValue":"2", "value":"2", "diff":null, "percent":null, "compare_value":null }, "bots_total":{ "rawValue":"0", "value":"0", "diff":null, "percent":null, "compare_value":null }, "bots_totalPc":{ "rawValue":0, "value":"0", "diff":null, "percent":null, "compare_value":null } }, { "id":24, "time_day":{ "rawValue":"10.04.2024", "value":"10.04.2024", "diff":null, "percent":null, "compare_value":null }, "geo_country":{ "rawValue":"RS", "value":"Serbia", "diff":null, "percent":null, "compare_value":null }, "summary_totalVisits":{ "rawValue":"676", "value":"676", "diff":null, "percent":null, "compare_value":null }, "bots_total":{ "rawValue":"3", "value":"3", "diff":null, "percent":null, "compare_value":null }, "bots_totalPc":{ "rawValue":0.44, "value":"0.44", "diff":null, "percent":null, "compare_value":null } }, { "id":25, "time_day":{ "rawValue":"10.04.2024", "value":"10.04.2024", "diff":null, "percent":null, "compare_value":null }, "geo_country":{ "rawValue":"RU", "value":"Russian Federation ", "diff":null, "percent":null, "compare_value":null }, "summary_totalVisits":{ "rawValue":"3", "value":"3", "diff":null, "percent":null, "compare_value":null }, "bots_total":{ "rawValue":"0", "value":"0", "diff":null, "percent":null, "compare_value":null }, "bots_totalPc":{ "rawValue":0, "value":"0", "diff":null, "percent":null, "compare_value":null } }, { "id":26, "time_day":{ "rawValue":"10.04.2024", "value":"10.04.2024", "diff":null, "percent":null, "compare_value":null }, "geo_country":{ "rawValue":"SE", "value":"Sweden", "diff":null, "percent":null, "compare_value":null }, "summary_totalVisits":{ "rawValue":"1", "value":"1", "diff":null, "percent":null, "compare_value":null }, "bots_total":{ "rawValue":"0", "value":"0", "diff":null, "percent":null, "compare_value":null }, "bots_totalPc":{ "rawValue":0, "value":"0", "diff":null, "percent":null, "compare_value":null } }, { "id":27, "time_day":{ "rawValue":"10.04.2024", "value":"10.04.2024", "diff":null, "percent":null, "compare_value":null }, "geo_country":{ "rawValue":"SI", "value":"Slovenia", "diff":null, "percent":null, "compare_value":null }, "summary_totalVisits":{ "rawValue":"199", "value":"199", "diff":null, "percent":null, "compare_value":null }, "bots_total":{ "rawValue":"10", "value":"10", "diff":null, "percent":null, "compare_value":null }, "bots_totalPc":{ "rawValue":5.03, "value":"5.03", "diff":null, "percent":null, "compare_value":null } }, { "id":28, "time_day":{ "rawValue":"10.04.2024", "value":"10.04.2024", "diff":null, "percent":null, "compare_value":null }, "geo_country":{ "rawValue":"SK", "value":"Slovakia", "diff":null, "percent":null, "compare_value":null }, "summary_totalVisits":{ "rawValue":"1", "value":"1", "diff":null, "percent":null, "compare_value":null }, "bots_total":{ "rawValue":"0", "value":"0", "diff":null, "percent":null, "compare_value":null }, "bots_totalPc":{ "rawValue":0, "value":"0", "diff":null, "percent":null, "compare_value":null } }, { "id":29, "time_day":{ "rawValue":"10.04.2024", "value":"10.04.2024", "diff":null, "percent":null, "compare_value":null }, "geo_country":{ "rawValue":"SO", "value":"Somalia", "diff":null, "percent":null, "compare_value":null }, "summary_totalVisits":{ "rawValue":"1", "value":"1", "diff":null, "percent":null, "compare_value":null }, "bots_total":{ "rawValue":"0", "value":"0", "diff":null, "percent":null, "compare_value":null }, "bots_totalPc":{ "rawValue":0, "value":"0", "diff":null, "percent":null, "compare_value":null } }, { "id":30, "time_day":{ "rawValue":"10.04.2024", "value":"10.04.2024", "diff":null, "percent":null, "compare_value":null }, "geo_country":{ "rawValue":"TR", "value":"Turkey", "diff":null, "percent":null, "compare_value":null }, "summary_totalVisits":{ "rawValue":"1", "value":"1", "diff":null, "percent":null, "compare_value":null }, "bots_total":{ "rawValue":"0", "value":"0", "diff":null, "percent":null, "compare_value":null }, "bots_totalPc":{ "rawValue":0, "value":"0", "diff":null, "percent":null, "compare_value":null } }, { "id":31, "time_day":{ "rawValue":"10.04.2024", "value":"10.04.2024", "diff":null, "percent":null, "compare_value":null }, "geo_country":{ "rawValue":"US", "value":"United States of America ", "diff":null, "percent":null, "compare_value":null }, "summary_totalVisits":{ "rawValue":"20", "value":"20", "diff":null, "percent":null, "compare_value":null }, "bots_total":{ "rawValue":"18", "value":"18", "diff":null, "percent":null, "compare_value":null }, "bots_totalPc":{ "rawValue":90, "value":"90", "diff":null, "percent":null, "compare_value":null } }, { "id":32, "time_day":{ "rawValue":"10.04.2024", "value":"10.04.2024", "diff":null, "percent":null, "compare_value":null }, "geo_country":{ "rawValue":"XK", "value":"Kosovo", "diff":null, "percent":null, "compare_value":null }, "summary_totalVisits":{ "rawValue":"3", "value":"3", "diff":null, "percent":null, "compare_value":null }, "bots_total":{ "rawValue":"0", "value":"0", "diff":null, "percent":null, "compare_value":null }, "bots_totalPc":{ "rawValue":0, "value":"0", "diff":null, "percent":null, "compare_value":null } } ], "totalRows":33, "page":1, "perPage":50, "columns":[ { "field":"time_day", "type":"string", "sortable":true, "unit":null, "tooltip":false }, { "field":"geo_country", "type":"string", "sortable":true, "unit":null, "tooltip":false }, { "field":"summary_totalVisits", "type":"number", "sortable":true, "unit":null, "tooltip":false }, { "field":"bots_total", "type":"number", "sortable":true, "unit":null, "tooltip":true }, { "field":"bots_totalPc", "type":"float", "sortable":true, "unit":"%", "tooltip":false } ], "total":{ "id":33, "time_day":"fullResult", "geo_country":{ "rawValue":null, "value":"", "diff":null, "percent":null, "compare_value":null }, "summary_totalVisits":{ "rawValue":null, "value":"1763", "diff":null, "percent":null, "compare_value":null }, "bots_total":{ "rawValue":null, "value":"38", "diff":null, "percent":null, "compare_value":null }, "bots_totalPc":{ "rawValue":null, "value":"2.16", "diff":null, "percent":null, "compare_value":null } } } } </pre> </div> ==== API ==== {| class="wikitable" !Key !Type !Description |- | success || Boolean || Was the request successful or it failed |- | code || Number || Response status code |- |msg || [String] || Error message |- | colspan="3" |data |- |data.rows |['''<row>'''] |Description of table rows |- |data.totalRows |Number |Total number of items in the table |- |data.total |'''<row>''' |Sum for each column considering invisible rows |- |data.page |Number |Current page |- |data.perPage |Number |Number of items per page |- |data.columns |['''<column>'''] |Description of columns |} {| class="wikitable mw-collapsible" |+ Description <row> !Key !Type !Description |- |value |String |Human readable value |- |rawValue |String |Raw value |- |diff |<nowiki>String | null</nowiki> | |- |percent |<nowiki>Number | null</nowiki> |Is the value a percentage or not? |- |compare_value |<nowiki>String | null</nowiki> |Comparison value if compare is on in request |} {| class="wikitable mw-collapsible" |+ Description <column> !Key !Type !Description |- |field |String |ID of the metric or group |- |type |<nowiki>String | Number | Float</nowiki> | |- |sortable |Boolean |Sortable or not |- |unit |<nowiki>String | null</nowiki> |Unit of measurement For example, % for percentage columns |} == Request examples == === CURL === <pre> curl -X 'OPTIONS' \ '<nowiki>https://kaminari.click/api/stat/get'</nowiki> \ -H 'accept: */*' 'Authorization: Bearer <YOUR API_TOKEN>' </pre> <pre> curl -X POST '<nowiki>https://kaminari.click/api/stat/filter'</nowiki> -d '{"id":"device_type","searchQuery":"","dateFrom":"2023-01-05","dateTo":"2023-01-05"}' -H 'content-type: application/json' -H 'Authorization: Bearer <YOUR API_TOKEN>' </pre> <pre> curl -X POST '<nowiki>https://kaminari.click/api/stat/data'</nowiki> -d '{"id":null,"name":null,"groups":["time_day"],"metrics":["summary_totalVisits"],"filters":{"filters":[],"period":null,"timezone":0,"dateTo":"2022-08-15","dateFrom":"2022-08-15"},"compare":null}' -H 'content-type: application/json' -H 'Authorization: Bearer <YOUR API_TOKEN>' </pre> === NodeJS === const https = require('https'); const options = { <nowiki> </nowiki> host: 'kaminari.click', <nowiki> </nowiki> port: 443, <nowiki> </nowiki> path: '/api/stat/get', <nowiki> </nowiki> method: 'POST', <nowiki> </nowiki> headers: { 'Authorization': 'Bearer <YOUR API_TOKEN>' } }; https <nowiki> </nowiki> .get(options, (resp) => { <nowiki> </nowiki> let data = <nowiki>''</nowiki>; <nowiki> </nowiki> resp.on('data', (chunk) => { <nowiki> </nowiki> data += chunk; <nowiki> </nowiki> }); <nowiki> </nowiki> resp.on('end', () => { <nowiki> </nowiki> try { <nowiki> </nowiki> data = JSON.parse(data); <nowiki> </nowiki> } catch { <nowiki> </nowiki> console.log(data); <nowiki> </nowiki> } <nowiki> </nowiki> }); <nowiki> </nowiki> }) <nowiki> </nowiki> .on("error", (err) => { <nowiki> </nowiki> console.log("Error: " + err.message); <nowiki> </nowiki> }); === PHP === <?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, '<nowiki>https://kaminari.click/api/stat/get'</nowiki>); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'OPTIONS'); curl_setopt($ch, CURLOPT_HTTPHEADER, [ 'accept: */*', ]); $response = curl_exec($ch); curl_close($ch); === Python === import requests headers = { 'accept': '*/*', } response = requests.options('<nowiki>https://kaminari.click/api/stat/get'</nowiki>, headers=headers) response = requests.options('<nowiki>http://Authorization</nowiki>: Bearer <YOUR API_TOKEN>', headers=headers)