# Kiwi.com place lookup API

Resolve Kiwi.com places by name or code via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as limit, output, q, and retrieve structured data including typed source place identifier, source legacy place identifier, source place code, source place type, and source country code for place selector, and route preparation.

Documentation: https://openany.si/kiwi-com/kiwi-com-place-lookup-api/26b56d76-2042-40f2-94eb-3af5606c200a/
API ID: 26b56d76-2042-40f2-94eb-3af5606c200a
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/kiwi/v1/places
Page update time: 2026-12-03T02:47:13.389Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:47:11.240Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits consumed",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Usage and limits
## Kiwi.com Place Search API

Pass q as a name or code, optionally types and limit. Preserve the typed id, legacy\_id, code and type separately; city and airport references have different scopes.

## What You Can Build

- **Place selector**: Retain typed source identifiers.
- **Route preparation**: Distinguish city groups from individual airports.

## Returned Data

| Field | Meaning |
| --- | --- |
| `places[].id` | Typed source place identifier |
| `places[].legacy_id` | Source legacy place identifier |
| `places[].code` | Source place code |
| `places[].type` | Source place type |
| `places[].country_code` | Source country code |
| `count` | Returned place count |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Kiwi.com place lookup API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "q": {
          "type": "string",
          "description": "Place name or code, e.g. `london` or `JFK`."
        },
        "types": {
          "type": "string",
          "description": "Only these place types, comma-separated: airport, city, country, bus_station, train_station, region, subdivision."
        },
        "limit": {
          "type": "integer",
          "description": "Results, 1-50 (default 10)."
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row."
        }
      },
      "required": [
        "q"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "cached": {
      "type": "boolean"
    },
    "count": {
      "type": "integer"
    },
    "credits_used": {
      "type": "integer"
    },
    "fetched_at": {
      "type": "string"
    },
    "places": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "city": {
            "type": "null"
          },
          "city_id": {
            "type": "null"
          },
          "code": {
            "type": "string"
          },
          "country": {
            "type": "string"
          },
          "country_code": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "latitude": {
            "type": "number"
          },
          "legacy_id": {
            "type": "string"
          },
          "longitude": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "rank": {
            "type": "integer"
          },
          "slug": {
            "type": "string"
          },
          "type": {
            "type": "string"
          }
        }
      }
    },
    "query": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Official example · Live API.SH response · Minimal request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/kiwi/v1/places?limit=1&output=json&q=london&raw=0' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "cached": false,
  "count": 1,
  "credits_used": 1,
  "fetched_at": "2026-11-19T12:24:18.709Z",
  "places": [
    {
      "city": null,
      "city_id": null,
      "code": "LON",
      "country": "United Kingdom",
      "country_code": "GB",
      "id": "City:london_gb",
      "latitude": 51.507351,
      "legacy_id": "london_gb",
      "longitude": -0.127758,
      "name": "London",
      "rank": 10,
      "slug": "london-united-kingdom",
      "type": "city"
    }
  ],
  "query": "london"
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Which place types are supported?
types accepts comma-separated airport, city, country, bus_station, train_station, region or subdivision.

### How can I limit matches?
limit accepts 1–50 and defaults to 10. Use q with a name or code such as london or JFK.

### Are id and legacy_id the same value?
No. Keep the typed source ID, legacy ID and code separate; for example a city ID can carry a City: prefix.

### Does a location result include a dated flight fare?
No. Use the selected supported place reference in Flight Search or Cheapest Destinations with travel dates.

### How do I bypass cached results?
Pass fresh=1. A cache bypass retrieves available source data; it does not make unpublished or restricted records available.

### Can I request CSV or NDJSON?
This OpenAny implementation serves JSON only. Omit output or set output=json.

## Available implementations
- apish: https://openany.si/kiwi-com/kiwi-com-place-lookup-api/26b56d76-2042-40f2-94eb-3af5606c200a/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
