API Documentation

CLI Examples

IP Lookup

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

Country lookup

$ curl https://am.i.mullvad.net/country
Sweden
                  

City lookup

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

API

JSON

$ curl https://am.i.mullvad.net/json
{
    "ip": "127.0.0.1",
    "country": "Sweden",
    "city": "Gothenburg",
    "longitude": 11.9745,
    "latitude": 57.7088,
    "mullvad_exit_ip": true,
    "mullvad_exit_ip_hostname": "server",
    "organization": "Mullvad",
    "mullvad_server_type": "Wireguard",
    "blacklisted": {
      "blacklisted": false,
      "results": [
        {
          "name": "Project Honeypot",
          "link": "https://www.projecthoneypot.org/about_us.php",
          "blacklisted": false
        },
        {
          "name": "Spamhaus",
          "link": "https://www.spamhaus.org/organization/",
          "blacklisted": false
        }
      ]
    }
  }
                  

Plain output

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

Test if port is reachable

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