What is it?
The Diwigo IP API returns the public IP address (IPv4 or IPv6) the request comes from, as JSON.
It answers with JSON and is included in the free plan: 10,000 requests per API key and per month.
Example request
GET https://landing.diwigo.com/api/?key=YOUR_API_KEY&myip
Parameters
| Parameter | Description |
|---|---|
key | Your API key (required) |
myip | No value needed |
Example response
{
"ip": "203.0.113.7",
"timestamp": "2026-11-06T20:30:00+01:00"
}
Code examples
cURL
curl "https://landing.diwigo.com/api/?key=YOUR_API_KEY&myip"
JavaScript
const res = await fetch("https://landing.diwigo.com/api/?key=YOUR_API_KEY&myip");
const data = await res.json();
console.log(data);
PHP
<?php
$response = file_get_contents("https://landing.diwigo.com/api/?key=YOUR_API_KEY&myip");
$data = json_decode($response, true);
print_r($data);
Python
import requests
response = requests.get("https://landing.diwigo.com/api/?key=YOUR_API_KEY&myip")
print(response.json())
Use cases
- Show visitors their public IP
- Check the IP of a server or VPN
- Dynamic DNS scripts
My IP address: questions and answers
What does the My IP address API do?
The Diwigo IP API returns the public IP address (IPv4 or IPv6) the request comes from, as JSON.
How do I call the My IP address API?
Send a GET request to https://landing.diwigo.com/api/?key=YOUR_API_KEY&myip with your own API key instead of YOUR_API_KEY. It answers with JSON.
Is the My IP address API free?
Yes, it is included in the free plan: 10,000 requests per API key and per calendar month, shared by all Diwigo endpoints. Higher limits are available on request.