Gobsly - Documentation

Gobsly is an API that enables you to fetch location data from your users, such as currency, city, and country information, and deliver tailored content accordingly.

Calling the API

To obtain user location information, make an API call from your front end, and we will promptly provide you with details such as city, currency, and country.

curl --location 'https://api.gobsly.com/location/v1/?apiKey=<YOUR-API-KEY>'

You can also leverage our JavaScript SDK.

API Response

When our API successfully retrieves the user's location data, you will receive an object like this:

{
  capital: string | null;
  city: string | null;
  continentName: string | null;
  countryCode: string | null;
  countryName: string | null;
  currencyCode: string | null;
  ipAddress: string | null;
  latitude: number | null;
  longitude: number | null;
  phoneCode: string | null;
  population: number | null;
}

Last updated