Developer API

Public IP JSON API

Use a plain text endpoint when you only need the requester public IP, or switch to the JSON response when you also want ASN, organization, and IP location context.

Endpoints

  • Plain text: https://routerwiz.com/api/ip
  • JSON: https://routerwiz.com/api/ip/json

Both endpoints are GET-only and return Access-Control-Allow-Origin: *, so you can call them directly from browser JavaScript, setup pages, dashboards, or support tools.

Example: plain text

curl https://routerwiz.com/api/ip

Example: JSON

curl https://routerwiz.com/api/ip/json

{
  "result": true,
  "ip": "203.0.113.10",
  "ip_version": 4,
  "country_code": "KR",
  "country_name": {
    "en": "South Korea",
    "ko": "대한민국"
  },
  "continent_code": "AS",
  "continent_name": {
    "en": "Asia",
    "ko": "아시아"
  },
  "region": {
    "en": "Seoul",
    "ko": "서울"
  },
  "city": {
    "en": "Seoul",
    "ko": "서울"
  },
  "latitude": 37.5665,
  "longitude": 126.978,
  "asn": "4766",
  "organization": "Korea Telecom",
  "source": {
    "geo": "DB-IP Lite",
    "asn": "IPtoASN"
  },
  "observed_at_utc": "2026-05-06T09:40:15.9557479+00:00"
}

Good fits for this API

  • Show the current public IP before port forwarding or DDNS setup starts.
  • Attach WAN-side context to DDNS, NAT, ISP, or support diagnosis flows.
  • Prefill a public IP widget for dashboards, installers, or helper apps.

Need the full API list?

RouterWiz now provides more than just the public IP endpoint. See the central API docs for DNS, DDNS, port checks, public service checks, and router workflow helper APIs.

Open RouterWiz API Docs