Location and Timezone API

Geocoding autocomplete with coordinates and timezone for astrology apps

<50mslatency
uptime
endpoints

Start building in seconds.

Terminal
npm install @roxyapi/sdk
import { createRoxy } from '@roxyapi/sdk'

const roxy = createRoxy(process.env.ROXY_API_KEY!)
const { data } = await roxy.location.get(/* ... */)
SDK docs

Want to ship faster? Clone a free starter app and go from zero to production in 30 minutes.

Building with Cursor, Claude Code, or Bolt? Use our AI prompts to generate a complete app in minutes.

GET /api/v2/location/search?q=tokyo
[
  {
    "city": "Tokyo",
    "province": "Tokyo",
    "country": "Japan",
    "iso2": "JP",
    "latitude": 35.6762,
    "longitude": 139.6503,
    "timezone": "Asia/Tokyo",
    "utcOffset": 9,
    "population": 13960000
  }
]

Structured JSON with documented fields. Not hallucinated text. See all endpoints

Works with your stack

Claude CodeCursorAntigravityChatGPTWindsurfVS Code CopilotOpenAI AgentsGeminiLangChainCrewAIVercel AI SDK

City search and geocoding API + hosted MCP for AI agents and astrology apps. Connect Claude Code, Cursor, VS Code in seconds, no local setup. 7,000+ cities across 227 countries. Returns latitude, longitude, IANA timezone, and DST-aware UTC offset. The location layer for birth chart forms, horoscope apps, event planners, and any feature that needs place-to-coordinates resolution.

Key Features

Everything you need from our Location and Timezone API, built for production:

City autocomplete search across 7,000+ cities worldwide, sorted by relevance and population

Latitude, longitude, IANA timezone, and UTC offset in every result for direct use in astrology APIs

Global coverage across 227 countries with ISO 3166 codes

DST-aware UTC offset that adjusts automatically for daylight saving time

Fully offline dataset with sub-5ms response times, no external geocoding API dependencies

Response fields map directly to astrology API parameters for seamless integration

All Endpoints

Click any endpoint to view detailed documentation, parameters, and response examples.

What You Can Build with Location and Timezone API

Real-world applications and use cases for integrating Location and Timezone API into your projects:

Birth chart location picker: autocomplete city search that auto-fills latitude, longitude, and timezone

Event location for transits: get coordinates and timezone for planetary transit and panchang calculations

Timezone conversion: look up IANA timezone and current UTC offset for any city worldwide

Country and city directory: browse all 227 countries and their cities for location dropdowns and filters

What developers are saying

DM

Dhani M.

Indie App Developer

Shipped an astrology app over a long weekend. Birth charts, nakshatras, KP cusps, significators. I verified the Lahiri ayanamsha values independently and they line up with my reference. One API key for all of it.

Email feedback
TH

Tom H.

Senior Developer

The OpenAPI spec is the most complete I have seen in this space. Generated a type-safe TypeScript client from it in seconds. Every field has descriptions and examples. Production-grade documentation.

Email feedback
CW

Chris W.

Backend Engineer

Response times consistently under 50ms for numerology and tarot endpoints. The API returns structured JSON with every field documented. Integrated it into our platform in an afternoon.

Email feedback

Getting started with Location and Timezone API.

From zero to production in 3 steps. No signup required for testing.

3 Steps to Ship

1Install the SDKnpm i @roxyapi/sdk
2Get your API keyView Plans
3Make your first callView Docs

Agent-Ready Infrastructure

MCP

The only MCP server covering 10 spiritual domains under one key

  • MCP server — tools auto-discovered by Claude, ChatGPT, Cursor
  • llms.txt — AI-native documentation for code generation
  • AGENTS.md — Included in SDK for GitHub Copilot, Windsurf, Cline

Start using Location and Timezone API today.

Geocoding autocomplete with coordinates and timezone for astrology apps

All 10 domains included with every plan. 3+ endpoints, MCP server, SDK, and starters.

Plans from $39/mo — thats $3.90 per domain. No credit card required for testing.

View Pricing & Get API Key