{
  "openapi": "3.0.1",
  "info": {
    "title": "Flight Price Calendar for Google Flights: Cheapest Day to Fly",
    "description": "Google Flights fare calendar as data: the cheapest fare for every departure day over up to 180 days per route, one way or round trip, any currency and market. Find the cheapest dates and cheap flights, or track airfare. Up to 100 routes per run. Trial: 0.01 USD per 1,000 days until 31 Dec 2026.",
    "version": "1.0",
    "x-build-id": "NdUMlvbwdcIaCTDNl"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/cozybit~google-flights-fare-calendar/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-cozybit-google-flights-fare-calendar",
        "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/cozybit~google-flights-fare-calendar/runs": {
      "post": {
        "operationId": "runs-sync-cozybit-google-flights-fare-calendar",
        "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/cozybit~google-flights-fare-calendar/run-sync": {
      "post": {
        "operationId": "run-sync-cozybit-google-flights-fare-calendar",
        "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",
        "required": [
          "routes"
        ],
        "properties": {
          "routes": {
            "title": "Airport routes",
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "description": "Enter 1-100 routes using uppercase three-letter airport codes, such as JFK-CDG. Requires airport codes, not city codes: use JFK instead of NYC. Spaces and duplicate routes are removed.",
            "items": {
              "type": "string"
            }
          },
          "startDate": {
            "title": "First departure date",
            "pattern": "^(|\\d{4}-\\d{2}-\\d{2}|\\d+\\s*(day|week|month|year)s?)$",
            "type": "string",
            "description": "YYYY-MM-DD or a relative date such as 3 weeks. Empty means 14 days from today. Relative dates count from the run date (UTC). The whole window, including returns, must stay within 330 days ahead.",
            "default": ""
          },
          "days": {
            "title": "Calendar days",
            "minimum": 1,
            "maximum": 180,
            "type": "integer",
            "description": "Cover 1-180 consecutive departure dates per route, starting at startDate. At most 600 searches per run (days × lengths × routes). Allow about 2.5 minutes for 30 one-way days or 15-20 minutes for 30 days × lengths 7-13. Free plans return at most 60 calendar rows across the run. Cheapest-row flags cover the full requested window and all trip lengths before that cap.",
            "default": 60
          },
          "returnAfterDays": {
            "title": "Return after days",
            "minimum": 0,
            "maximum": 30,
            "type": "integer",
            "description": "0 for one way; 1-30 for a round trip returning this many days after each departure. Round-trip prices cover the entire trip.",
            "default": 0
          },
          "returnAfterDaysMax": {
            "title": "Maximum return after days",
            "minimum": 0,
            "maximum": 30,
            "type": "integer",
            "description": "Optional maximum round-trip length. Set Return after days to the minimum, for example 7 and 13 for 7-13-day trips. 0 keeps the fixed length. At most 15 consecutive lengths, each between 1 and 30 days. One row per departure date and length; free caps count rows.",
            "default": 0
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 9,
            "type": "integer",
            "description": "Number of adults, from 1 to 9. Prices cover the whole party.",
            "default": 1
          },
          "children": {
            "title": "Children (experimental)",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Number of children, from 0 to 8. Child passenger request codes are unverified; Google may ignore them.",
            "default": 0
          },
          "infantsOnLap": {
            "title": "Infants on lap (experimental)",
            "minimum": 0,
            "maximum": 4,
            "type": "integer",
            "description": "Number of lap infants, from 0 to 4, at most one per adult. Infant request codes are unverified; Google may ignore them.",
            "default": 0
          },
          "cabinClass": {
            "title": "Cabin class",
            "enum": [
              "economy",
              "premium_economy",
              "business",
              "first"
            ],
            "type": "string",
            "description": "Economy, premium economy, business or first. Business was live-tested on the calendar; premium economy and first follow the same request.",
            "default": "economy"
          },
          "maxStops": {
            "title": "Maximum stops (experimental)",
            "enum": [
              "any",
              "0",
              "1",
              "2"
            ],
            "type": "string",
            "description": "any, 0 (nonstop), 1 (at most one stop) or 2 (at most two stops). This request encoding is unverified; Google may ignore it.",
            "default": "any"
          },
          "currency": {
            "title": "Currency",
            "pattern": "^[A-Z]{3}$",
            "type": "string",
            "description": "Three-letter uppercase currency code. A returned price-token currency mismatch is an error.",
            "default": "USD"
          },
          "country": {
            "title": "Search market",
            "pattern": "^[A-Z]{2}$",
            "type": "string",
            "description": "Two-letter uppercase country code. Sets Google's search market; datacenter proxy routing is not country-pinned.",
            "default": "US"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Uses datacenter proxies. Residential/custom settings are overridden to avoid high page-transfer costs. Turn off for direct requests, which cannot rotate a blocked IP.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}