Skip to content
GET /api/v1/my-ip

My IP Address

Return the caller's IP address with version and privacy info

Parameters

This endpoint doesn't take any parameters.

Request

Send your key in the X-API-Key header. More languages and patterns live on the code examples page.

curl -s "https://apixies.io/api/v1/my-ip" \
  -H "X-API-Key: YOUR_API_KEY"

Response

The result sits under data in the standard envelope. See the response format guide for errors and status codes.

returns

data.ip
Your public IP address as the API sees it.
data.version
IPv4 or IPv6.
data.is_private
True for private or reserved ranges.
example response 200
{
    "status": "success",
    "http_code": 200,
    "code": "SUCCESS",
    "message": "IP address retrieved",
    "data": {
        "ip": "203.0.113.42",
        "version": "IPv4",
        "is_private": false,
        "checked_at": "2026-09-18T12:00:00+00:00"
    }
}

Authentication and limits

This endpoint needs an API key. Use the sandbox ("try it" above) to test it without registering. See the authentication guide for details.

Standard rate limits apply to this endpoint.

Common use cases

Network diagnostics

Quickly determine your public IP address for firewall configuration, VPN verification, or troubleshooting network connectivity issues.

Dynamic DNS updates

Build a dynamic DNS client that detects IP changes and updates DNS records automatically. Combine with DNS Lookup to verify updates.

IP-based access logging

Log the IP address of API consumers for security auditing, rate limiting, or geographic access control.

More documentation

Get a free API key

A temporary key takes one click and no signup. Register and you get 75 requests/day. Free tier is for development & small projects.

cookies

We use analytics cookies to see how the site gets used. Nothing loads until you accept. Privacy policy