curl --request GET \
--url https://api.bsy.sh/v1/link/stats \
--header 'Authorization: Bearer <token>'{
"status": "success",
"data": {
"timeframe": "<string>",
"total_count": 123,
"unique_count": 123,
"stats": {
"country": [
{
"name": "<string>",
"total_count": 123,
"unique_count": 123
}
],
"region": [
{
"name": "<string>",
"total_count": 123,
"unique_count": 123
}
],
"city": [
{
"name": "<string>",
"total_count": 123,
"unique_count": 123
}
],
"os_name": [
{
"name": "<string>",
"total_count": 123,
"unique_count": 123
}
],
"device_type": [
{
"name": "<string>",
"total_count": 123,
"unique_count": 123
}
],
"device_brand": [
{
"name": "<string>",
"total_count": 123,
"unique_count": 123
}
],
"device_model": [
{
"name": "<string>",
"total_count": 123,
"unique_count": 123
}
],
"client_name": [
{
"name": "<string>",
"total_count": 123,
"unique_count": 123
}
],
"timezone": [
{
"name": "<string>",
"total_count": 123,
"unique_count": 123
}
],
"language": [
{
"name": "<string>",
"total_count": 123,
"unique_count": 123
}
],
"referrer": [
{
"name": "<string>",
"total_count": 123,
"unique_count": 123
}
],
"interval": {
"hour": [
{
"date": "<string>",
"total_count": 123,
"unique_count": 123
}
],
"day": [
{
"date": "<string>",
"total_count": 123,
"unique_count": 123
}
],
"week": [
{
"date": "<string>",
"total_count": 123,
"unique_count": 123
}
],
"month": [
{
"date": "<string>",
"total_count": 123,
"unique_count": 123
}
],
"year": [
{
"date": "<string>",
"total_count": 123,
"unique_count": 123
}
]
}
}
}
}Retrieve a Bitsy Link Analytics
curl --request GET \
--url https://api.bsy.sh/v1/link/stats \
--header 'Authorization: Bearer <token>'{
"status": "success",
"data": {
"timeframe": "<string>",
"total_count": 123,
"unique_count": 123,
"stats": {
"country": [
{
"name": "<string>",
"total_count": 123,
"unique_count": 123
}
],
"region": [
{
"name": "<string>",
"total_count": 123,
"unique_count": 123
}
],
"city": [
{
"name": "<string>",
"total_count": 123,
"unique_count": 123
}
],
"os_name": [
{
"name": "<string>",
"total_count": 123,
"unique_count": 123
}
],
"device_type": [
{
"name": "<string>",
"total_count": 123,
"unique_count": 123
}
],
"device_brand": [
{
"name": "<string>",
"total_count": 123,
"unique_count": 123
}
],
"device_model": [
{
"name": "<string>",
"total_count": 123,
"unique_count": 123
}
],
"client_name": [
{
"name": "<string>",
"total_count": 123,
"unique_count": 123
}
],
"timezone": [
{
"name": "<string>",
"total_count": 123,
"unique_count": 123
}
],
"language": [
{
"name": "<string>",
"total_count": 123,
"unique_count": 123
}
],
"referrer": [
{
"name": "<string>",
"total_count": 123,
"unique_count": 123
}
],
"interval": {
"hour": [
{
"date": "<string>",
"total_count": 123,
"unique_count": 123
}
],
"day": [
{
"date": "<string>",
"total_count": 123,
"unique_count": 123
}
],
"week": [
{
"date": "<string>",
"total_count": 123,
"unique_count": 123
}
],
"month": [
{
"date": "<string>",
"total_count": 123,
"unique_count": 123
}
],
"year": [
{
"date": "<string>",
"total_count": 123,
"unique_count": 123
}
]
}
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The unique identifier for the Bitsy Link.
Start date for filtering link analytics. Must be in 'YYYY-MM-DD' format.
End date for filtering link analytics. Must be in 'YYYY-MM-DD' format.
Details of the requested Bitsy Link Analytics
success Show child attributes
The time period for which the analytics data is being provided.
The total number of clicks during the specified timeframe.
The count of unique clicks during the specified timeframe.
Show child attributes
Clicks by operating system.
Show child attributes
Clicks by device type.
Show child attributes
Clicks by device brand.
Show child attributes
Clicks by device model.
Show child attributes
Clicks by client name.
Clicks by timezone.
Clicks by language.
Clicks by referrer.
Show child attributes
Clicks by various time intervals (hour, day, week, month, year).
Show child attributes
Was this page helpful?