Get the edge proxy IP
Auth: Authorization: Bearer nsin_… or X-Api-Key: nsin_… — see API keys.
What to point DNS at for an externally-hosted zone. For managed domains NSIN sets this automatically when you mark a record proxied.
Prefer cname for subdomains when it is present: a CNAME follows any
future change of our addresses, an A record does not. The apex has to
use the A addresses in ips. Per-record values (which honour address
pins) are on each record's edge_target in the records listing.
Responses
200Proxy IP.
Content type: application/json
- ipstring
The first edge address (legacy single value).
- ipsarray of string
Every edge address a proxied record publishes.
- cnamestring
Hostname to CNAME proxied subdomains at. Empty when not configured.
{
"ip": "string",
"ips": [
"string"
],
"cname": "edge.nsin.ir"
}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.
{
"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.
{
"error": "rate limit exceeded"
}Example request
curl -X GET "https://api.nsin.ir/proxy-ip/" \
-H "Authorization: Bearer $NSIN_API_KEY"