Skip to content

List by a short link

GET
/short_links/{shortCode}/requests

List of all requests by a short link campaign code

#!/usr/bin/env bash
curl -X GET https://api.lox24.eu/short_links/{short_link_id}/requests \
-H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx'
shortCode
required
string

Short link code

page
integer
default: 1 >= 1

Current page

_order[date]
string
default: asc
Allowed values: asc desc

Sort a list by ‘date’ property

ip
string

Partial case-insensitive text filter by a IP address

url
string

Partial case-insensitive text filter by a destination URL

user_agent
string

Partial filter short links by user agent (partial match)

country
string

Exact filter entities by the country code

country[]
Array<string>

Exact filter entities by the country codes

referer
string

Partial case-insensitive text filter by a referer

date
integer

Exact filter short link requests by exact date

date[]
Array<integer>

Exact filter short link requests by date (array of values)

type
integer

Exact filter short links by type (exact match)

type[]
Array<integer>

Range filter short links by type (array of values)

browser
string

Partial case-insensitive text filter by a browser name

browser_version
string

Partial case-insensitive text filter by a browser version

os
string

Partial case-insensitive text filter by a operation system name

os_version
string

Partial case-insensitive text filter by a operation system version

software_type
string

Partial case-insensitive text filter by a software type

hardware_type
string

Partial case-insensitive text filter by a hardware type

date[between]
string

Range filter short link requests by date range

date[gt]
string

Filter short link requests by date greater than

date[gte]
string

Filter short link requests by date greater than or equal

date[lt]
string

Filter short link requests by date less than

date[lte]
string

Filter short link requests by date less than or equal

Short_link_requests collection

object
hydra:member
required
Array<object>

Short link campaigns

object
@id

JSON-LD ID

string
@type

JSON-LD type

string
@context
One of:
string
id

Unique identifier of the short link request

integer
ip

IP address of the short link request

string | null format: ipv4
<= 15 characters
Example
192.168.1.1
user_agent

User agent of the short link request

string | null
url

URL of the short link request

string
date

Date of the short link request

integer
country

Country code

string
>= 2 characters <= 2 characters /^[A-Z]{2}$/
referer

Referer of the short link request

string | null
short_link

Short link associated with the request

string | null format: iri-reference
Example
https://example.com/
type

Type of the short link request

integer
browser

Browser used for the short link request

string | null
browser_version

Browser version used for the short link request

string | null
<= 255 characters
os

Operating system used for the short link request

string | null
<= 255 characters
os_version

Operating system version used for the short link request

string | null
<= 255 characters
software_type

Software type used for the short link request

string | null
<= 255 characters
hardware_type

Hardware type used for the short link request

string | null
<= 255 characters
hydra:totalItems
integer
hydra:view
object
@id
string format: iri-reference
@type
string
hydra:first
string format: iri-reference
hydra:last
string format: iri-reference
hydra:previous
string format: iri-reference
hydra:next
string format: iri-reference
Example
{
"@id": "string",
"@type": "string",
"hydra:first": "string",
"hydra:last": "string",
"hydra:previous": "string",
"hydra:next": "string"
}
hydra:search
object
@type
string
hydra:template
string
hydra:variableRepresentation
string
hydra:mapping
Array<object>
object
@type
string
variable
string
property
string | null
required
boolean

Client ID or API key isn’t active or invalid!

Account isn’t activated. Please wait or contact to support!

Resource not found

IP address was temporary blocked, because during short time from it was sent many request with invalid credentials. Please wait and try later.