The IPify API is a simple and free tool that allows you to easily retrieve your current IP address. Whether you need this information for debugging, logging, or tracking, IPify provides a straightforward and reliable solution.
How It Works
IPify API is designed to return your public IP address in a quick and easy manner. You can retrieve the IP address in various formats, including JSON, plain text, or XML, depending on your specific needs.
Sample API URL
To get your current IP address in JSON format, use the following API URL:
https://api.ipify.org?format=json
API Endpoints
1. Get Your IP Address
- Endpoint:
/
- Method:
GET
- Description: Retrieves your current IP address.
Example Request
To fetch your current IP address in JSON format, make a GET request to:
GET https://api.ipify.org?format=json
Response Details
ip
: Your current public IP address.
Customizing the Request
The IPify API allows you to receive your IP address in different formats by adjusting the format
parameter:
- Plain Text:
https://api.ipify.org?format=text
- JSON:
https://api.ipify.org?format=json
- XML:
https://api.ipify.org?format=xml
Integration
Integrate the IPify API into your applications, scripts, or websites to easily obtain the current IP address of your users or servers. It’s perfect for logging, debugging, and various other use cases where IP information is needed.