GeoJS API
Overview
GeoJS is a free, no-auth-required IP geolocation API that returns the approximate location of any IP address, including country, city, latitude, and longitude. It also supports ChatOps integrations for use in Slack or similar tools. Because it requires no API key, you can start using it immediately in any project.
Beginner Tip
Calling the /v1/ip/geo.json endpoint without specifying an IP address automatically geolocates the caller, which is perfect for detecting a visitor country on a website.
Available Data
Example Response
{
"ip": "203.0.113.42",
"city": "San Francisco",
"region": "California",
"country_code": "US",
"latitude": 37.7749,
"longitude": -122.4194,
"timezone": "America/Los_Angeles",
"isp": "Example ISP"
} Field Reference
ip The IP address that was geolocated. country Full country name associated with the IP address. country_code ISO 3166-1 alpha-2 two-letter country code. city Approximate city name for the IP address. latitude Approximate latitude of the IP address location. longitude Approximate longitude of the IP address location. Implementation Example
const url = "https://www.geojs.io/";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Matrix Score Breakdown
Fully tested on Apr 5, 2026
Technical Specifications
Related Tags
Similar APIs
View All →administrative-divisons-db
⭐ Beginner's PickThe Administrative Divisions DB API provides a structured list of all administrative divisions (states, provinces, regions, cities) for countries around the world.
adresse.data.gouv.fr
adresse.data.gouv.fr provides programmatic access to address database of france, geocoding and reverse via REST API.
Airtel IP
⭐ Beginner's PickAirtel IP is a free, no-auth IP geolocation API that aggregates data from multiple sources to return the country associated with any given IP address.
bng2latlong
⭐ Beginner's Pickbng2latlong is a simple, free API that converts British National Grid (OSGB36) easting and northing coordinates into standard WGS84 latitude and longitude.
Cartes.io
⭐ Beginner's PickCartes.io is a free API that lets you create maps and add custom markers without signing up.