Skip to main content
GET
https://api.taap.it
/
v1
/
stats
/
links
/
{link_id}
Link Statistics
curl --request GET \
  --url https://api.taap.it/v1/stats/links/{link_id} \
  --header 'Authorization: <authorization>'
{
  "id": "<string>",
  "link_id": "<string>",
  "last_updated": "<string>",
  "click_date": "<string>",
  "total_clicks": 123,
  "unique_visitors": 123,
  "scans_only": 123,
  "clicks_only": 123,
  "chrome_clicks": 123,
  "ios_clicks": 123,
  "android_clicks": 123,
  "os_stats": {
    "{os_name}": 123
  },
  "city_stats": {
    "{city_name}": 123
  },
  "os_version_stats": {
    "{version}": 123
  },
  "lang_stats": {
    "{language_code}": 123
  },
  "device_stats": {
    "mobile": 123,
    "desktop": 123,
    "tablet": 123
  },
  "browser_stats": {
    "{browser_name}": 123
  },
  "country_stats": {
    "{country_code}": 123
  },
  "device_and_os_stats": {
    "{device_os}": 123
  },
  "app_stats": {
    "{app_name}": 123
  },
  "device_type_stats": {
    "{device_type}": 123
  },
  "from_app_stats": {
    "true": 123,
    "false": 123
  },
  "continent_stats": {
    "{continent_name}": 123
  }
}
Request:
cURL
curl -X GET 'https://api.taap.it/v1/stats/links/link_987654321?start_date=2024-01-01T00:00:00Z&end_date=2024-01-31T23:59:59Z&max_days=30' \
  -H 'Authorization: Bearer taapit_your_api_key_here'
Response:
[
  {
    "id": "stat_123456789",
    "link_id": "link_987654321",
    "last_updated": "2024-01-15T10:30:00Z",
    "click_date": "2024-01-15",
    "total_clicks": 45,
    "unique_visitors": 38,
    "scans_only": 5,
    "clicks_only": 40,
    "chrome_clicks": 25,
    "ios_clicks": 15,
    "android_clicks": 5,
    "os_stats": {
      "iOS": 15,
      "Android": 5,
      "Windows": 20,
      "macOS": 5
    },
    "city_stats": {
      "New York": 10,
      "Los Angeles": 8,
      "Toronto": 5
    },
    "os_version_stats": {
      "iOS 17.0": 10,
      "iOS 16.5": 5,
      "Android 13": 3,
      "Android 12": 2
    },
    "lang_stats": {
      "en": 30,
      "fr": 8,
      "es": 7
    },
    "device_stats": {
      "mobile": 28,
      "desktop": 15,
      "tablet": 2
    },
    "browser_stats": {
      "Chrome": 32,
      "Safari": 8,
      "Firefox": 3,
      "Edge": 2
    },
    "country_stats": {
      "US": 25,
      "CA": 12,
      "UK": 8
    },
    "device_and_os_stats": {
      "iPhone iOS": 15,
      "Android Phone": 5,
      "Windows Desktop": 20,
      "Mac Desktop": 5
    },
    "app_stats": {
      "Safari": 8,
      "Chrome Mobile": 15,
      "Chrome Desktop": 17
    },
    "device_type_stats": {
      "smartphone": 20,
      "desktop": 20,
      "tablet": 5
    },
    "from_app_stats": {
      "true": 8,
      "false": 37
    },
    "continent_stats": {
      "North America": 37,
      "Europe": 8
    }
  }
]

Authorization

Authorization
string
required
Bearer token for API authentication. Format: Bearer YOUR_API_KEY

Path Parameters

Unique identifier for the link

Query Parameters

start_date
string
Start date for statistics (ISO 8601 format, e.g., 2024-01-01T00:00:00Z)
end_date
string
End date for statistics (ISO 8601 format, e.g., 2024-01-31T23:59:59Z)
max_days
integer
Maximum number of days to retrieve statistics for (minimum: 1, maximum: 30)

Response Fields

id
string
required
Unique identifier for the statistics record
Unique identifier for the link
last_updated
string
required
ISO 8601 timestamp when the statistics were last updated
click_date
string
required
Date for the statistics (YYYY-MM-DD format)
total_clicks
integer
required
Total number of clicks on this date
unique_visitors
integer
required
Number of unique visitors on this date
scans_only
integer
required
Number of QR code scans without clicks on this date
clicks_only
integer
required
Number of direct clicks without scans on this date
chrome_clicks
integer
required
Number of clicks from Chrome browser on this date
ios_clicks
integer
required
Number of clicks from iOS devices on this date
android_clicks
integer
required
Number of clicks from Android devices on this date
os_stats
object
Statistics broken down by operating system
city_stats
object
Statistics broken down by city
os_version_stats
object
Statistics broken down by operating system version
lang_stats
object
Statistics broken down by language
device_stats
object
Statistics broken down by device type
browser_stats
object
Statistics broken down by browser
country_stats
object
Statistics broken down by country
device_and_os_stats
object
Statistics broken down by device and operating system combination
app_stats
object
Statistics broken down by application
device_type_stats
object
Statistics broken down by device type (detailed)
from_app_stats
object
Statistics showing clicks from apps vs web browsers
continent_stats
object
Statistics broken down by continent