Links · links.count
GET/links/countlinks.count
Count
GET /links/count is part of the Links group. Its parameters and response shape below are generated from the live OpenAPI document.
- Base URL
- https://api.power301.com/v1
- Auth
- Bearer token
- Idempotent
- Yes
- Returns
- application/json
The request
Call GET /links/count with your bearer token. Narrow or order the result with the query parameters below.
# Count
curl "https://api.power301.com/v1/links/count" \
-H "Authorization: Bearer $POWER301_TOKEN"Query parameters
| Parameter | Description |
|---|---|
| sortoptionalstring | Sort results by field. Prefix with - for descending order. Available sorts: id, created_at, updated_at, total_clicksid-idcreated_at-created_atupdated_at-updated_attotal_clicks-total_clicks |
| filteroptionalobject | Filter results by one or more fields. Available filters: id, host, path, tld, handler, type, destination, search, tags, traffic, dns_correct, status, created_after, created_before |
| filter[id]optionalstring | |
| filter[host]optionalstring | |
| filter[path]optionalstring | |
| filter[tld]optionalstring | |
| filter[handler]optionalstring | |
| filter[type]optionalstring | |
| filter[destination]optionalstring | |
| filter[search]optionalstring | |
| filter[tags]optionalstring | |
| filter[traffic]optionalstring | |
| filter[dns_correct]optionalstring | |
| filter[status]optionalstring | |
| filter[created_after]optionalstring | |
| filter[created_before]optionalstring |
The response
A 200 returns the record as JSON.
{
"total": 1,
"paused": 1,
"dns_issue": 1,
"no_clicks": 1,
"refreshing": true
}Status codes
200
SuccessRecord totals for the current filter: all of them, the paused ones, the ones whose hostname does not point to RedirHub, and the ones with no clicks in the last four weeks (this week included). Totals are kept for a minute; for a workspace with 10,000 links or more, older totals are returned at once with
refreshing true while fresh ones are computed, so ask again a few seconds later.401
UnauthenticatedUnauthenticated
429
Too many requestsToo many requests
