What is OnCoord?
OnCoord is a hosted location intelligence service that converts addresses, coordinates, and place names into geographic information—and enriches those results with additional context such as population, elevation, slope, and aspect. It provides reliable location data without the need to manage your own infrastructure.
What is an API key?
API stands for Application Programming Interface. When you use OnCoord’s location services, we use an API key to identify your application when it makes a request to OnCoord’s services.
- Go to OnCoord.com
- Enter your email address and verify via the link we send you.
- Select your plan (Free, Lite, or higher tier) and retrieve your API key.
Keep your API key private — never expose it in public client-side code.
Make Your First Request
To keep your API key secure, OnCoord recommends passing it in the
X-API-Key header instead of including it in the URL.
# Example using cURL
curl -H "X-API-Key: YOUR_API_KEY" \
"https://api.oncoord.com/v1/search?text=Pizza+Hut+Tijuana+Mexico"
// JavaScript example
fetch("https://api.oncoord.com/v1/search?text=Pizza Hut Tijuana Mexico", {
headers: { "X-API-Key": "YOUR_API_KEY" }
})
.then(res => res.json())
.then(console.log);
# Python example
import requests
r = requests.get(
"https://api.oncoord.com/v1/search",
params={"text": "Pizza Hut Tijuana Mexico"},
headers={"X-API-Key": "YOUR_API_KEY"}
)
print(r.json())
Try Autocomplete
Autocomplete helps predict and complete partial addresses:
curl -H "X-API-Key: YOUR_API_KEY" \
"https://api.oncoord.com/v1/autocomplete?text=Amazon+Theatre"
Elevation & Site Data
OnCoord provides elevation and site data for any coordinate. These endpoints return elevation, slope, and aspect, helping you understand the physical characteristics of a location.
Elevation
curl -H "X-API-Key: YOUR_API_KEY" \
"https://api.oncoord.com/v1/elevation?lat=9.9281&lon=-84.0907"
{
"elevation_m": 1157.7
}
Site Data (Elevation, Slope, Aspect)
curl -H "X-API-Key: YOUR_API_KEY" \
"https://api.oncoord.com/v1/sitedata?lat=9.9281&lon=-84.0907"
{
"elevation_m": 1157.7,
"slope_deg": 2.3,
"aspect": "NE",
"aspect_deg": 40.7
}
These endpoints can be used on their own or combined with geocoding results to enrich any location with additional geographic context.
Population Data
The population endpoint returns density and estimated population counts within 1 km and 5 km of any coordinate across OnCoord's coverage area.
curl -H "X-API-Key: YOUR_API_KEY" \
"https://api.oncoord.com/v1/population?lat=9.9281&lon=-84.0907"
{
"population_density": 5462,
"population_1km": 17100,
"population_5km": 515032
}
Population data can be queried for any coordinate, whether it comes from a GPS device, a geocoding result, or user interaction with a map.
Activity & Development Data
The activity endpoint returns satellite-derived nighttime light measurements, including radiance, a normalized development index, and an activity level classification for any coordinate.
curl -H "X-API-Key: YOUR_API_KEY" \
"https://api.oncoord.com/v1/activity?lat=9.9281&lon=-84.0907"
{
"radiance": 81.2,
"development_index": 0.83,
"activity_level": "very_high"
}
Activity data reveals where economic activity and infrastructure are concentrated, even in areas that appear sparse during the day. It is useful for site selection, logistics planning, and infrastructure analysis.
Explore More Endpoints
/v1/search/structured– Structured address lookup/v1/reverse– Reverse geocoding from coordinates/v1/search/batch– Batch geocoding multiple addresses/v1/autocomplete/places– Place-specific autocomplete
👉 For full documentation, login/create account at OnCoord.com