IP geolocation lookup

Version: 1.0.1
address/ip-geolocation
superface

Lookup address and geolocation coordinates from IP address.

IP Geolocation

Retrieve address and geolocation coordinates from IP address

IP address
IP address
Country code
Country
Region
Locality
Postal code
Time zone
Latitude
Longitude

1. Install

npx @superfaceai/cli install address/ip-geolocation

2. Use in your code

const { SuperfaceClient } = require('@superfaceai/one-sdk');

const sdk = new SuperfaceClient();

async function run() {
  // Load the installed profile
  const profile = await sdk.getProfile('address/ip-geolocation');

  // Use the profile
  const result = await profile
    .getUseCase('IpGeolocation')
    .perform({
      ipAddress: '8.8.8.8'
    });

  return result.unwrap();
}

run();

3. Add providers