API Documentation

CLI Examples

IP Lookup

$ curl https://am.i.mullvad.net
54.167.83.233
$ http -b https://am.i.mullvad.net
54.167.83.233
$ wget -qO- https://am.i.mullvad.net
54.167.83.233
                  

Country lookup

$ curl https://am.i.mullvad.net/country
United States
                  

City lookup

$ curl https://am.i.mullvad.net/city
Ashburn
                  

API

JSON

$ curl https://am.i.mullvad.net/json
{
 "ip": "54.167.83.233",
 "ip_decimal": 916935657,
 "country": "United States",
 "city": "Ashburn",
 "longitude": -77.4728,
 "latitude": 39.0481,
 "mullvad_exit_ip": false,
 "blacklisted": {
  "blacklisted": true,
  "results": [
   {
    "name": "Project Honeypot",
    "link": "https://www.projecthoneypot.org/about_us.php",
    "blacklisted": false
   },
   {
    "name": "Spamhaus",
    "link": "https://www.spamhaus.org/organization/",
    "blacklisted": true
   }
  ]
 },
 "organization": "Amazon EC2 IAD prefix"
}
                  

Plain output

$ curl https://am.i.mullvad.net/ip
54.167.83.233
                  

Test if port is reachable

$ curl https://am.i.mullvad.net/port/8080
{
    "ip": "54.167.83.233",
    "port": 8080,
    "reachable": false
}