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

List edge node countries

gethttps://api.nsin.ir/analytics/node-countries

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

The distinct countries NSIN's edge nodes are in, sorted — the values the nodeCountry filter of /analytics/logs accepts. Needs no domain.

Responses

200Country codes.

Content type: application/json

  • dataarray of string
json
{
  "data": [
    "string"
  ]
}
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/analytics/node-countries" \
  -H "Authorization: Bearer $NSIN_API_KEY"
esc