Setup
Put them in your environment or
.env; Data APIs covers the other ways.
Notes
- Every request must carry the Duffel-Version header; this entry pins v2.
- Search = create an offer request (offer_requests.create); it answers with the airlines’ offers. Offers expire, typically within 30 minutes (expires_at); fetch offers.get for current details before booking.
- Lists page by cursor: limit (1-200, default 50) and after=meta.after from the previous answer until it is null.
- Booking (creating orders, which pays the airline) is deliberately not in this entry.
Endpoints
Search flights
- A read over POST: it stores an offer request (orq_…) you can fetch again, but books and pays nothing.
- Can take as long as the slowest airline, up to supplier_timeout.
- Duffel bills searches beyond a 1500:1 search-to-book ratio as excess searches.
Get an offer request
List offer requests
Get an offer
- Still not a guarantee of availability at booking time.