Get the edge proxy IP
const url = 'https://api.nsin.ir/proxy-ip/';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/proxy-ip/ \ --header 'Authorization: Bearer <token>'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.
Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”Proxy IP.
object
The first edge address (legacy single value).
Every edge address a proxied record publishes.
Hostname to CNAME proxied subdomains at. Empty when not configured.
Example
{ "cname": "edge.nsin.ir"}Missing, malformed, revoked or expired API key. (A valid key whose
account has been deactivated gets 403 account is inactive instead.)
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"}