Browse cached entries
const url = 'https://api.nsin.ir/domains/example.com/cache/keys?limit=100&offset=0&sort=size&dir=asc';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.nsin.ir/domains/example.com/cache/keys?limit=100&offset=0&sort=size&dir=asc' \ --header 'Authorization: Bearer <token>'A page of the domain’s individual cached objects.
Note the two host/path pairs on each row: host and path are the
human-readable request URL, while hostname (the storage namespace) and
store_path are the stored identity you must echo back when purging a
specific row. Requires domain.view.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”The domain name (for example example.com) — not a numeric id.
Example
example.comQuery Parameters
Section titled “Query Parameters ”Sort column. Anything else falls back to cached_at.
Exact match on the storage namespace host.
Match on the request host — substring, or a * wildcard.
Edge node that cached the entry. Case-sensitive as stored.
Match on the request path — substring, or a * wildcard.
Responses
Section titled “ Responses ”A page of cached entries.
object
One cached object. host/path/query are the readable request URL;
hostname/store_path/key_hash/node are the stored identity to
echo back when purging this specific row.
object
Exact request host, e.g. sub.example.com.
Exact request path, e.g. /assets/app.js.
Raw query string, without the leading ?.
Cache-key suffix separating this entry from other variants of the same URL (device, image format, CORS origin, …). Empty for the plain variant.
Edge node that cached it.
Storage namespace host — *.example.com for a wildcard record.
Raw stored path. Needed for purging; not for display.
Reconstructed storage key, for debugging.
Bytes.
Example generated
{ "rows": [ { "domain_id": 1, "domain": "example", "host": "example", "path": "example", "query": "example", "variant": "example", "method": "example", "node": "example", "hostname": "example", "store_path": "example", "key_hash": "example", "cache_key": "example", "l2_key": "example", "size": 1, "cached_at": "2026-04-15T12:00:00Z", "expires_at": "2026-04-15T12:00:00Z" } ], "total": 1, "limit": 1, "offset": 1}Missing, malformed, revoked or expired API key — or the owning account is inactive.
The single error shape used by every endpoint.
object
Human-readable description of what went wrong.
Examples
{ "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.
The single error shape used by every endpoint.
object
Human-readable description of what went wrong.
Example
{ "error": "read-only API key"}The key exceeded its request budget (300 requests per minute by default).
The single error shape used by every endpoint.
object
Human-readable description of what went wrong.
Examples
{ "error": "rate limit exceeded"}The cache registry is temporarily unreachable.
The single error shape used by every endpoint.
object
Human-readable description of what went wrong.
Example
{ "error": "read-only API key"}