---
title: "Search Cities (Free)"
method: GET
path: "/api/v1/geo/search"
tags: ["Geo (Deprecated Feb 3, 2026)", "geo"]
---

# Search Cities (Free)

`GET /api/v1/geo/search`

## Request

- Base URL: `https://api.freeastroapi.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.freeastroapi.com/api/v1/geo/search`
- Auth: none declared

Search for cities by name prefix for autocomplete functionality.

**⚠️ DEPRECATION NOTICE:**
This endpoint will require an API key after February 3, 2026.
Please migrate to `/api/v2/geo/search` which requires authentication.

This endpoint is **free** and does not require an API key (until Feb 3, 2026).
Use it to help users select the correct city before making astrology calculations.

**Example usage:**
- `/api/v1/geo/search?q=par` → Returns Paris (FR), Paris (US), Paraná, etc.
- `/api/v1/geo/search?q=london&country=GB` → Returns only London, UK
- `/api/v1/geo/search?q=Jingzhou%2C%20Hubei` → Returns Jingzhou in Hubei, China

Results are sorted by population (largest cities first).

## Query parameters

- `q` string, nullable: City name prefix, optionally followed by state/province and country
- `city` string, nullable: Alias for 'q'
- `limit` integer: Maximum results to return (1-50)
- `country` string, nullable: Filter by ISO country code (e.g., 'US', 'FR')

## Response `200`

Successful Response

- CitySearchResponse: Response model for city search
  - `results` CityResult[], required
    - `name` string, required
    - `country` string, required
    - `state` string, nullable
    - `district` string, nullable
    - `lat` number, required
    - `lng` number, required
    - `timezone` string, required
    - `population` integer, required
  - `count` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/freeastroapi/apis/astroservice-api.md) · [All operations](https://skmtc.dev/freeastroapi/apis/astroservice-api/llms.txt) · [OpenAPI document](https://skmtc.dev/freeastroapi/apis/astroservice-api/revisions/0c9b4a759522?raw)
