IpForensics
HomeGoto Dashboard
  • 📖Introduction
  • Protocols
    • HTTP Json Protocol
    • Response headers
    • Error Codes
  • Features
    • Pay-As-You-Go
    • API Security
    • HTTPS
  • Api Response Data
    • 📶Mobile Carrier
    • 🏥ASN
    • 📊General
    • ⏲️Timezone
    • 💵Currency
    • 👨‍💻Threat Detector
    • 🌐Company
    • 🌏Geolocation
    • 🌍Advance Geolocation
    • 💻Device Information
    • ✈️IATA/ICAO
  • API
    • 🚀Intro
    • 📊IP & Threat Intelligence API
      • Single Lookup
      • Origin Lookup
    • 💹Exchange Rate API
      • Currency Endpoint
      • Live Rate Endpoint
      • Historical Rate Endpoint
      • Currency Conversion Endpoint
      • Currency Swap Endpoint
  • Code Implantation
    • Block Automated Visits From Hosting Providers
    • Block VPN/Proxy and Tor users
    • Redirect by Country and Location Offers
    • Content Personalisation
    • Get the location from an IP Address in Javascript
    • How to get a client's IP address using JavaScript
    • HTML5 Geolocation with IpForensics fallback
    • Blocking Users by Country
    • Detecting Users Currency or Currency Personalisation
    • Preventing Free Trial Abuse
    • Device-Based Ads and App Binary
    • Detect Users Device/Computer and Operating System
    • Detect visitors from EU countries
    • How to detect and prevent credit card fraud
    • How to convert amounts to website visitor currency
  • MISC
    • Changelog
    • FAQs
    • Troubleshooting
    • API Status
    • Rate Limits
Powered by GitBook
On this page

Was this helpful?

  1. Api Response Data

Geolocation

The IpForensics API supports looking up the Geolocation of an IP Address.

We return the geolocation data belonging to the IP Address.

Sample Response

    "geolocation": {
        "calling_code": "234",
        "capital": "Abuja",
        "name": "Nigeria",
        "code": "NG",
        "city": "Lagos",
        "emoji": "🇳🇬",
        "emoji_unicode": "U+1F1F3 U+1F1EC",
        "latitude": 6.44745,
        "longitude": 3.39025,
        "language": {
            "name": "English",
            "code": "en",
            "native": "English"
        },
        "in_eu": false
    },
Field
Description

calling_code

The International Calling Code for the country where the IP Address is located.

capital

The name of the state capital of the country where the IP Address is located.

name

The name of the country where the IP Address is located.

code

The ISO 3166-2 code for the region.

city

The name of the city from where the IP Address is located.

emoji

An emoji version of the flag of the country where the IP Address is located.

emoji_unicode

The Unicode for the emoji flag.

latitude

An approximate latitudinal location for the IP Address. Often near the center of population.

longitude

An approximate longitudinal location for the IP Address. Often near the center of population

language

Language spoken in the country associated with the IP.

name: The name of the main language associated with the IP location.

native: The native name of the main language associated with the IP location.

in_eu

PreviousCompanyNextAdvance Geolocation

Last updated 2 years ago

Was this helpful?

code: The 2 letter code of the main language associated with the IP location.

Returns true or false depending on whether the country is a recognized member of the European Union. The list of all EU countries is compiled from list on the European Union website.

🌏
ISO 639-1
this