Account-wide peak requests per second
const url = 'https://api.nsin.ir/analytics/global-summary/peak?period=3h';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/analytics/global-summary/peak?period=3h' \ --header 'Authorization: Bearer <token>'The highest number of requests served in any single second of the
period, across the same domains /analytics/global-summary covers.
This is a full scan of the request log rather than a lookup, so it is
served on demand and may take a while for long periods. Results are
cached per account; all is refreshed at most once a day.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”Time window, ending now. Same values as /analytics/global-summary,
plus all for the whole retained history. An unrecognised value
falls back to 24h.
Responses
Section titled “ Responses ”Peak requests per second.
object
Highest request count in any single second of the period.
Example generated
{ "peak_rps": 1}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"}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"}The analytics backend is temporarily unreachable. Retry; no data is lost.
The single error shape used by every endpoint.
object
Human-readable description of what went wrong.
Examples
{ "error": "analytics unavailable"}