

City search that resolves a birthplace to coordinates and its timezone, even a small town or a city under its former name.
City Search · Geocoding · Timezone · Cities by Country
Included with every plan (at no extra cost)
Accent-insensitive autocomplete
Historic names such as Bombay and Peking
Every town and village, whatever its size
Qualify by state, province or country
Latitude and longitude for every place
IANA timezone on every result
DST-aware UTC offset
State or province and ISO country code
Every country with its ISO codes
Searchable city coverage per country
Cities in a country sorted by population
Timezone and location API with city search and geocoding across 5,180,000+ cities, towns and villages in 240+ countries, returning latitude, longitude, IANA timezone, and DST-aware UTC offset. Coverage reaches every village on record, whatever its population, so a rural birthplace resolves as reliably as a capital. The location layer for birth chart forms, horoscope apps, event planners, and any feature that needs place-to-coordinates resolution. Fields map directly to the astrology endpoints, with no separate geocoding service to call or pay for. One key covers every RoxyAPI domain, with Remote MCP and typed SDKs.
Every Location and Timezone response is covered by 15,481 automated tests per deploy, checked against the IANA time zone database. See how we test.
Paste a widget into any site builder, install the WordPress plugin, or start from an MIT template you can white-label. Results render from the Location and Timezone API with no backend.
A Remote MCP server exposes every endpoint as a tool for Claude, ChatGPT, Cursor and any MCP client, with no local install. Opt-in compact responses cut the tokens your agent reads by roughly 40 to 52 percent, and one call stays one request.
Typed SDKs for TypeScript, Python, PHP, C#, Go, Rust, and Dart, generated from the live spec, each with an AGENTS.md so your coding assistant calls the Location and Timezone API correctly.
This is what your visitors see. Paste one snippet into Wix, Squarespace, or WordPress and the Location and Timezone API reading appears on your site, with no code and no backend. Developers install the same components from npm for Next.js, React, Vue, Svelte, Angular, or plain HTML. MIT licensed and included in every plan.
| Element | Renders |
|---|---|
<roxy-location-search> | Debounced city search input, emits roxy-location-select |
The depth behind every line above, written out in full.
Want to try without writing code? Try this domain live in API playground →
npm install @roxyapi/sdkimport { createRoxy } from '@roxyapi/sdk'
const roxy = createRoxy(process.env.ROXY_API_KEY!)
const domain = roxy.locationpip install roxy-sdkfrom roxy_sdk import create_roxy
roxy = create_roxy("your-api-key")
domain = roxy.locationcomposer require roxyapi/sdkuse function RoxyAPI\Sdk\createRoxy;
$roxy = createRoxy(getenv('ROXY_API_KEY'));
$domain = $roxy->location;dotnet add package RoxyApi.Sdkusing RoxyApi;
var roxy = new RoxyClient(Environment.GetEnvironmentVariable("ROXY_API_KEY")!);
var domain = roxy.Location;go get github.com/RoxyAPI/sdk-goimport roxyapi "github.com/RoxyAPI/sdk-go"
roxy, _ := roxyapi.NewRoxy(os.Getenv("ROXY_API_KEY"))
domain := roxy.Locationcargo add roxyapiuse roxyapi::Roxy;
let roxy = Roxy::new(std::env::var("ROXY_API_KEY")?)?;
let domain = roxy.location();dart pub add roxyapiimport 'package:roxyapi/roxyapi.dart';
final roxy = Roxy(Platform.environment['ROXY_API_KEY'] ?? '');
final domain = roxy.location;claude mcp add --transport http \
roxy-location https://roxyapi.com/mcp/location \
--header "X-API-Key: YOUR_KEY"AI agents auto-discover all endpoints as callable tools. Zero configuration. Responses can come back token-optimized and lossless, cutting the tokens your agent spends per call by roughly 40 to 52 percent.
Full MCP setup guidecurl -H "X-API-Key: YOUR_KEY" \
https://roxyapi.com/api/v2/location/Generating your own client? Get the Location and Timezone OpenAPI schema.
Want to ship faster? Clone a free template and white-label it as your own app.
Building with Cursor, Claude Code, or Bolt? Use our AI prompts to generate a complete app.
Building on WordPress? Install the RoxyAPI plugin and drop a shortcode, no code required.
{
"total": 502,
"limit": 10,
"offset": 0,
"cities": [
{
"city": "Berlin",
"province": "State of Berlin",
"country": "Germany",
"iso2": "DE",
"latitude": 52.5244,
"longitude": 13.4105,
"timezone": "Europe/Berlin",
"utcOffset": 1,
"population": 3426354
},
{
"city": "Berlin",
"province": "Usulutan",
"country": "El Salvador",
"iso2": "SV",
"latitude": 13.5,
"longitude": -88.5333,
"timezone": "America/El_Salvador",
"utcOffset": -6,
"population": 11313
},
{
"city": "Berlin",
"province": "New Hampshire",
"country": "United States",
"iso2": "US",
"latitude": 44.4687,
"longitude": -71.1851,
"timezone": "America/New_York",
"utcOffset": -5,
"population": 9367
},
{
"city": "Berlin",
"province": "New Jersey",
"country": "United States",
"iso2": "US",
"latitude": 39.7912,
"longitude": -74.9291,
"timezone": "America/New_York",
"utcOffset": -5,
"population": 7590
},
{
"city": "Berlin",
"province": "Wisconsin",
"country": "United States",
"iso2": "US",
"latitude": 43.968,
"longitude": -88.9434,
"timezone": "America/Chicago",
"utcOffset": -6,
"population": 5420
},
{
"city": "Berlin",
"province": "Maryland",
"country": "United States",
"iso2": "US",
"latitude": 38.3226,
"longitude": -75.2177,
"timezone": "America/New_York",
"utcOffset": -5,
"population": 5065
},
{
"city": "North Canton",
"province": "Ohio",
"country": "United States",
"iso2": "US",
"latitude": 40.8759,
"longitude": -81.4023,
"timezone": "America/New_York",
"utcOffset": -5,
"population": 17441
},
{
"city": "Berlin",
"province": "Massachusetts",
"country": "United States",
"iso2": "US",
"latitude": 42.3812,
"longitude": -71.637,
"timezone": "America/New_York",
"utcOffset": -5,
"population": 2422
},
{
"city": "Berlin",
"province": "Pennsylvania",
"country": "United States",
"iso2": "US",
"latitude": 39.9206,
"longitude": -78.9578,
"timezone": "America/New_York",
"utcOffset": -5,
"population": 2019
},
{
"city": "Brunswick",
"province": "Maryland",
"country": "United States",
"iso2": "US",
"latitude": 39.3143,
"longitude": -77.6278,
"timezone": "America/New_York",
"utcOffset": -5,
"population": 6116
}
]
}Structured JSON with documented fields. Not hallucinated text. See all endpoints
Clone. Edit. Ship. Free and open source by Team Roxy.

A multi-agent astrology reader in n8n, on web chat and Telegram, with a forecast every morning.

Independent proof, domain by domain. Every reference value cited, rerun monthly.
Browse all templates or use AI prompts to generate a custom app.
The products teams ship on the Location and Timezone API.
Real calls against the production API, no account needed. Every endpoint sits in the public OpenAPI spec and is callable as an MCP tool; open one for its parameters and response examples.
Turn a place name into coordinates, an IANA timezone and a DST-aware UTC offset, across 5,180,000+ cities, towns and villages in 240+ countries. Coverage reaches every village on record, whatever its population, so a birthplace outside a major metro resolves as reliably as a capital. Matching is case-insensitive, accent-insensitive and partial, so ber matches Berlin, Bern and Bergen, native scripts are transliterated, and historic names resolve to the current place, so bombay returns Mumbai and peking returns Beijing. A full name typed ranks above its smaller namesakes, a few letters reach the best-known city first, and a state, province or country in the query picks the right one of many places with the same name. A town name that matches nothing returns no match, never the largest town in the region it names. Built for birth chart location pickers, horoscope apps, event scheduling, and any feature that needs place-to-coordinates resolution.
Returns every country with ISO 3166-1 alpha-2 and alpha-3 codes, plus the number of searchable cities per country. Use this endpoint to build country dropdown menus, regional filters, or to check city coverage before querying a birth location. Countries are sorted alphabetically by name. Covers Europe, Americas, Asia, Middle East, Africa, and Oceania.
Returns all cities for a specific country, identified by ISO 3166-1 alpha-2 code (e.g. DE for Germany, FR for France, GB for United Kingdom, US for United States). Each city includes geographic coordinates, IANA timezone, and DST-aware UTC offset for direct use in astrology birth chart, horoscope, transit, and panchang calculations. Cities sorted by population with the largest metropolitan areas first.
Founder, United States
I built a living Human Design labyrinth: a free walk through nine gardens with personal chart reports and an AI guide named Phoenix, powered by the RoxyAPI chart engine and 15 of its domains.
A Human Design labyrinth on the web and Google Play, with personal chart reports and an AI guide
Course creator, Denmark
I think you have done an amazing job, it must have taken a long time. Clients are happy, and so am I.
Natal chart, transit, horoscope, tarot, dream and crystal readings inside her online courses
Founder, United States
I use RoxyAPI as the data layer for my astrology assistant. It has been reliable.
An astrology assistant on Vedic and KP, dashas, divisional charts, panchang, Western astrology, numerology and tarot
Every customer story comes from an account we confirmed and is published with the approval of that customer.
Read customer storiesThe receipts are public: the testing methodology, the open MIT benchmark, the transparency report, and the live API playground. Let ChatGPT, Perplexity, or Claude search the web and tell you what they find about RoxyAPI accuracy, MCP, SDKs, and pricing.
Opens a live web search in a new tab.
Your AI agent
your model, your voice
Remote MCP
auto-discovered, no local setup
Token-optimizedRoxy Ephemeris
15,481 tests, 3683 gold standard
Verified result
18+ domains, one flat rate
Your agent uses calculated charts and readings in its replies, with your model and your own voice. Planetary positions are verified against NASA JPL Horizons. No local setup, no AGPL, no hosted-AI markup.
Audit it yourself: every Location and Timezone endpoint runs live in the API playground
Included in the same plan as Location and Timezone
Send a city name to the location API and get back precise latitude and longitude in one call. The dataset covers 5,180,000+ cities, towns and villages across 240+ countries, down to the smallest village. A full name typed ranks above its smaller namesakes, and adding the state, province or country picks the right one of many places with the same name, so Springfield, Illinois resolves to Springfield, Illinois. This is city-level resolution built for birth and event forms, not street addresses. The coordinates drop straight into every birth chart, kundli, panchang, and forecast request, all under one API key with every RoxyAPI domain included at one flat price.
Every result from the location API carries the IANA timezone for that place, such as America/New_York, Europe/Berlin, or Australia/Sydney. That single value is what the chart and panchang endpoints need to anchor a reading to true local time. You can read it through the typed SDKs for TypeScript, Python, PHP, C#, Go, Rust, and Dart, or fetch it agent-side through our Remote MCP server with no local setup and no Docker. One lookup gives you coordinates and timezone together.
Wire a text input to the location API and each keystroke returns ranked city matches for live typeahead. Typing ber surfaces Berlin, Bern, and Bergen, most likely first. Selecting one suggestion fills the entire location step at once: city, country, coordinates, and timezone. It is the setup layer that feeds the rest of the platform, and our drop-in UI components and WordPress plugin let you ship that picker without building it from scratch.
Pass the IANA timezone from the location API into any chart endpoint and daylight saving is handled for you. The chart endpoints resolve that identifier to the offset that was actually in effect on the birth date, so a January New York birth resolves correctly and a July birth does too. This removes the classic bug where a summer offset gets piped into a winter chart and quietly shifts every house. Accuracy at this layer is why one location call protects every downstream reading.
The location API ships a full directory: all 240+ countries with their ISO codes, plus the cities in each one with coordinates and timezone already attached. Use it to power country dropdowns and dependent city lists for a worldwide audience without sourcing or cleaning your own geo data. Activation is instant, so the directory is live the moment you get your key. The same directory is reachable through the typed SDKs and our Remote MCP server for AI agents.
The location API is the front door to the whole RoxyAPI platform: the same key that resolves a city also runs every insight domain, from Western and Vedic astrology to numerology, tarot, and forecast. You get coordinates and timezone in the exact shape the chart endpoints expect, so there is no glue code between geocoding and calculation. Pricing is flat and predictable with no per-call geocoding bill, and discovery surfaces like AGENTS.md and llms.txt make the whole platform easy for agents to find and use.
City search that resolves a birthplace to coordinates and its timezone, even a small town or a city under its former name.
All 18+ domains included with every plan. Every endpoint, MCP server, SDK, and templates.
Plans from $39/mo, starting at $1.80 per domain on annual billing. No credit card required for testing.
View Pricing & Get API KeyHi, I am Rosie. I can show you a live reading, or get readings onto your site or app today.