curl -X GET https://snip.sa/api/urls/stats \
-H "X-API-Key: your_api_key_here"
{
"success": true,
"totalLinks": 45,
"totalClicks": 1250,
"customDomains": 2,
"accountAge": "3 months",
"plan": "Professional",
"data": {
"stats": {
"totalUrls": 45,
"activeUrls": 42,
"totalClicks": 1250,
"topUrls": [
{
"_id": "507f1f77bcf86cd799439011",
"title": "Popular Link",
"originalUrl": "https://example.com/page",
"shortCode": "abc123",
"clickCount": 350,
"createdAt": "2024-01-15T10:30:00.000Z"
}
]
}
}
}
Get aggregated statistics for all your URLs
curl -X GET https://snip.sa/api/urls/stats \
-H "X-API-Key: your_api_key_here"
{
"success": true,
"totalLinks": 45,
"totalClicks": 1250,
"customDomains": 2,
"accountAge": "3 months",
"plan": "Professional",
"data": {
"stats": {
"totalUrls": 45,
"activeUrls": 42,
"totalClicks": 1250,
"topUrls": [
{
"_id": "507f1f77bcf86cd799439011",
"title": "Popular Link",
"originalUrl": "https://example.com/page",
"shortCode": "abc123",
"clickCount": 350,
"createdAt": "2024-01-15T10:30:00.000Z"
}
]
}
}
}
curl -X GET https://snip.sa/api/urls/stats \
-H "X-API-Key: your_api_key_here"
{
"success": true,
"totalLinks": 45,
"totalClicks": 1250,
"customDomains": 2,
"accountAge": "3 months",
"plan": "Professional",
"data": {
"stats": {
"totalUrls": 45,
"activeUrls": 42,
"totalClicks": 1250,
"topUrls": [
{
"_id": "507f1f77bcf86cd799439011",
"title": "Popular Link",
"originalUrl": "https://example.com/page",
"shortCode": "abc123",
"clickCount": 350,
"createdAt": "2024-01-15T10:30:00.000Z"
}
]
}
}
}