---
title: "Opodo API: Flights Search | Perceptlayer"
description: "Flights Search from Opodo as JSON. 1 credit per successful call."
url: https://perceptlayer.com/apis/opodo/flights-search
---

[APIs](https://perceptlayer.com/apis) / [Opodo](https://perceptlayer.com/apis/opodo) / Flights Search

# Opodo: Flights Search

Flights Search from Opodo as JSON. 1 credit per successful call.

GET `/v1/opodo/flights-search`

## Parameters

Send parameters in the query string.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `origin` | string | Required | Any |
| `destination` | string | Required | Any |
| `departure_date` | string | Required | Any |
| `return_date` | string | Optional | Any |
| `adults` | integer | Optional | Any |
| `children` | integer | Optional | Any |
| `infants` | integer | Optional | Any |
| `limit` | integer | Optional | Any |

## Example request

Opodo

GET /v1/opodo/flights-search?origin=MAD&destination=BCN&departure\_date=2027-01-07 

```
{
  "success": true,
  "data": {
    "trip_type": "one_way",
    "origin": "MAD",
    "destination": "BCN",
    "departure_date": "2026-12-31",
    "passengers": {
      "adults": 1,
      "children": 0,
      "infants": 0
    },
    "currency": "EUR",
    "search_id": 178645999837,
    "price_type_displayed": "MEMBER_PRICE_POLICY_DISCOUNTED",
    "total_available": 65,
    "itineraries": [
      {
        "key": "0",
        "me_rating": 0.99999,
        "tickets_left": -1,
        "transport_types": [
          "PLANE"
        ],
        "carbon_footprint_id": "0",
        "campaign_config_id": "0",
        "perks": {
          "primeDiscount": {
            "amount": -15,
            "currency": "EUR"
          },
          "primeDiscountPerPassenger": {
            "amount": -15,
            "currency": "EUR"
          }
        },
        "price": {
          "amount": 25.97,
          "currency": "EUR",
          "type": "DISCOUNTED",
          "source_type": "MEMBER_PRICE_POLICY_DISCOUNTED"
        },
        "original_price": {
          "amount": 40.97,
          "currency": "EUR",
          "type": "UNDISCOUNTED",
          "source_type": "MEMBER_PRICE_POLICY_UNDISCOUNTED"
        },
        "sale_price": {
          "amount": 25.97,
          "currency": "EUR",
          "type": "DISCOUNTED",
          "source_type": "MEMBER_PRICE_POLICY_DISCOUNTED"
        },
        "discount": 15,
        "price_per_passenger": 25.97,
        "total_price": 25.97,
        "fees": [
          {
            "amount": 40.97,
            "currency": "EUR",
            "type": "UNDISCOUNTED",
            "source_type": "MEMBER_PRICE_POLICY_UNDISCOUNTED"
          },
          {
            "amount": 25.97,
            "currency": "EUR",
            "type": "DISCOUNTED",
            "source_type": "MEMBER_PRICE_POLICY_DISCOUNTED"
          }
        ],
        "legs": [
          {
            "departure_iata": "MAD",
            "arrival_iata": "BCN",
            "departure_date": "2026-12-31",
            "arrival_date": "2026-12-31",
            "duration": 85,
            "carrier_id": "V7",
            "flight_code": "V73729",
            "cabin_class": "TOURIST",
            "sections": [
              "…"
            ]
          }
        ],
        "departure_iata": "MAD",
        "arrival_iata": "BCN",
        "departure_date": "2026-12-31"
      },
      {
        "key": "9",
        "me_rating": 0.99998,
        "tickets_left": -1,
        "transport_types": [
          "PLANE"
        ],
        "carbon_footprint_id": "0",
        "campaign_config_id": "0",
        "perks": {
          "primeDiscount": {
            "amount": -17,
            "currency": "EUR"
          },
          "primeDiscountPerPassenger": {
            "amount": -17,
            "currency": "EUR"
          }
        },
        "price": {
          "amount": 30.97,
          "currency": "EUR",
          "type": "DISCOUNTED",
          "source_type": "MEMBER_PRICE_POLICY_DISCOUNTED"
        },
        "original_price": {
          "amount": 47.97,
          "currency": "EUR",
          "type": "UNDISCOUNTED",
          "source_type": "MEMBER_PRICE_POLICY_UNDISCOUNTED"
        },
        "sale_price": {
          "amount": 30.97,
          "currency": "EUR",
          "type": "DISCOUNTED",
          "source_type": "MEMBER_PRICE_POLICY_DISCOUNTED"
        },
        "discount": 17,
        "price_per_passenger": 30.97,
        "total_price": 30.97,
        "fees": [
          {
            "amount": 47.97,
            "currency": "EUR",
            "type": "UNDISCOUNTED",
            "source_type": "MEMBER_PRICE_POLICY_UNDISCOUNTED"
          },
          {
            "amount": 30.97,
            "currency": "EUR",
            "type": "DISCOUNTED",
            "source_type": "MEMBER_PRICE_POLICY_DISCOUNTED"
          }
        ],
        "legs": [
          {
            "departure_iata": "MAD",
            "arrival_iata": "BCN",
            "departure_date": "2026-12-31",
            "arrival_date": "2026-12-31",
            "duration": 80,
            "carrier_id": "V7",
            "flight_code": "V73731",
            "cabin_class": "TOURIST",
            "sections": [
              "…"
            ]
          }
        ],
        "departure_iata": "MAD",
        "arrival_iata": "BCN",
        "departure_date": "2026-12-31"
      },
      {
        "key": "30",
        "me_rating": 0.99995,
        "tickets_left": 9,
        "transport_types": [
          "PLANE"
        ],
        "carbon_footprint_id": "2",
        "campaign_config_id": "0",
        "perks": {
          "primeDiscount": {
            "amount": -25,
            "currency": "EUR"
          },
          "primeDiscountPerPassenger": {
            "amount": -25,
            "currency": "EUR"
          }
        },
        "price": {
          "amount": 55.97,
          "currency": "EUR",
          "type": "DISCOUNTED",
          "source_type": "MEMBER_PRICE_POLICY_DISCOUNTED"
        },
        "original_price": {
          "amount": 80.97,
          "currency": "EUR",
          "type": "UNDISCOUNTED",
          "source_type": "MEMBER_PRICE_POLICY_UNDISCOUNTED"
        },
        "sale_price": {
          "amount": 55.97,
          "currency": "EUR",
          "type": "DISCOUNTED",
          "source_type": "MEMBER_PRICE_POLICY_DISCOUNTED"
        },
        "discount": 25,
        "price_per_passenger": 55.97,
        "total_price": 55.97,
        "fees": [
          {
            "amount": 80.97,
            "currency": "EUR",
            "type": "UNDISCOUNTED",
            "source_type": "MEMBER_PRICE_POLICY_UNDISCOUNTED"
          },
          {
            "amount": 55.97,
            "currency": "EUR",
            "type": "DISCOUNTED",
            "source_type": "MEMBER_PRICE_POLICY_DISCOUNTED"
          }
        ],
        "legs": [
          {
            "departure_iata": "MAD",
            "arrival_iata": "BCN",
            "departure_date": "2026-12-31",
            "arrival_date": "2026-12-31",
            "duration": 80,
            "carrier_id": "VY",
            "flight_code": "VY1007",
            "cabin_class": "TOURIST",
            "sections": [
              "…"
            ]
          }
        ],
        "departure_iata": "MAD",
        "arrival_iata": "BCN",
        "departure_date": "2026-12-31"
      }
    ],
    "reference": {
      "locations": {
        "62": {
          "id": "62",
          "iata": "ALC",
          "cityIata": "ALC",
          "cityName": "Alicante",
          "name": "Alicante",
          "countryName": "Spanien",
          "locationType": "AIRPORT"
        },
        "157": {
          "id": "157",
          "iata": "BCN",
          "cityIata": "BCN",
          "cityName": "Barcelona",
          "name": "El Prat",
          "countryName": "Spanien",
          "locationType": "AIRPORT"
        },
        "607": {
          "id": "607",
          "iata": "FCO",
          "cityIata": "ROM",
          "cityName": "Rom",
          "name": "Fiumicino",
          "countryName": "Italien",
          "locationType": "AIRPORT"
        },
        "640": {
          "id": "640",
          "iata": "FRA",
          "cityIata": "FRA",
          "cityName": "Frankfurt",
          "name": "Frankfurt International",
          "countryName": "Deutschland",
          "locationType": "AIRPORT"
        },
        "827": {
          "id": "827",
          "iata": "IBZ",
          "cityIata": "IBZ",
          "cityName": "Ibiza",
          "name": "Ibiza",
          "countryName": "Spanien",
          "locationType": "AIRPORT"
        },
        "1147": {
          "id": "1147",
          "iata": "MAD",
          "cityIata": "MAD",
          "cityName": "Madrid",
          "name": "Adolfo Suárez Madrid - Barajas",
          "countryName": "Spanien",
          "locationType": "AIRPORT"
        },
        "1483": {
          "id": "1483",
          "iata": "PMI",
          "cityIata": "PMI",
          "cityName": "Palma de Mallorca",
          "name": "Palma de Mallorca",
          "countryName": "Spanien",
          "locationType": "AIRPORT"
        },
        "1906": {
          "id": "1906",
          "iata": "TRN",
          "cityIata": "TRN",
          "cityName": "Turin",
          "name": "Caselle",
          "countryName": "Italien",
          "locationType": "AIRPORT"
        },
        "2010": {
          "id": "2010",
          "iata": "VLC",
          "cityIata": "VLC",
          "cityName": "Valencia",
          "name": "Valencia",
          "countryName": "Spanien",
          "locationType": "AIRPORT"
        },
        "1064945": {
          "id": "1064945",
          "iata": "YJB",
          "cityIata": "BCN",
          "cityName": "Barcelona",
          "name": "Sants",
          "countryName": "Spanien",
          "locationType": "TRAIN_STATION"
        },
        "1064946": {
          "id": "1064946",
          "iata": "XOC",
          "cityIata": "MAD",
          "cityName": "Madrid",
          "name": "Atocha",
          "countryName": "Spanien",
          "locationType": "TRAIN_STATION"
        }
      },
      "sections": [
        {
          "id": "0",
          "departureDate": "2026-12-31T08:35:00+01:00",
          "arrivalDate": "2026-12-31T10:00:00+01:00",
          "duration": 85,
          "departureId": "1147",
          "destinationId": "157",
          "carrierId": "V7",
          "operatingCarrierId": "V7",
          "cabinClass": "TOURIST",
          "flightCode": "V73729",
          "transportType": "PLANE"
        },
        {
          "id": "1",
          "departureDate": "2026-12-31T09:59:00+01:00",
          "arrivalDate": "2026-12-31T13:24:00+01:00",
          "duration": 205,
          "departureId": "1064946",
          "destinationId": "1064945",
          "carrierId": "I6",
          "operatingCarrierId": "I6",
          "cabinClass": "TOURIST",
          "flightCode": "I606013",
          "transportType": "TRAIN"
        },
        {
          "id": "2",
          "departureDate": "2026-12-31T06:27:00+01:00",
          "arrivalDate": "2026-12-31T09:50:00+01:00",
          "duration": 203,
          "departureId": "1064946",
          "destinationId": "1064945",
          "carrierId": "4R",
          "operatingCarrierId": "4R",
          "cabinClass": "TOURIST",
          "flightCode": "4R03063",
          "transportType": "TRAIN"
        }
      ],
      "segments": [
        {
          "id": "0",
          "duration": 85,
          "carrierId": "V7",
          "sections": [
            "0"
          ],
          "ticketsLeft": -1
        },
        {
          "id": "1",
          "duration": 205,
          "carrierId": "I6",
          "sections": [
            "1"
          ],
          "ticketsLeft": -1
        },
        {
          "id": "2",
          "duration": 203,
          "carrierId": "4R",
          "sections": [
            "2"
          ],
          "ticketsLeft": -1
        }
      ],
      "carriers": {
        "V7": {
          "id": "V7",
          "name": "Volotea"
        },
        "O1": {
          "id": "O1",
          "name": "OUIGO ES"
        },
        "VY": {
          "id": "VY",
          "name": "Vueling"
        },
        "UX": {
          "id": "UX",
          "name": "Air Europa"
        },
        "IB": {
          "id": "IB",
          "name": "Iberia"
        },
        "AZ": {
          "id": "AZ",
          "name": "ITA Airways"
        },
        "EN": {
          "id": "EN",
          "name": "Air Dolomiti"
        },
        "LH": {
          "id": "LH",
          "name": "Lufthansa"
        },
        "I6": {
          "id": "I6",
          "name": "iryo"
        },
        "W4": {
          "id": "W4",
          "name": "Wizz Air Malta"
        },
        "WT": {
          "id": "WT",
          "name": "Swiftair"
        },
        "4R": {
          "id": "4R",
          "name": "Renfe"
        },
        "4R0": {
          "id": "4R0",
          "name": "AVE"
        }
      },
      "carbon_footprints": [
        {
          "isEco": false,
          "ecoPercentageThanAverage": 0,
          "totalCo2Kilos": 47.2,
          "totalCo2eKilos": 89.68
        },
        {
          "isEco": true,
          "ecoPercentageThanAverage": -1,
          "totalCo2Kilos": 0,
          "totalCo2eKilos": 0
        },
        {
          "isEco": false,
          "ecoPercentageThanAverage": 0,
          "totalCo2Kilos": 50.36,
          "totalCo2eKilos": 95.68
        }
      ],
      "campaign_configs": [
        {
          "primeDayConfig": {
            "isPrimeDayFare": true,
            "primeDayFareType": "BRONZE"
          }
        }
      ]
    },
    "returned": 25,
    "limit": 25
  },
  "meta": {
    "endpoint_family": "flight_search",
    "request_id": "req_f4fe6d3c3cff4b7491e1e7fb7100d151",
    "credits_charged": 1,
    "credits_remaining": 4875
  }
}
```

200 OK JSON X-Credits-Used: 1

Recorded from our API and shortened.

[Run this endpoint in the playground](https://perceptlayer.com/apis/opodo?try=flights-search#playground) with your own parameters. 1 credit per successful call; failed calls are free.

## Response fields

`data` has these 11 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.

| Field | Type |
| --- | --- |
| `trip_type` | string |
| `origin` | string |
| `destination` | string |
| `departure_date` | string |
| `passengers` | object |
| `currency` | string |
| `search_id` | integer |
| `price_type_displayed` | string |
| `itineraries` | object\[\] |
| `reference` | object |
| `returned` | integer |
