all-about-apikey/ipapi
Muhammad Daffa 2eba183f8b Added 13 templates 2022-08-18 14:40:21 +07:00
..
README.md Added 13 templates 2022-08-18 14:40:21 +07:00

README.md

ipapi

Description

Real-time Geolocation & Reverse IP Lookup REST API

Example Request

  • Curl
curl "http://api.ipapi.com/api/161.185.160.93?access_key={{token}}"
  • Raw
GET /api/161.185.160.93?access_key={{token}} HTTP/1.1
Host: api.ipapi.com
...

Response

  • Success
{
    "ip": "161.185.160.93",
    "hostname": "161.185.160.93",
    "type": "ipv4",
    "continent_code": "NA",
    "continent_name": "North America",
    "country_code": "US",
    "country_name": "United States",
    "region_code": "NY",
    "region_name": "New York",
    "city": "Brooklyn",
    "zip": "11238",
    "latitude": 40.676,
    "longitude": -73.9629,
    "location": {
        ...
    }
}
  • Error
{
    "success":false,
    "error":{
        "code":101,
        "type":"invalid_access_key",
        "info":"You have not supplied a valid API Access Key. [Technical Support: support@apilayer.com]"
    }
}

Regex

[a-z0-9]{32}

Example API key

tue3sv9hzsey1me4l7fwq3t46u5k8wag