Vedika Geocode API

The Geocode API from Vedika — 3 operation(s) for geocode.

GitHub OpenAPI

Operations 3

GET /v2/geocode/search City autocomplete — type a partial place name and get matching cities ranked by… #
GET /v2/geocode/resolve Resolve a placeId from search into full city details and — when a birth date is… #
GET /v2/geocode/reverse Reverse geocode coordinates into the nearest known city / cities (with distance… #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/vedika-io:vedika-io-geocode-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

vedika-io-geocode-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Vedika Intelligence Geocode API
  version: 2.0.0
  description: 'Vedic, Western, Chinese astrology, divination, matchmaking, daily horoscope, AI astrology query, and voice — by category. Authenticate with an API key sent as Authorization: Bearer . Free sandbox at /sandbox/*. Timezone inference uses OpenStreetMap-derived data © OpenStreetMap contributors (ODbL); see https://vedika.io/legal/attributions'
servers:
- url: https://api.vedika.io
  description: Production
- url: https://api.vedika.io/sandbox
  description: Sandbox (free, no auth)
security:
- ApiKeyAuth: []
tags:
- name: Geocode
paths:
  /v2/geocode/search:
    get:
      tags:
      - Geocode
      summary: City autocomplete — type a partial place name and get matching cities ranked by…
      parameters:
      - name: X-API-Key
        in: header
        required: false
        description: 'Your Vedika API key (vk_live_* or vk_ent_*). Optional: Authorization: Bearer <key> is the preferred way to send it, and this header is read only when no Bearer credential is present.'
        schema:
          type: string
      - name: q
        in: query
        required: true
        description: Search text, 2-80 characters (normalised, diacritic-insensitive). Matches city name or alt-names by prefix; well-known historical aliases (Bombay, Calcutta, Madras, Leningrad, etc.) resolve to the modern city.
        schema:
          type: string
      - name: limit
        in: query
        required: false
        description: Max results, default 10, clamped to 1-25.
        schema:
          type: integer
      - name: country
        in: query
        required: false
        description: ISO 3166-1 alpha-2 country code (case-insensitive) to narrow results, e.g. IN, US.
        schema:
          type: string
      - name: minPopulation
        in: query
        required: false
        description: Only return cities with population >= this value, default 0.
        schema:
          type: integer
      responses:
        '200':
          description: Success
          content:
            application/json:
              example:
                success: true
                count: 2
                results:
                - placeId: IN-16-Mumbai-1275339
                  name: Mumbai
                  adminRegion: Maharashtra
                  country: India
                  countryCode: IN
                  latitude: 19.07283
                  longitude: 72.88261
                  population: 12691836
                  timezone: Asia/Kolkata
                - placeId: IN-16-MumbaiSuburban-7707530
                  name: Mumbai Suburban
                  adminRegion: Maharashtra
                  country: India
                  countryCode: IN
                  latitude: 19.13
                  longitude: 72.85
                  population: 9356962
                  timezone: Asia/Kolkata
        '400':
          description: 400 QUERY_TOO_LONG (q over 80 chars)
        '401':
          description: 401 (missing/invalid API key)
        '429':
          description: 429 GEOCODE_RATE_LIMIT (over 60 requests/min per API key, independent of tier)
        '500':
          description: 500 INTERNAL_ERROR
      operationId: getV2GeocodeSearch
      x-operation-id-source: derived
  /v2/geocode/resolve:
    get:
      tags:
      - Geocode
      summary: Resolve a placeId from search into full city details and — when a birth date is…
      parameters:
      - name: X-API-Key
        in: header
        required: false
        description: 'Your Vedika API key (vk_live_* or vk_ent_*). Optional: Authorization: Bearer <key> is the preferred way to send it, and this header is read only when no Bearer credential is present.'
        schema:
          type: string
      - name: placeId
        in: query
        required: true
        description: Opaque place identifier returned by /v2/geocode/search, format {countryCode}-{admin}-{nameSlug}-{cityId}, for example IN-16-Mumbai-1275339. Identifiers from other geocoders are not accepted.
        schema:
          type: string
        example: IN-16-Mumbai-1275339
      - name: birthDate
        in: query
        required: false
        description: ISO 8601 date or naive local datetime (e.g. 1942-08-15 or 1990-05-15T10:30). A naive value (no offset) is read as wall-clock local to the place's zone. When present, the response adds timezoneAtBirth resolved against the historical tz database.
        schema:
          type: string
        example: '1990-05-15'
      responses:
        '200':
          description: Success
          content:
            application/json:
              example:
                success: true
                place:
                  placeId: IN-16-Mumbai-1275339
                  name: Mumbai
                  adminRegion: Maharashtra
                  country: India
                  countryCode: IN
                  latitude: 19.07283
                  longitude: 72.88261
                  population: 12691836
                  timezone: Asia/Kolkata
                timezoneAtBirth:
                  ianaZone: Asia/Kolkata
                  utcOffsetMinutes: 330
                  utcOffsetString: +05:30
                  isDst: false
                  resolvedFor: '1990-05-15T05:00:00.000Z'
        '400':
          description: 400 BIRTH_DATE_INVALID (birthDate could not be parsed)
        '401':
          description: 401 (missing/invalid API key)
        '429':
          description: 429 GEOCODE_RATE_LIMIT
        '500':
          description: 500 INTERNAL_ERROR
      operationId: getV2GeocodeResolve
      x-operation-id-source: derived
  /v2/geocode/reverse:
    get:
      tags:
      - Geocode
      summary: Reverse geocode coordinates into the nearest known city / cities (with distance…
      parameters:
      - name: X-API-Key
        in: header
        required: false
        description: 'Your Vedika API key (vk_live_* or vk_ent_*). Optional: Authorization: Bearer <key> is the preferred way to send it, and this header is read only when no Bearer credential is present.'
        schema:
          type: string
      - name: lat
        in: query
        required: true
        description: Latitude in decimal degrees, -90 to 90.
        schema:
          type: number
      - name: lng
        in: query
        required: true
        description: Longitude in decimal degrees, -180 to 180.
        schema:
          type: number
      - name: limit
        in: query
        required: false
        description: Number of nearest cities to return, default 1, clamped to 1-10.
        schema:
          type: integer
      responses:
        '200':
          description: Success
          content:
            application/json:
              example:
                success: true
                count: 1
                results:
                - placeId: IN-16-Mumbai-1275339
                  name: Mumbai
                  adminRegion: Maharashtra
                  country: India
                  countryCode: IN
                  latitude: 19.07283
                  longitude: 72.88261
                  population: 12691836
                  timezone: Asia/Kolkata
                  distanceKm: 1.842
        '400':
          description: 400 LNG_INVALID (lng out of -180..180)
        '401':
          description: 401 (missing/invalid API key)
        '429':
          description: 429 GEOCODE_RATE_LIMIT
        '500':
          description: 500 INTERNAL_ERROR
      operationId: getV2GeocodeReverse
      x-operation-id-source: derived
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: 'Deprecated. Also accepted, used only when no Bearer credential is present, until 18 January 2027; after that only Authorization: Bearer works. Responses to calls that use this header carry Deprecation and Sunset headers.'
    BearerAuth:
      type: http
      scheme: bearer
      description: 'Preferred. Send Authorization: Bearer <key>. Takes precedence over X-API-Key when both are present. A rejected key returns 401 with an RFC 6750 WWW-Authenticate: Bearer error="invalid_token" challenge whose error_description states the problem. Do not retry a 401 - fix the key.'
x-vedika-surface:
  total_public_ops: 1303
  provider_contract_source: /openapi.json
  provider_vastu_logical_operations: 147