Geocod.io API

⭐ Beginner's Pick Geocoding / API Key Intermediate HTTPS
Varies by plan (check documentation)

Overview

Geocod.io is a US and Canada focused geocoding API that converts addresses to coordinates and vice versa, with support for bulk geocoding of thousands of addresses at once. It is known for its accuracy with North American addresses and offers 2,500 free lookups per day. An API key is required and available for free.

💡

Beginner Tip

For single address lookups use the /geocode endpoint; for processing lists of addresses use the /lists endpoint which handles CSV uploads. The free tier resets daily at midnight EST.

Available Data

IP address details
latitude and longitude
city and country
timezone
ISP information

Example Response

JSON Response
{
  "status": "success",
  "data": {
    "result": "Data from Geocod.io",
    "description": "Address geocoding / reverse geocoding in bulk",
    "timestamp": "2025-01-15T10:00:00Z"
  }
}

Field Reference

input Echo of the input address as parsed by Geocod.io into address components.
results Array of geocoding results ordered by accuracy, with the best match first.
location.lat Latitude of the geocoded address in decimal degrees.
location.lng Longitude of the geocoded address in decimal degrees.
accuracy Accuracy score from 0 to 1; values above 0.8 indicate a reliable match.
accuracy_type Description of the match precision level such as "rooftop", "range_interpolation", or "place".

Implementation Example

const url = "https://www.geocod.io/";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
  headers: {
  "X-API-Key": "YOUR_API_KEY"
  }
});
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

403 Forbidden Invalid API key or key does not have permission for the requested operation.
Log in to geocod.io to verify your API key and ensure it is active. Generate a new key if needed.
Low accuracy results Passing incomplete or abbreviation-heavy addresses.
Include the full street address with city, state, and ZIP code. Geocod.io works best with US and Canada addresses.
422 Unprocessable Entity on bulk requests Sending more than the allowed number of addresses per batch request.
Limit each batch to 10,000 addresses maximum and ensure each address is on its own line or array element.

Matrix Score Breakdown

🌐 Reachability 30/30
⚡ Speed 10/20
🔒 Security 15/15
🛠 Developer XP 12/20
✓ Reliability 10/15

Partially tested on Apr 5, 2026

Technical Specifications

Auth API Key
HTTPS REQUIRED
CORS UNKNOWN
Category Geocoding
Difficulty Intermediate
Verified: 2026-04-04

Alternatives to Geocod.io

Technical alternatives for different use cases.

Global coverage with free throttled access

Better For

International geocoding without US focus

Trade-off

US address parsing with congressional district data

Free OpenStreetMap-based geocoding, self-hostable

Better For

Self-hosted geocoding without API limits

Trade-off

Structured US address parsing and verification

Forward and reverse geocoding with timezone info

Better For

Simple geocoding with timezone detection

Trade-off

US-specific features like census tract data

Similar APIs

View All →