Get the NsinNabz analytics tag
const url = 'https://api.nsin.ir/domains/example.com/analytics-tag';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/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.
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.comResponses
Section titled “ Responses ”The domain’s tag, or null in both fields.
A domain’s NsinNabz tag. Both fields are null when there is no tag.
object
The <script> tag the edge inserts into the domain’s HTML pages.
When the tag last changed (UTC).
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"}{ "tag": null, "updated_at": null}Missing, malformed, revoked or expired API key. (A valid key whose
account has been deactivated gets 403 account is inactive instead.)
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"}