List edge nodes
GET
/analytics/nodes
const url = 'https://api.nsin.ir/analytics/nodes';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/nodes \ --header 'Authorization: Bearer <token>'Active edge nodes (points of presence). Use name as the node filter
on /analytics/traffic-by-node and /analytics/origins.
Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”Edge nodes.
Media type application/json
object
data
Array<object>
object
name
Node identifier used in filters.
string
label
Human-readable name.
string
country
ISO country code.
string
Example generated
{ "data": [ { "name": "example", "label": "example", "country": "example" } ]}Missing, malformed, revoked or expired API key — or the owning account is inactive.
Media type application/json
The single error shape used by every endpoint.
object
error
required
Human-readable description of what went wrong.
string
Examples
Example invalidKey
{ "error": "invalid API key"}The key exceeded its request budget (300 requests per minute by default).
Media type application/json
The single error shape used by every endpoint.
object
error
required
Human-readable description of what went wrong.
string
Examples
Example limited
{ "error": "rate limit exceeded"}