APIYard
Back to APIs
DeveloperBearer TokenFree tier

IPinfo

IPinfo provides highly accurate IP data including geolocation, ASN, carrier, privacy detection, and company information.

Base URL

https://ipinfo.io
IPgeolocationASNVPN detectioncompany

Endpoints

GET/{ip}/json

Get full details for an IP address.

const response = await fetch("https://ipinfo.io/8.8.8.8/json", {
  method: "GET",
  headers: {
  "Content-Type": "application/json",
  "Authorization": "Bearer YOUR_ACCESS_TOKEN"
  }
});

const data = await response.json();
console.log(data);

Response Preview

{
  "ip": "8.8.8.8",
  "hostname": "dns.google",
  "city": "Mountain View",
  "region": "California",
  "country": "US",
  "loc": "37.4056,-122.0775",
  "org": "AS15169 Google LLC",
  "timezone": "America/Los_Angeles"
}