---
title: "Opodo API: flight search as JSON | Perceptlayer"
description: "Opodo API for flight search with fares, member discounts, fees, legs, carriers and flight codes, plus airport codes, as JSON. 1 credit per successful call."
url: https://perceptlayer.com/apis/opodo
---

[APIs](https://perceptlayer.com/apis) / [Travel](https://perceptlayer.com/verticals/travel) / Opodo

1 credit per call 2 endpoints 18 datapoints 

# Opodo API

Opodo API for flight search with fares, member discounts, fees, legs, carriers and flight codes, plus airport codes, as JSON. 1 credit per successful call.

[Get a free API key](https://perceptlayer.com/signup) Run it below

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.

Sample data

## What one call returns

A recorded run of `flights-search`: the fields and shapes you will get, shortened to 3 items.

| # | key string | me\_rating number | tickets\_left integer | transport\_types string\[\] | carbon\_footprint\_id string | campaign\_config\_id string | perks object | price object | original\_price object | sale\_price object | discount integer | price\_per\_passenger number | total\_price number | fees object\[\] | legs object\[\] | departure\_iata string | arrival\_iata string | departure\_date string |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | 0 | 0.99999 | \-1 | \[1 item\] | 0 | 0 | {2 fields} | {4 fields} | {4 fields} | {4 fields} | 15 | 25.97 | 25.97 | \[2 items\] | \[1 item\] | MAD | BCN | 2026-12-31 |
| 2 | 9 | 0.99998 | \-1 | \[1 item\] | 0 | 0 | {2 fields} | {4 fields} | {4 fields} | {4 fields} | 17 | 30.97 | 30.97 | \[2 items\] | \[1 item\] | MAD | BCN | 2026-12-31 |
| 3 | 30 | 0.99995 | 9 | \[1 item\] | 2 | 0 | {2 fields} | {4 fields} | {4 fields} | {4 fields} | 25 | 55.97 | 55.97 | \[2 items\] | \[1 item\] | MAD | BCN | 2026-12-31 |

Recorded from our API · 3 items shown · 18 datapoints per item GET /v1/opodo/flights-search?origin=MAD&destination=BCN&departure\_date=2027-01-07

18 datapoints

### Identity

-   transport\_types string\[\]
-   carbon\_footprint\_id string
-   campaign\_config\_id string

### Reputation

-   me\_rating number

### Price

-   price object
-   original\_price object
-   sale\_price object
-   discount integer
-   price\_per\_passenger number
-   total\_price number
-   fees object\[\]

### Other

-   key string
-   tickets\_left integer
-   perks object
-   legs object\[\]
-   departure\_iata string
-   arrival\_iata string
-   departure\_date string

Playground

## Run this API

cURL shell 

```
curl "https://api.perceptlayer.com/v1/opodo/flights-search?origin=MAD&destination=BCN&departure_date=2027-01-07" \
  -H "X-API-Key: $API_KEY"
```

Opodo · 2 endpoints

## Endpoints

Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.

| Endpoint | Required parameters | Returns | Cost |
| --- | --- | --- | --- |
| [GET `/v1/opodo/flights-search`](https://perceptlayer.com/apis/opodo/flights-search) | `origin` `destination` `departure_date` +5 optional | `trip_type` `origin` `destination` `departure_date` `passengers` `currency` +5 more | 1 credit |
| [GET `/v1/opodo/locations`](https://perceptlayer.com/apis/opodo/locations) | none +2 optional | `geo_node_id` `iata` `city` `name` `country_name` `geo_node_type` | 1 credit |

Overview

## About the Opodo API

## What you can get

The Opodo API returns Opodo flight search data as JSON through 2 endpoints. Prices are in EUR.

-   **Flights:** `flights-search` takes an `origin`, a `destination` (IATA codes) and a `departure_date`, with `return_date`, `adults`, `children`, `infants` and `limit`.
-   **Locations:** `locations` takes a `query` (a city or airport name) or a list of `iatas[]`, and returns airport and city codes.

The recorded `flights-search` from MAD to BCN on 2026-12-10 returns `trip_type`, `passengers`, `currency`, `total_available` (81) and `itineraries`, each with `price`, `original_price`, `sale_price`, `discount`, `price_per_passenger`, `total_price`, `fees`, `perks`, `tickets_left` and `legs` ( `departure_iata`, `arrival_iata`, dates, `duration` in minutes, `carrier_id`, `flight_code` and `cabin_class`). The first itinerary, flight UX7997, was 59.97 EUR at the member price against 86.97 EUR without it. A `reference` block maps location, carrier and segment ids to names.

## How a call works

Find codes, then search: `GET /v1/opodo/locations?query=london` with your key in the `X-API-Key` header returns `iata` codes (LON for London as a city). Pass them to `flights-search`, for example `GET /v1/opodo/flights-search?origin=MAD&destination=BCN&departure_date=2027-01-07`. Add `return_date` for a return trip and `adults`, `children` or `infants` for more passengers. Every successful call costs 1 credit; failed calls cost nothing.

Travel JSON REST MCP

### More travel APIs

[ADS-B History](https://perceptlayer.com/apis/adsb-history) [Agoda](https://perceptlayer.com/apis/agoda) [Airbnb](https://perceptlayer.com/apis/airbnb) [Airportia](https://perceptlayer.com/apis/airportia) [Bandsintown](https://perceptlayer.com/apis/bandsintown) [Booking.com](https://perceptlayer.com/apis/booking) [Economy Car Rentals](https://perceptlayer.com/apis/economy-car-rentals) [Eventbrite](https://perceptlayer.com/apis/eventbrite) [Eventim](https://perceptlayer.com/apis/eventim) [Expedia](https://perceptlayer.com/apis/expedia) [FlightAware](https://perceptlayer.com/apis/flightaware) [Flightradar24](https://perceptlayer.com/apis/flightradar24)

Use cases

### Track fares on a route for a set of departure dates

`Use the Opodo API to track fares on a route for a set of departure dates` 

### Compare member and standard fares with \`price\` and \`original\_price\`

`` Use the Opodo API to compare member and standard fares with `price` and `original_price` `` 

### List the carriers and flight codes flying a route on a given day

`Use the Opodo API to list the carriers and flight codes flying a route on a given day` 

### Compare one-way and return prices for a family with passenger counts

`Use the Opodo API to compare one-way and return prices for a family with passenger counts` 

FAQ

## Questions

**How much does the Opodo API cost?**

Each successful call costs one credit, for \`flights-search\` and \`locations\` alike. Failed calls cost nothing.

**Which price should I use?**

\`price\` and \`sale\_price\` are the displayed fare; in the recording they were the discounted member price (\`price\_type\_displayed\` was \`MEMBER\_PRICE\_POLICY\_DISCOUNTED\`), with \`perks\` showing the 27 EUR member discount. \`original\_price\` is the fare without the membership.

**Are seats left returned?**

There is a \`tickets\_left\` field, but in the recording it was -1, meaning no count was given.

**Do I need an Opodo account?**

No. You call this Opodo API with your Perceptlayer key in the \`X-API-Key\` header, with no Opodo login or membership.

**Is this the official Opodo API?**

No. Perceptlayer is an independent service and is not affiliated with Opodo. It returns Opodo data as JSON with a Perceptlayer key, so there is no Opodo developer account, app review or partner approval to get first. It only reads data: if Opodo has an official API and you need to act on your own Opodo account, such as posting, managing orders or reading private data, use that one.

**Should I build an Opodo scraper instead?**

You can, but an Opodo scraper is code you maintain: page changes break it, requests get blocked, and Opodo's terms govern how you collect data. The Opodo API gives you 2 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.

## Try the Opodo API with 100 free credits

No credit card. Failed calls are never billed.

[Get a free API key](https://perceptlayer.com/signup) [Read the docs](https://docs.perceptlayer.com)
