nsindocs Search the docs⌘K
  1. Docs
  2. API reference
  3. Recommendations

Count outstanding recommendations

gethttps://api.nsin.ir/recommendations/count

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 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.

json
{
  "count": 0,
  "computing": true
}
400The domain query parameter is missing.

Content type: application/json

  • errorstringrequired

    Human-readable description of what went wrong.

json
{
  "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.

json
{
  "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.

json
{
  "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.

json
{
  "error": "rate limit exceeded"
}

Example request

bash
curl -X GET "https://api.nsin.ir/recommendations/count?domain=example.com" \
  -H "Authorization: Bearer $NSIN_API_KEY"
esc