URL for a request
Method
GET
Incoming Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| api_token | string | Yes | API token for access |
| date_from | string | No | Date from [Y-m-d] |
| date_to | string | No | Date to [Y-m-d] |
| link_id | int | No | Link ID |
Return values
The server returns a response in JSON format. The list of parameters depends on the server response code:
Request example
curl 'https://firelinks.cc/api/out/stat/total?api_token=W9DtD7JtyHI7nPj8eEWul2pVkcobE62IHaHi3n8ClQdogBGZe6n70fIgTH3u'
Response example 200
{
"success": true,
"data": {
"views": 1888,
"clicks": 8781,
"clicks_out": 3690,
"visits": 24082,
"bot_clicks": 27,
"bot_percent": 0,
"quality": 3,
"traffic_unique": 36,
"uniq_percent": 36,
"out_percent": 15,
"pay_clicks": 104,
"money": 36.79
}
}
Response example 422
{
"success": false,
"errors": "Validation errors",
"data": {
"date_from": [
"The date from field is not a date."
]
}
}