Skip to content

Cache totals with per-node breakdown

GET
/domains/{domain}/cache/keys/summary
curl --request GET \
--url https://api.nsin.ir/domains/example.com/cache/keys/summary \
--header 'Authorization: Bearer <token>'

Entry count and byte size for the domain, broken down by the edge node that cached each entry. Accepts the same filters as /domains/{domain}/cache/keys. Requires domain.view.

domain
required
string

The domain name (for example example.com) — not a numeric id.

Example
example.com
hostname
string
host
string
node
string
path
string

Totals.

Media type application/json
object
entries
integer
size_bytes
integer
by_node
Array<object>
object
node
string
entries
integer
size_bytes
integer
Example generated
{
"entries": 1,
"size_bytes": 1,
"by_node": [
{
"node": "example",
"entries": 1,
"size_bytes": 1
}
]
}

Missing, malformed, revoked or expired API key — or the owning account is inactive.

Media type application/json

The single error shape used by every endpoint.

object
error
required

Human-readable description of what went wrong.

string
Examples
Example invalidKey
{
"error": "invalid API key"
}

No such domain, or it is not visible to this account. Domains you cannot access are reported as not found rather than forbidden.

Media type application/json

The single error shape used by every endpoint.

object
error
required

Human-readable description of what went wrong.

string
Example
{
"error": "read-only API key"
}

The key exceeded its request budget (300 requests per minute by default).

Media type application/json

The single error shape used by every endpoint.

object
error
required

Human-readable description of what went wrong.

string
Examples
Example limited
{
"error": "rate limit exceeded"
}

The cache registry is temporarily unreachable.

Media type application/json

The single error shape used by every endpoint.

object
error
required

Human-readable description of what went wrong.

string
Example
{
"error": "read-only API key"
}