Count outstanding recommendations
Auth: Authorization: Bearer nsin_… or X-Api-Key: nsin_… — see API keys.
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.
Query parameters
- domainstringrequiredquery
The domain name (for example
example.com). These endpoints take the domain as a query parameter rather than a path segment.
Responses
200Outstanding count.
Content type: application/json
- countinteger
- computingboolean
Present (and
true) only when the checklist for this domain has not been computed yet: the server has started computing it in the background andcountis0for 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.
{
"count": 0,
"computing": true
}400The domain query parameter is missing.
Content type: application/json
- errorstringrequired
Human-readable description of what went wrong.
{
"error": "domain is required"
}401Missing, malformed, revoked or expired API key. (A valid key whose
account has been deactivated gets 403 account is inactive instead.)
Content type: application/json
- errorstringrequired
Human-readable description of what went wrong.
{
"error": "invalid API key"
}404No such domain, or it is not visible to this account. Domains you cannot access are reported as not found rather than forbidden.
Content type: application/json
- errorstringrequired
Human-readable description of what went wrong.
{
"error": "read-only API key"
}429The key exceeded its request budget (300 requests per minute by default).
Content type: application/json
- errorstringrequired
Human-readable description of what went wrong.
{
"error": "rate limit exceeded"
}Example request
curl -X GET "https://api.nsin.ir/recommendations/count?domain=example.com" \
-H "Authorization: Bearer $NSIN_API_KEY"