@as207111/whois
Version:
Geolocation, Proxy, VPN or Tor exit address detection, for free.
31 lines (27 loc) • 424 B
text/typescript
interface ASN {
asn: number;
name: string;
isp: string;
network: string;
}
interface Company {
name: string;
}
interface Privacy {
proxy: boolean;
hosting: boolean;
mobile: boolean;
}
export interface APIResponse {
ip: string;
city: string;
postal: string;
region: string;
country: string;
lat: number;
long: number;
timezone: string;
asn: ASN;
company: Company;
privacy: Privacy;
}