Get the domain's advisory checklist
const url = 'https://api.nsin.ir/recommendations?domain=example.com';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/recommendations?domain=example.com' \ --header 'Authorization: Bearer <token>'Per-domain advice derived from analytics, configuration and live probes.
Items with status: ok are passing checks; warn items suggest an
action. Dismissed items are still returned, flagged dismissed: true.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”The domain name (for example example.com). These endpoints take the
domain as a query parameter rather than a path segment.
Example
example.comResponses
Section titled “ Responses ”Checklist items.
object
object
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.
ok is a passing check; warn needs action.
Supporting figures behind the finding.
object
Where to go to act on the recommendation.
object
Logical target, e.g. cache.
Parameters that pre-filter the target view.
object
Dismissed by the calling user. Dismissals are per user, not per domain.
Example
{ "data": [ { "key": "cache_off", "status": "ok", "severity": "high", "category": "speed" } ]}The domain query parameter is missing.
The single error shape used by every endpoint.
object
Human-readable description of what went wrong.
Examples
{ "error": "domain is required"}Missing, malformed, revoked or expired API key — or the owning account is inactive.
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"}