{
  "id": "mrscraper.google.flights",
  "object": "tool",
  "name": "Search Google Flights",
  "summary": "Search Google Flights for one-way or round-trip itineraries between two airports.",
  "description": "Run a Google Flights search between two IATA airport codes on a date. Returns the search parameters, passenger and fare configuration, the outbound itineraries with airline, times, duration, stops, and price, the total found, cabin class, and the source URL. Supports one-way or round-trip and a country code for the Google edition. Suited for fare monitoring, route research, and travel planning agents.\n\nRaw mrscraper#/google/flights endpoint: input is { body, queryParams, pathParams } as the provider documents them (https://docs.mrscraper.com/docs/features/marketplace).",
  "category": "lookup",
  "hosted_by": "MrScraper",
  "runtime": "partner",
  "side_effects": false,
  "status": "live",
  "credits": 0,
  "price": null,
  "providers": [
    {
      "id": "mrscraper",
      "name": "MrScraper",
      "price": null,
      "own_key_only": true
    }
  ],
  "mcp_name": "mrscraper_google_flights",
  "input_schema": {
    "type": "object",
    "properties": {
      "body": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "origin": {
                "type": "string",
                "pattern": "^[A-Za-z]{3}$",
                "description": "Origin airport IATA code, e.g. 'JFK'."
              },
              "destination": {
                "type": "string",
                "pattern": "^[A-Za-z]{3}$",
                "description": "Destination airport IATA code, e.g. 'SIN'."
              },
              "type": {
                "type": "string",
                "const": "OW",
                "description": "Trip type: one-way."
              },
              "date": {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
                "description": "Departure date in YYYY-MM-DD format."
              },
              "returnDate": {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
                "description": "Return date in YYYY-MM-DD format; required for round-trip searches."
              },
              "country": {
                "type": "string",
                "minLength": 2,
                "maxLength": 2,
                "description": "Two-letter Google region code for the edition, e.g. 'us'."
              }
            },
            "required": [
              "origin",
              "destination",
              "type",
              "date",
              "country"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "origin": {
                "type": "string",
                "pattern": "^[A-Za-z]{3}$",
                "description": "Origin airport IATA code, e.g. 'JFK'."
              },
              "destination": {
                "type": "string",
                "pattern": "^[A-Za-z]{3}$",
                "description": "Destination airport IATA code, e.g. 'SIN'."
              },
              "type": {
                "type": "string",
                "const": "RT",
                "description": "Trip type: round-trip."
              },
              "date": {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
                "description": "Departure date in YYYY-MM-DD format."
              },
              "returnDate": {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
                "description": "Return date in YYYY-MM-DD format; required for round-trip searches."
              },
              "country": {
                "type": "string",
                "minLength": 2,
                "maxLength": 2,
                "description": "Two-letter Google region code for the edition, e.g. 'us'."
              }
            },
            "required": [
              "origin",
              "destination",
              "type",
              "date",
              "returnDate",
              "country"
            ],
            "additionalProperties": false
          }
        ],
        "description": "A one-way (OW) search, or a round-trip (RT) search with a returnDate."
      }
    },
    "required": [],
    "additionalProperties": false
  },
  "kind": "endpoint"
}