API Docs
Get Stats/Analytics (daily) GET
This endpoint allows you to get stats/analytics data for a single tag or list of URLs for a given date.
https://t2mio.com/api/v1/stats/daily
Request
Parameter | Type | Position | Constraint | Description |
---|---|---|---|---|
apikey | string |
Header |
Required |
Your 20-30 characters unique api key. |
apisecret | string |
Header |
Required |
Your 12-20 characters unique api secret. |
tag
or
url_keys
|
string |
Query |
Required |
Enter the tag name for which you want to see the stats data.
or
Enter a comma-separated list of short URL keys (slashtags only) for which you want to see the stats data. Max 100 keys.For example, your short URLs are:
url_keys value can be offer2020,Ghkr3dU
|
date | string |
Query |
Required |
Enter the date in ISO 8601 format (YYYY-MM-DD). Example: 2020-09-08 |
timezone | string |
Query |
Optional |
Enter the timezone in UTC format. Example: -06:00 . Default is +00:00 |
Sample GET requests
1. https://t2mio.com/api/v1/stats?tag=tag1&date=2020-09-08 2. https://t2mio.com/api/v1/stats?url_keys=key1,key2,key3&date=2020-09-08&timezone=-06:00
Response
{ "status": 200, "message": "ok", "data": { "clicks_total": 386, "clicks_unique": 280, "clicks_repeated": 106, "clicks_breakdown": { "0": 20, "1": 31, "2": 9, "3": 23, "4": 18, "5": 8, "6": 22, "7": 10, "8": 13, "9": 18, "10": 20, "11": 33, "12": 28, "13": 12, "14": 22, "15": 12, "16": 13, "17": 11, "18": 6, "19": 5, "20": 20, "21": 0, "22": 10, "23": 22 }, "browser": { "Chrome": "217", "unknown.": "64", "Mozilla": "43", "Safari": "19", "Android": "14", "Firefox": "6", "GoogleBot": "5", "Opera": "5", "Internet Explorer": "3", "iPhone": "3", "Opera Mini": "3", "YandexBot": "3", "Yandex": "1" }, "country": { "US": "133", "CO": "46", "IN": "25", "unknown.": "1", ... }, "device": { "Desktop": "269", "Tablet": "1", "Mobile": "116" }, "languages": {}, "platform": { "Android": "96", "Bot": "91", "Windows": "82", "Apple": "68", "iPhone": "17", "WhatsApp": "12", "unknown.": "11", "Linux": "7", "Chrome OS": "1", "iPad": "1" }, "referrer": { "Direct": 26, "twitter.com": 200, "facebook.com": 160 }, "timezone": { "America/New_York": 114, "America/Mexico_City": 50, "America/Chicago": 96, "America/Los_Angeles": 126, ... } } }