API Endpoint
Get Single API Statistics
Description:
This API provides the statistics of the last 30 days for a specific link, including the total clicks for that particular link.
Endpoint: GET /api/user/v1/singleapistatistics
cURL Command:
curl --location --request GET 'https://apiv2.foxlyme.com/api/user/
v1/singleapistatistics?url_shortner_id=string' --header 'api-key: API_KEY'
Query Parameters
url_shortner_id (required):
String
The unique identifier for the URL shortener.
Response Body
Successful Response
{
"error": false,
"totalCounts": 2,
"daysData": {
"May 26": clicks,
"May 27": clicks,
"May 28": clicks,
"May 29": clicks,
"May 30": clicks,
"May 31": clicks,
"Jun 01": clicks
},
"new": true,
"highest": "Jun 01"
}
Fields
error:
Boolean
Indicates whether there was an error in fetching the statistics.totalCounts:
Number
The total number of clicks for the specified link over the last 30 days.daysData:
Object
A mapping of dates to the number of clicks on those dates.new:
Boolean
Indicates whether the link is new.highest:
String
The date with the highest number of clicks.