{
  "key": "google_flights",
  "name": "Flights",
  "query_field": "q",
  "groups": [
    {
      "key": "basic",
      "title_key": "serp.form.groups.basic",
      "title": "Basic Parameters",
      "collapsible": false,
      "fields": [
        {
          "key": "q",
          "type": "text",
          "label_key": "serp.fields.q_flights_note",
          "help_key": "serp.fields.q_help",
          "label": "Keywords",
          "help": "The search keyword used by the selected engine. Example: pizza."
        },
        {
          "key": "departure_id",
          "type": "text",
          "required": true,
          "label_key": "serp.fields.departure_id",
          "label": "Departure IATA",
          "help": "Origin airport IATA code"
        },
        {
          "key": "arrival_id",
          "type": "text",
          "required": true,
          "label_key": "serp.fields.arrival_id",
          "label": "Arrival IATA",
          "help": "Destination airport IATA code"
        },
        {
          "key": "travel_class",
          "type": "select",
          "default_value": "1",
          "label_key": "serp.fields.travel_class",
          "label": "Travel class",
          "help": "Cabin class",
          "options": [
            {
              "value": "1",
              "label": "Economy"
            },
            {
              "value": "2",
              "label": "Premium Economy"
            },
            {
              "value": "3",
              "label": "Business"
            },
            {
              "value": "4",
              "label": "First"
            }
          ]
        },
        {
          "key": "adults",
          "type": "number",
          "default_value": 1,
          "label_key": "serp.fields.adults",
          "label": "Adults",
          "help": "Number of adult passengers",
          "min": 1
        },
        {
          "key": "no_cache",
          "type": "switch",
          "default_value": false,
          "label_key": "serp.fields.no_cache",
          "label": "No Cache",
          "help": "When enabled, the adapter returns a fresh preview result."
        }
      ]
    },
    {
      "key": "round_trip_dates",
      "title_key": "serp.form.groups.flights_round_trip",
      "title": "Round-trip dates",
      "collapsible": false,
      "fields": [
        {
          "key": "trip_dates",
          "type": "date_range",
          "required": true,
          "label_key": "serp.fields.trip_dates",
          "label": "Trip dates",
          "help": "Departure and return dates",
          "range_keys": {
            "start": "outbound_date",
            "end": "return_date"
          }
        }
      ]
    },
    {
      "key": "passenger_detail",
      "title_key": "serp.form.groups.flights_passengers",
      "title": "Passenger detail",
      "collapsible": true,
      "fields": [
        {
          "key": "children",
          "type": "number",
          "default_value": 0,
          "label_key": "serp.fields.children",
          "label": "Children",
          "help": "Number of child passengers",
          "min": 0
        },
        {
          "key": "infants_in_seat",
          "type": "number",
          "default_value": 0,
          "label_key": "serp.fields.infants_in_seat",
          "label": "Infants in seat",
          "help": "Infants occupying their own seat",
          "min": 0
        },
        {
          "key": "infants_on_lap",
          "type": "number",
          "default_value": 0,
          "label_key": "serp.fields.infants_on_lap",
          "label": "Infants on lap",
          "help": "Infants travelling on a lap",
          "min": 0
        }
      ]
    }
  ],
  "category": {
    "key": "google",
    "name": "Google",
    "icon": "google"
  },
  "is_default_engine": false
}
