Estatísticas

Notes
Especialista
A chave de API deve ser enviada como um token de portador no cabeçalho de autorização da solicitação. Obtenha sua chave de API.
Show

API endpoint:

GET
https://boky.in/api/v1/stats/{id}

Exemplo de solicitação:

curl --location --request GET 'https://boky.in/api/v1/stats/{id}?name={name}&from={from}&to={to}' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Parâmetro
Tipo
Descrição
name
required string
O nome da estatística. Possible values are: browser, cities, clicks, clicks_hours, country, device, language, platform, referrer.
from
required string
The starting date in Y-m-d format.
to
required string
The ending date in Y-m-d format.
search
optional string
The search query.
search_by
optional string
Procurar por. Possible values are: value for Entrada. Defaults to: url.
sort_by
optional string
Ordenar por. Possible values are: count for Count, value for Entrada. Defaults to: count.
sort
optional string
Ordenar. Possible values are: desc for Descendente, asc for Ascendente. Defaults to: desc.
per_page
optional int
Resultados por página. Possible values are: 10, 25, 50, 100. Defaults to: 10.