Icanhazip

API

Simple API to retrieve your public IP address

Visit Website

Overview

Icanhazip is a lightweight RESTful API for developers to get their public IP address quickly. Its core endpoint is a GET request to the root URL, returning the client’s IPv4/IPv6 address in plain text by default. Adding .json to the endpoint (e.g., /json) provides structured JSON with IP type metadata. Ideal use cases include network debugging, verifying VPN/proxy status, automating IP checks in scripts, or integrating basic IP detection into apps. It prioritizes speed and simplicity with minimal latency.

Example Integration (JavaScript)

script.js JS

fetch('https://major.io/icanhazip-com-faq/')
  .then(res => res.json())
  .then(data => console.log(data))
  .catch(err => console.error(err));

Key Features

  • RESTful interface
  • No authentication required
  • Plain text & JSON response options
  • IPv4/IPv6 support
  • Low latency

Frequently Asked Questions

? Is Icanhazip free to use?

Yes, Icanhazip is free for personal and commercial use without any restrictions.

? Does it require an API Key?

No, Icanhazip does not need an API key or authentication to access its endpoints.

? What is the response format?

Default is plain text (e.g., 192.168.1.1). Adding .json to the URL returns JSON with IP and type (e.g., {"ip":"2001:db8::1","ip_type":"ipv6"}).

Top Alternatives

Ipify API Search Google
IPinfo API Search Google
WhatIsMyIP API Search Google

People Also Ask about Icanhazip

Icanhazip vs Ipify APIIcanhazip vs IPinfo APIIcanhazip vs WhatIsMyIP API Icanhazip 2025 review

Tool Info

Pricing Free
Category Development
Platform Public API

Pros

  • Extremely easy to integrate (single GET request)
  • No rate limits for standard use
  • Completely free
  • Supports both IPv4 and IPv6

Cons

  • No geolocation data included
  • No service level agreement (SLA)
  • Limited advanced features

More Development Tools