Skip to content
nsin docs

Get the NsinNabz analytics tag

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

The NsinNabz <script> tag the edge inserts into this domain’s HTML pages, and when it last changed. Both fields are null when the domain has no tag. Requires domain.view, so read-only keys may call it.

domain
required
string

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

Example
example.com

The domain’s tag, or null in both fields.

Media type application/json

A domain’s NsinNabz tag. Both fields are null when there is no tag.

object
tag
required

The <script> tag the edge inserts into the domain’s HTML pages.

string | null
updated_at
required

When the tag last changed (UTC).

string | null format: date-time
Examples
{
"tag": "<script async src=\"https://nabz-s.nsincloud.ir/s.js\" data-site=\"site_AAAA1111\" data-edge=\"1\"></script>",
"updated_at": "2026-09-30T08:15:04.123456Z"
}

Missing, malformed, revoked or expired API key. (A valid key whose account has been deactivated gets 403 account is inactive instead.)

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"
}