Skip to content

ProxySpace-pro/Geolocation-ts-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Geolocation-ts-example

Example for ProxySpace GEO Location API written in Typescript

Usage

ts-node api-req.ts <ip>


If IP is not provided it fall backs on your own IP.

Example output:

OK
{
  asn_number: 502xx,
  asn_organization: 'T-Mobile Thuis BV',
  city: 'Arnhem',
  country: 'Netherlands',
  country_code: 'NL',
  ip: '94.157.xx.xx',
  latitude: 52.xxx,
  longitude: 5.xxx,
  postal_code: '68xx',
  time_zone: 'Europe/Amsterdam'
}
Speed 131.55 MS

Installation

npm i

Requirements

ts-node => npm -g i ts-node