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

Outstanding recommendations across every domain

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

Auth: Authorization: Bearer nsin_… or X-Api-Key: nsin_… — see API keys.

The account-wide checklist: one entry per domain you can see that has at least one outstanding item (warn, not dismissed by you). Domains with nothing outstanding are omitted — summary.domains still counts them.

This endpoint never computes a checklist while you wait. It reads the per-domain cache the other endpoints fill and, for domains with nothing cached yet, starts a few background computes per call and reports them in pending; poll while computing is true and the list fills in. The assembled answer is then cached per caller for 5 minutes, so one request covers the whole account however many domains it has.

Responses

200Outstanding items per domain.

Content type: application/json

  • dataarray of object
    Item fields
    • domain_idinteger
    • domainstring
    • itemsarray of Recommendation

      Outstanding items only, worst severity first.

      Item fields
      • keystring

        Stable identifier — pass it to the dismiss endpoints. New checks are added over time, so treat this as an open set rather than a closed enum.

        One of: "cache_off" "slow_response" "errors_5xx" "images_not_webp" "ssl_expiring" "ssl_upload_expired" "no_robots" "no_sitemap" "no_https_redirect" "no_records" "apex_unreachable" "www_unreachable" "www_redirect_bypassed" "proxy_none" "proxy_off" "ai_markdown" "bot_cache_off" "origin_protocol" "origin_ip_allowlist" "gateway_quota" "traffic_quota" "uptime_sms" "external_dns_unreachable" "external_dns_use_cname"
      • statusstring

        ok is a passing check; warn needs action.

        One of: "ok" "warn"
      • severitystring

        Also decides dismissal: low can be hidden for good, medium for 7 days, high not at all.

        One of: "high" "medium" "low"
      • categorystring

        plan covers what a subscription buys — the gateway and traffic allowances, and entitlements such as uptime alerts by SMS.

        One of: "speed" "seo" "reachability" "security" "plan"
      • titlestring
      • detailstring
      • statsobject

        Supporting figures behind the finding.

      • actionRecommendationAction

        Where to go to act on the recommendation. Either feature (a screen in the panel) or url (a page outside it), never both.

        Fields
        • labelstring
        • featurestring

          Logical target, e.g. cache.

        • urlstring (uri)

          Absolute link to a page outside the panel — the published edge IP list, a documentation page — for a fix that is not a panel screen.

        • queryobject

          Parameters that pre-filter the target view.

      • dismissedboolean

        Dismissed by the calling user. Dismissals are per user, not per domain.

      • dismissibleboolean

        Whether this item may be dismissed at all. False for every passing check and for every high warning — dismissing one of those is refused with 409, and has no effect even if a row exists.

      • dismissed_untilstring (date-time)

        Present only while a time-limited (medium) dismissal is in force: when the item comes back. A low dismissal never expires, so it has no date.

    • passinginteger

      Checks that passed (or were dismissed) on this domain.

    • checked_atstring (date-time)

      When this domain's checklist was last computed.

  • summaryobject
    Fields
    • domainsinteger

      Domains looked at.

    • affectedinteger

      Domains with at least one outstanding item.

    • issuesinteger
    • highinteger
    • mediuminteger
    • lowinteger
  • pendinginteger

    Domains whose checklist has not been computed yet.

  • computingboolean

    True while pending is above zero. The list is incomplete: the domains still being checked may hold items that are not in data yet, so this is "still looking", not "all clear".

  • generated_atstring (date-time)
json
{
  "data": [
    {
      "domain_id": 0,
      "domain": "string",
      "items": [
        {
          "key": "cache_off",
          "status": "ok",
          "severity": "high",
          "category": "speed",
          "title": "string",
          "detail": "string",
          "stats": {},
          "action": {
            "label": null,
            "feature": null,
            "url": null,
            "query": null
          },
          "dismissed": true,
          "dismissible": true,
          "dismissed_until": "2026-01-01T00:00:00Z"
        }
      ],
      "passing": 0,
      "checked_at": "2026-01-01T00:00:00Z"
    }
  ],
  "summary": {
    "domains": 0,
    "affected": 0,
    "issues": 0,
    "high": 0,
    "medium": 0,
    "low": 0
  },
  "pending": 0,
  "computing": true,
  "generated_at": "2026-01-01T00:00:00Z"
}
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"
}
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/overview" \
  -H "Authorization: Bearer $NSIN_API_KEY"
esc