URL for a request
Method
GET
Incoming Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| api_token | string | Yes | API token for access |
| code | string | No | Link code |
| date_from | string | No | Date the link was added from (Y-m-d) |
| date_to | string | No | Date the link was added before (Y-m-d) |
| link_id | int | No | Link ID |
| url | string | No | Search by site link |
| clicks | int | No | Click-throughs |
| clicks_type | int | No | The direction of the search by clicks. 1 - greater than or equal to, 2 - less than or equal to |
| title | string | No | Search by page title |
| link_name | string | No | Search by link name |
| status | int | No | The status of links.
|
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/links/list?api_token=W9DtD7JtyHI7nPj8eEWul2pVkcobE62IHaHi3n8ClQdogBGZe6n70fIgTH3u'
Response example 200
{
"success": true,
"data": [
{
"id": 414,
"type": "url",
"url": "http://google.com",
"url_end": null,
"urls": [
{
"id": 8297,
"type": "main",
"url": "http://google.com",
"end_url": null,
"hosts": 0,
"hits": 0,
"scan_result": null,
"last_scan": null,
"last_click": null,
"created_at": "2023-04-21T04:37:55.000000Z",
"updated_at": "2023-04-21T04:41:23.000000Z",
"status": 1,
"title": null,
"screenshot": null,
"check_result": null,
"last_check": null,
"is_file": 0,
"file_ext": null
}
],
"url_short": "https://cuti.cc/0YFcR",
"link_name": "API test",
"code": "0YFcR",
"domain": null,
"domain_id": null,
"cloaking_on": 0,
"routing_on": 0,
"visits": 0,
"clicks": 0,
"clicks_out": 0,
"last_click": null,
"created_at": "2022-07-17 11:53:42",
"updated_at": "2022-07-17 11:53:42",
"qr_img": "http://cuti.cc/images/no_ext.png",
"status": 1,
"keywords": [
"one",
"two",
"three"
],
"keywords_mode": 1
}
]
}
Response example 422
{
"success": false,
"errors": "Validation errors",
"data": {
"link_id": [
"The link id field must be an integer."
]
}
}