Skip to content
nsin docs

Count outstanding recommendations

GET
/recommendations/count
curl --request GET \
--url 'https://api.nsin.ir/recommendations/count?domain=example.com' \
--header 'Authorization: Bearer <token>'

How many of the domain’s checklist items need action for you: warn items you have not dismissed. Cheap enough to poll — it only reads the cached checklist. Requires domain.view.

domain
required
string

The domain name (for example example.com). These endpoints take the domain as a query parameter rather than a path segment.

Example
example.com

Outstanding count.

Media type application/json
object
count
integer
computing

Present (and true) only when the checklist for this domain has not been computed yet: the server has started computing it in the background and count is 0 for now. Poll again; the field disappears once the checklist exists. This endpoint never computes the checklist itself — it is polled by the panel’s sidebar badge from every page — so its answer is always immediate.

boolean
Example generated
{
"count": 1,
"computing": true
}

The domain query parameter is missing.

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 missing
{
"error": "domain is required"
}

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