curl -X GET "https://snip.sa/api/urls?page=1&limit=20&search=campaign&sortBy=clickCount&sortOrder=desc" \ -H "X-API-Key: your_api_key_here"
{ "success": true, "data": { "urls": [ { "_id": "507f1f77bcf86cd799439011", "originalUrl": "https://example.com/page", "shortCode": "abc123", "title": "Campaign Link", "clickCount": 150, "isActive": true, "createdAt": "2024-01-15T10:30:00.000Z" } ], "pagination": { "page": 1, "limit": 20, "total": 45, "pages": 3 } } }
Retrieve a paginated list of your shortened URLs
createdAt
clickCount
title
asc
desc