---
title: "Resolve city/airport name to IATA codes"
method: GET
path: "/api/v1/flights/resolve-location"
tags: ["Flights"]
---

# Resolve city/airport name to IATA codes

`GET /api/v1/flights/resolve-location`

Convert city names or airport names to IATA codes. Use before search to resolve ambiguous locations.

## Query parameters

- `query` string, required

## Response `200`

Matching locations

- LocationResult[]
  - `iata_code` string
  - `name` string
  - `type` 'airport' | 'city'
  - `city` string
  - `country` string

---

[API](https://skmtc.net/letsfg/apis/letsfg-api.md) · [All operations](https://skmtc.net/letsfg/apis/letsfg-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/letsfg/letsfg-api/versions/7bda5c981b41/schema)
