Geolocation

Geolocation provides the location of a visitor on a city level. Geolocation is based on IP address of the visit.

await fp.get()
// webhook data will contain this information:
{
  "ip": "89.112.151.14",
  "ipLocation": {
    "accuracyRadius": 5,
    "latitude": 37.987,
    "longitude": -1.13,
    "postalCode": "30006",
    "timezone": "Europe/Madrid",
    "city": {
      "name": "Murcia"
    },
    "continent": {
      "code": "EU",
      "name": "Europe"
    },
    "country": {
      "code": "ES",
      "name": "Spain"
    },
    "subdivisions": [
      {
        "isoCode": "MC",
        "name": "Murcia"
      },
      {
        "isoCode": "MU",
        "name": "Murcia"
      }
    ]
  }
}

Updated 3 months ago



Geolocation


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.