{
  "openapi": "3.0.1",
  "info": {
    "title": "Airport & Airline Reference Dataset",
    "description": "Resolve any place name, IATA or ICAO code into clean airport, city and airline reference records: official names, codes, coordinates, time zones, currency, city-wide groupings and cross-platform place identifiers. Ambiguous names are flagged, never guessed. No account or login needed.",
    "version": "0.0",
    "x-build-id": "C0R90jac4RpnVWTqH"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/apt_marble~airport-airline-reference-dataset/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-apt_marble-airport-airline-reference-dataset",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/apt_marble~airport-airline-reference-dataset/runs": {
      "post": {
        "operationId": "runs-sync-apt_marble-airport-airline-reference-dataset",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/apt_marble~airport-airline-reference-dataset/run-sync": {
      "post": {
        "operationId": "run-sync-apt_marble-airport-airline-reference-dataset",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "queries": {
            "title": "Places to look up",
            "maxItems": 500,
            "type": "array",
            "description": "Airport codes, city codes or plain place names — for example JFK, EGLL, NYC, \"London Heathrow\" or \"sao paulo\". Leave this empty to download the whole reference catalogue instead.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "entityTypes": {
            "title": "Record types to include",
            "type": "array",
            "description": "Airports are single airports. Cities are the city-wide codes that cover several airports at once, such as NYC or LON. Airlines are carrier records with the full list of airports each carrier serves.",
            "items": {
              "type": "string",
              "enum": [
                "airport",
                "metro",
                "airline"
              ],
              "enumTitles": [
                "Airports",
                "Cities (all airports)",
                "Airlines"
              ]
            },
            "default": [
              "airport",
              "metro"
            ]
          },
          "countryFilter": {
            "title": "Limit to countries",
            "maxItems": 50,
            "type": "array",
            "description": "Two-letter country codes such as GB, US or DE. Only places in these countries are returned. Leave empty for every country.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "market": {
            "title": "Market",
            "enum": [
              "US",
              "GB",
              "DE",
              "FR",
              "ES",
              "IT",
              "NL",
              "CA",
              "AU",
              "IN",
              "AE",
              "SG",
              "JP",
              "BR",
              "MX",
              "PL",
              "SE",
              "CH",
              "IE",
              "ZA"
            ],
            "type": "string",
            "description": "The market whose spelling and place naming you want when a name has to be looked up online. This does not change which places exist — only how they are named and ranked.",
            "default": "US"
          },
          "onlineResolution": {
            "title": "Online lookup for hard names",
            "enum": [
              "off",
              "ambiguous",
              "always"
            ],
            "type": "string",
            "description": "Off keeps every answer local and free of extra charges. Only when needed spends a lookup on names that stay ambiguous or unknown, so a name the built-in catalogue settles is never charged. Always spends one on every name — including names already settled locally — which attaches the cross-platform place identifiers to every record and is charged for every name that comes back with an answer.",
            "default": "ambiguous"
          },
          "includeMetroGroupings": {
            "title": "Include city-wide groupings",
            "type": "boolean",
            "description": "Return the city code that covers all of a city's airports (NYC for JFK, EWR, LGA and SWF) alongside the individual airports, and list its members on the record.",
            "default": true
          },
          "includeTimezones": {
            "title": "Include time zones",
            "type": "boolean",
            "description": "Add each airport's time zone and a note on how firmly it is established. Switch off for a smaller record.",
            "default": true
          },
          "includeNonAirports": {
            "title": "Include heliports and water aerodromes",
            "type": "boolean",
            "description": "Keep scheduled heliports and water aerodromes, which are real ticketable places in Greenland, Norway, Alaska and the Caribbean. Switch off for runway airports only.",
            "default": true
          },
          "refreshCarrierNetworks": {
            "title": "Refresh carrier network details",
            "type": "boolean",
            "description": "Check both carriers' current station lists before building records, instead of using the built-in edition. Slightly slower; each carrier that could not be checked keeps its built-in edition, and every airline record says which edition its own list came from.",
            "default": false
          },
          "maxMatchesPerQuery": {
            "title": "Maximum matches per place",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "How many candidate places a single ambiguous name may return. \"London\" legitimately matches six London-area airports plus London, Ontario.",
            "default": 5
          },
          "maxOnlineLookups": {
            "title": "Maximum online lookups",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "A hard ceiling on how many names may be looked up online in one run. This is the only part of the run that can add a charge beyond the records themselves.",
            "default": 50
          },
          "maxRows": {
            "title": "Maximum records",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "A hard ceiling on how many records this run may produce. The full catalogue is a little over four thousand.",
            "default": 5000
          },
          "parallelLookups": {
            "title": "Parallel lookups",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "How many names may be looked up online at the same time. Leave at the default unless you have a reason to change it.",
            "default": 2
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}