လင့်ခ်အချက်အလက်
GET https://tistos.com/api/statistics/
curl --request GET \
--url 'https://tistos.com/api/statistics/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://tistos.com/api/statistics/' \
--header 'Authorization: Bearer {api_key}' \
| အချက်အလက်များ | အသေးစိတ်များ | ဖော်ပြချက် |
|---|---|---|
| start_date | ရွေးချယ်နိုင်သည် စကားလုံး | Y-m-d ပုံစံဖြင့် စတင်ရက်စွဲ။ မသတ်မှတ်ပါက မူရင်းတန်ဖိုးမှာ လွန်ခဲ့သော ရက် ၃၀ ဖြစ်သည်။ |
| end_date | ရွေးချယ်နိုင်သည် စကားလုံး | Y-m-d ပုံစံဖြင့် ပြီးဆုံးရက်စွဲ။ မသတ်မှတ်ပါက မူရင်းတန်ဖိုးမှာ ယနေ့ ဖြစ်သည်။ |
| project_id | ရွေးချယ်နိုင်သည် အင်တာဂျာ | |
| type | ရွေးချယ်နိုင်သည် စကားလုံး | ခွင့်ပြုထားသောတန်ဖိုးများ: overview, entries, referrer_host, referrer_path, crawler, continent_code, country_code, region_name, city_name, timezone, os_name, browser_name, device_type, browser_language, utm_source, utm_medium, utm_campaign, hour, weekday, visitor_type, acquisition_channel |
| continent_code | ရွေးချယ်နိုင်သည် စကားလုံး | ရရှိနိုင်သောအချိန်: type = country_code |
| country_code | ရွေးချယ်နိုင်သည် စကားလုံး | ရရှိနိုင်သောအချိန်: type = region_name, city_name |
| region_name | ရွေးချယ်နိုင်သည် စကားလုံး | ရရှိနိုင်သောအချိန်: type = city_name |
| utm_source | ရွေးချယ်နိုင်သည် စကားလုံး | ရရှိနိုင်သောအချိန်: type = utm_medium, utm_campaign |
| utm_medium | ရွေးချယ်နိုင်သည် စကားလုံး | ရရှိနိုင်သောအချိန်: type = utm_campaign |
| referrer_host | ရွေးချယ်နိုင်သည် စကားလုံး | ရရှိနိုင်သောအချိန်: type = referrer_path |
| referrer_type | ရွေးချယ်နိုင်သည် စကားလုံး | ရရှိနိုင်သောအချိန်: type = referrer_host ခွင့်ပြုထားသောတန်ဖိုးများ: all, ai, social_media, search_engines, other_websites |
| crawler_type | ရွေးချယ်နိုင်သည် စကားလုံး | ရရှိနိုင်သောအချိန်: type = crawler ခွင့်ပြုထားသောတန်ဖိုးများ: all, ai, search_engines |
{
"data": [
{
"pageviews": 20,
"visitors": 5,
"formatted_date": "2021-01"
},
{
"pageviews": 35,
"visitors": 10,
"formatted_date": "2021-02"
},
{
"pageviews": 50,
"visitors": 25,
"formatted_date": "2021-03"
}
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://tistos.com/api/statistics?page=1",
"last": "https://tistos.com/api/statistics?page=1",
"next": null,
"prev": null,
"self": "https://tistos.com/api/statistics?page=1"
}
}
GET https://tistos.com/api/statistics/{link_id}
| အချက်အလက်များ | အသေးစိတ်များ | ဖော်ပြချက် |
|---|---|---|
| start_date | ရွေးချယ်နိုင်သည် စကားလုံး | Y-m-d ပုံစံဖြင့် စတင်ရက်စွဲ။ မသတ်မှတ်ပါက မူရင်းတန်ဖိုးမှာ လွန်ခဲ့သော ရက် ၃၀ ဖြစ်သည်။ |
| end_date | ရွေးချယ်နိုင်သည် စကားလုံး | Y-m-d ပုံစံဖြင့် ပြီးဆုံးရက်စွဲ။ မသတ်မှတ်ပါက မူရင်းတန်ဖိုးမှာ ယနေ့ ဖြစ်သည်။ |
| type | ရွေးချယ်နိုင်သည် စကားလုံး | ခွင့်ပြုထားသောတန်ဖိုးများ: overview, entries, referrer_host, referrer_path, crawler, continent_code, country_code, region_name, city_name, timezone, os_name, browser_name, device_type, browser_language, utm_source, utm_medium, utm_campaign, hour, weekday, visitor_type, acquisition_channel |
| continent_code | ရွေးချယ်နိုင်သည် စကားလုံး | ရရှိနိုင်သောအချိန်: type = country_code |
| country_code | ရွေးချယ်နိုင်သည် စကားလုံး | ရရှိနိုင်သောအချိန်: type = region_name, city_name |
| region_name | ရွေးချယ်နိုင်သည် စကားလုံး | ရရှိနိုင်သောအချိန်: type = city_name |
| utm_source | ရွေးချယ်နိုင်သည် စကားလုံး | ရရှိနိုင်သောအချိန်: type = utm_medium, utm_campaign |
| utm_medium | ရွေးချယ်နိုင်သည် စကားလုံး | ရရှိနိုင်သောအချိန်: type = utm_campaign |
| referrer_host | ရွေးချယ်နိုင်သည် စကားလုံး | ရရှိနိုင်သောအချိန်: type = referrer_path |
| referrer_type | ရွေးချယ်နိုင်သည် စကားလုံး | ရရှိနိုင်သောအချိန်: type = referrer_host ခွင့်ပြုထားသောတန်ဖိုးများ: all, ai, social_media, search_engines, other_websites |
| crawler_type | ရွေးချယ်နိုင်သည် စကားလုံး | ရရှိနိုင်သောအချိန်: type = crawler ခွင့်ပြုထားသောတန်ဖိုးများ: all, ai, search_engines |
curl --request GET \
--url 'https://tistos.com/api/statistics/{link_id}?start_date=2020-01-01&end_date=2021-01-01' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://tistos.com/api/statistics/{link_id}?start_date=2020-01-01&end_date=2021-01-01' \
--header 'Authorization: Bearer {api_key}' \
{
"data": [
{
"pageviews": 20,
"visitors": 5,
"formatted_date": "2021-01"
},
{
"pageviews": 35,
"visitors": 10,
"formatted_date": "2021-02"
},
{
"pageviews": 50,
"visitors": 25,
"formatted_date": "2021-03"
}
]
}