Link shortener
Link statistics
Retrieve daily clicks and the total for a link over a period of up to 366 days.
GET
https://pqno.app/admin/api/encurtar-link/estatisticaslinkReturns a link's daily click counts and the total for the requested period. Identify the link with the id query parameter.
Set the date range
Send inicio and fim in YYYY-MM-DD format. Both dates are included, and the range can span up to 366 days.
- No dates: the last 30 days, including today.
- Only
fim: the 30 days ending on that date. - Only
inicio: from that date through today.
Invalid dates, a start date after the end date, or ranges longer than 366 days return HTTP 400.
Read the results
| Field | Description |
|---|---|
link | Details of the requested link, including criado_por. |
periodo | The start and end dates used by the query. |
total_cliques | Total clicks recorded during the period. |
cliques_por_dia | An array containing data and cliques for every day in the range, including days with zero clicks. |
Access and metric updates
Queries follow the token's scope: personal links on Pro and company links on Business. A link that does not exist or is outside this scope returns 404.
Today's click count continues to increase throughout the day. For recurring reports, you can store previous results and query the current day again to refresh the report.
Parameters
Header
Authorizationstringrequired- Send Bearer followed by your API token, for example Authorization: Bearer YOUR_TOKEN.
Query parameters
idintegerrequired- Link ID returned when creating or listing links.
iniciostring- First date of the range, in YYYY-MM-DD format. If omitted, the range starts 29 days before fim.
fimstring- Last date of the range, in YYYY-MM-DD format. Default: today. This date is included.

