Estadísticas

Notes
Nivel experto
The API key should be sent as a Bearer token in the Authorization header of the request. Get your API key.
Mostrar

Punto final de API:

GET
https://corta.es/api/v1/stats/{link_id}

Ejemplo de solicitud:

curl --location --request GET 'https://corta.es/api/v1/stats/{link_id}?name={name}&from={from}&to={to}' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Parameter
Tipo
Descripción
name
requerido string
Nombre. Los valores posibles son: click, browser, city, country, device, language, operating_system, referrer.
from
requerido string
Starting date in Y-m-d format.
to
requerido string
Ending date in Y-m-d format.
search
opcional string
Search query.
search_by
opcional string
Buscar por. Los valores posibles son: value for Valor.
sort_by
opcional string
Ordenar por. Los valores posibles son: count for Count, value for Valor. Valor predeterminado: count.
sort
opcional string
Ordenar. Los valores posibles son: desc for Descendente, asc for Ascendente. Valor predeterminado: desc.
per_page
opcional integer
Resultados por página. Los valores posibles son: 10, 25, 50, 100. Valor predeterminado: 100.