curl -X GET "https://snip.sa/api/analytics/507f1f77bcf86cd799439011/clicks?page=1&limit=50" \
-H "X-API-Key: your_api_key_here"
const response = await axios.get(
'https://snip.sa/api/analytics/507f1f77bcf86cd799439011/clicks',
{
params: { page: 1, limit: 50 },
headers: { 'X-API-Key': 'your_api_key_here' }
}
);
{
"success": true,
"data": {
"clicks": [
{
"_id": "click123",
"timestamp": "2024-01-15T10:30:00.000Z",
"country": "US",
"city": "New York",
"device": "mobile",
"browser": "Chrome",
"os": "iOS",
"referrer": "google.com",
"ipAddress": "192.168.1.1"
}
],
"pagination": {
"page": 1,
"limit": 50,
"total": 1250,
"pages": 25
}
}
}
Analytics
Click Analytics
Get detailed click data for a URL
GET
/
api
/
analytics
/
{urlId}
/
clicks
curl -X GET "https://snip.sa/api/analytics/507f1f77bcf86cd799439011/clicks?page=1&limit=50" \
-H "X-API-Key: your_api_key_here"
const response = await axios.get(
'https://snip.sa/api/analytics/507f1f77bcf86cd799439011/clicks',
{
params: { page: 1, limit: 50 },
headers: { 'X-API-Key': 'your_api_key_here' }
}
);
{
"success": true,
"data": {
"clicks": [
{
"_id": "click123",
"timestamp": "2024-01-15T10:30:00.000Z",
"country": "US",
"city": "New York",
"device": "mobile",
"browser": "Chrome",
"os": "iOS",
"referrer": "google.com",
"ipAddress": "192.168.1.1"
}
],
"pagination": {
"page": 1,
"limit": 50,
"total": 1250,
"pages": 25
}
}
}
Path Parameters
URL ID
Query Parameters
Page number
Results per page (max: 100)
Filter clicks from this date
Filter clicks until this date
curl -X GET "https://snip.sa/api/analytics/507f1f77bcf86cd799439011/clicks?page=1&limit=50" \
-H "X-API-Key: your_api_key_here"
const response = await axios.get(
'https://snip.sa/api/analytics/507f1f77bcf86cd799439011/clicks',
{
params: { page: 1, limit: 50 },
headers: { 'X-API-Key': 'your_api_key_here' }
}
);
{
"success": true,
"data": {
"clicks": [
{
"_id": "click123",
"timestamp": "2024-01-15T10:30:00.000Z",
"country": "US",
"city": "New York",
"device": "mobile",
"browser": "Chrome",
"os": "iOS",
"referrer": "google.com",
"ipAddress": "192.168.1.1"
}
],
"pagination": {
"page": 1,
"limit": 50,
"total": 1250,
"pages": 25
}
}
}
⌘I
