Skip to content
RedirHub/API
Sign inGet API key
Redirects · redirect.count
GET/redirect/countredirect.count

Count redirects

GET /redirect/count is part of the Redirects group. Its parameters and response shape below are generated from the live OpenAPI document.

Base URL
https://api.redirhub.com/v1
Auth
Bearer token
Idempotent
Yes
Returns
application/json

The request

Call GET /redirect/count with your bearer token. Narrow or order the result with the query parameters below.

# Count redirects
curl "https://api.redirhub.com/v1/redirect/count" \
  -H "Authorization: Bearer $REDIRHUB_TOKEN"

Query parameters

ParameterDescription
sortoptionalstringSort results by field. Prefix with - for descending order. Available sorts: id, created_at, updated_atid-idcreated_at-created_atupdated_at-updated_at
filteroptionalobjectFilter results by one or more fields. Available filters: id, host, tld, handler, destination, search, tags, traffic, dns_correct, created_after, created_before
filter[id]optionalstring
filter[host]optionalstring
filter[tld]optionalstring
filter[handler]optionalstring
filter[destination]optionalstring
filter[search]optionalstring
filter[tags]optionalstring
filter[traffic]optionalstring
filter[dns_correct]optionalstring
filter[created_after]optionalstring
filter[created_before]optionalstring

The response

A 200 returns the record as JSON.

{
  "total": 1,
  "paused": 1
}

Status codes

200
SuccessRedirect totals for the current filter.
401
UnauthenticatedUnauthenticated
429
Too many requestsToo many requests