What this API does
The IPify API offers developers a straightforward method to obtain the public IP address of their clients in real-time. It supports both IPv4 and IPv6, accommodating modern and legacy network infrastructures. The API is designed for ease of integration, delivering responses in plain text, JSON, or JSONP formats, which makes it compatible with various platforms and frontend or backend technologies.
How it works
Developers can send HTTP GET requests to retrieve the public IP address. The API returns the IP address in multiple formats (plain text, JSON, or JSONP) based on the request. Example endpoints include retrieving a public IP address for immediate use in applications or including it in network diagnostics.
Authentication
No authentication is required, allowing developers to start querying the API immediately without any registration or API keys.
Example usage
https://api.ipify.org- Retrieves the public IP address in plain text format.https://api.ipify.org?format=json- Retrieves the public IP address in JSON format.https://api.ipify.org?format=jsonp&callback=myCallback- Retrieves the public IP address in JSONP format.
Limits
The IPify API does not specify any rate limits. Developers can use the API freely without concerns about request quotas.
Ideal use cases
- Implementing geo-location services in web and mobile applications.
- Monitoring and logging access IPs for security purposes.
- Performing network diagnostics from client-side applications.
- Integrating IP retrieval functionality into custom software solutions.