Link statistics

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
links array No Array of link IDs

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/links?api_token=W9DtD7JtyHI7nPj8eEWul2pVkcobE62IHaHi3n8ClQdogBGZe6n70fIgTH3u'

Response example 200


{
    "success": true,
    "data": [
        {
            "id": 1,
            "name": "Cuti",
            "url": "https://cuti.cc",
            "views": 545,
            "clicks": 1,
            "visits": 9999,
            "bot_clicks": 0,
            "bot_percent": 0,
            "pay_clicks": 0,
            "money": 0,
            "quality": 3,
            "clicks_out": 1,
            "uniq_percent": 0,
            "out_percent": 0
        }
    ]
}


Response example 422


{
    "success": false,
    "errors": "Validation errors",
    "data": {
        "date_from": [
             "The date from field is not a date."
        ]
    }
}