---
title: "Returns a Weatherbit geocoding result for supported city, postal code, station, or city_id inputs."
method: GET
path: "/geocode"
tags: ["Geocoding"]
---

# Returns a Weatherbit geocoding result for supported city, postal code, station, or city_id inputs.

`GET /geocode`

Returns latitude, longitude, timezone, and related location metadata for Weatherbit geocoding utility lookups.

## Query parameters

- `city` string, string
- `state` string, string
- `country` string, string
- `postal_code` string, string
- `city_id` string, string
- `station` string, string
- `key` string, string, required

## Response `200`

A geocoding result object.

- GeocodeResult
  - `country_code` string — 2-letter country code
  - `geo_id` string — Internal geographic identifier
  - `lat` number — Latitude
  - `lon` number — Longitude
  - `name` string — Resolved city, county, or postal area name
  - `state_code` string — State or province abbreviation when available
  - `timezone` string — Local IANA time zone

## Other responses

- `204` — No Data Found
- `400` — Client Error
- `403` — Unauthorized/No Access for current plan level
- `429` — Daily or Velocity limit exceeded
- `500` — Internal Server Error

---

[API](https://skmtc.dev/weatherbit/apis/weatherbit-interactive-swagger-ui-documentation.md) · [All operations](https://skmtc.dev/weatherbit/apis/weatherbit-interactive-swagger-ui-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/weatherbit/weatherbit-interactive-swagger-ui-documentation/revisions/31cff6bde48b/schema)
