> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rovemiles.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get airport by IATA code

> Retrieves detailed information about a specific airport using its IATA code.



## OpenAPI

````yaml https://api.staging.rovemiles.com/functions/v1/openapi get /data/airports/iata/{iata_code}
openapi: 3.0.3
info:
  title: Rove Miles API
  version: 0.1.0
  description: Data Utils, Flights, Hotels & Miles endpoints.
servers:
  - url: https://api.staging.rovemiles.com/functions/v1
security:
  - bearerAuth: []
tags:
  - name: Data
    description: Operations related to reference data like airports and places
  - name: Flights
    description: Operations related to flight search and booking
  - name: Hotels
    description: Operations related to hotel search and booking
  - name: Miles
    description: Operations related to miles and points management
  - name: Deals
    description: Operations related to special offers and promotions for flights and hotels
paths:
  /data/airports/iata/{iata_code}:
    get:
      tags:
        - Data
      summary: Get airport by IATA code
      description: >-
        Retrieves detailed information about a specific airport using its IATA
        code.
      operationId: getAirportByIataCode
      parameters:
        - name: iata_code
          in: path
          required: true
          description: IATA 3-letter code of the airport (e.g., JFK, LAX, LHR)
          schema:
            type: string
            pattern: ^[A-Z]{3}$
          example: JFK
      responses:
        '200':
          description: Successfully retrieved airport details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Airport'
              example:
                id: a1b2c3d4-e5f6-7890-abcd-1234567890ab
                name: John F. Kennedy International Airport
                iso_country: US
                iso_region: US-NY
                continent: NA
                municipality: New York
                gps_code: KJFK
                iata_code: JFK
                country: United States
                latitude: 40.6413
                longitude: -73.7781
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: Airport not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                code: 404
                message: Airport with IATA code 'XYZ' not found
        '500':
          $ref: '#/components/responses/InternalError'
components:
  schemas:
    Airport:
      type: object
      required:
        - id
        - name
        - iso_country
        - iata_code
      properties:
        id:
          type: string
          format: uuid
          description: Unique identifier for the airport (UUID)
          example: a1b2c3d4-e5f6-7890-abcd-1234567890ab
        name:
          type: string
          description: Full name of the airport
          example: John F. Kennedy International Airport
        iso_country:
          type: string
          description: ISO 3166-1 alpha-2 country code
          pattern: ^[A-Z]{2}$
          example: US
        iso_region:
          type: string
          description: ISO region code (typically ISO 3166-2 subdivision)
          example: US-NY
        continent:
          type: string
          description: Continent code (NA, SA, EU, AS, AF, OC, AN)
          nullable: true
          enum:
            - NA
            - SA
            - EU
            - AS
            - AF
            - OC
            - AN
            - null
          example: NA
        municipality:
          type: string
          description: Municipality (city) where the airport is located
          example: New York
        gps_code:
          type: string
          description: GPS code or other global identifier
          example: KJFK
        iata_code:
          type: string
          description: IATA 3-letter code for the airport
          pattern: ^[A-Z]{3}$
          example: JFK
        country:
          type: string
          description: Full country name
          example: United States
        latitude:
          type: number
          format: double
          description: Airport latitude coordinate
          example: 40.6413
        longitude:
          type: number
          format: double
          description: Airport longitude coordinate
          example: -73.7781
    Error:
      type: object
      properties:
        code:
          type: integer
        message:
          type: string
  responses:
    BadRequest:
      description: Bad Request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: 400
            message: Bad Request
    Unauthorized:
      description: Unauthorized - Invalid or missing token
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: 401
            message: Unauthorized - Invalid or missing token
    InternalError:
      description: Internal Server Error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: 500
            message: Internal Server Error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        API key for authentication. Add your API key to the Authorization header
        with this format: 'Bearer your_api_key_here'

````