API reference · Flights
Search a multi-city trip
/v1/search/multi-citySearches every leg of an open-jaw or multi-stop trip at the same time. Leg dates must be today or later and in order. When a leg is much cheaper from a nearby airport, a positioning event suggests it.
- URL
- https://api.pointifytravels.com/v1/search/multi-city
- Access
- Any key. This endpoint does not need a scope.
- Test keys
- Sample data in the live response shape. Never calls a supplier. Free, up to 60 requests a minute. Test mode
- Live keys
- Each successful call counts toward your daily quota. Limits
Parameters
Body parameters
Sent as a JSON object with Content-Type: application/json.
| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
legs | body | array of { origin, destination, date } | Required | - | 2 to 6 legs, in the order flown. Dates YYYY-MM-DD. |
passengers | body | integer | Optional | 1 | Adults, 1 to 9. |
cabin_class | body | string | Optional | economy | Cabin for every leg. Allowed values: economypremium_economybusinessfirst |
search_type | body | string | Optional | both | Cash, points or both. Allowed values: cashpointsboth |
Request example
curl -N -X POST "https://api.pointifytravels.com/v1/search/multi-city" \
-H "Authorization: Bearer $POINTIFY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"legs":[{"origin":"JFK","destination":"LHR","date":"2027-01-23"},{"origin":"LHR","destination":"CDG","date":"2027-01-27"}],"cabin_class":"economy"}'Response
A stream of Server-Sent Events. Each event is an event: line and a data: line with JSON, followed by a blank line. complete always arrives last. Reading streams
| Event | Meaning |
|---|---|
leg_progress | A leg started: { leg_index, origin, destination, status }. |
leg_result | All options for one leg: { leg_index, origin, destination, date, deals: [...] }. |
positioning | Optional: cheaper nearby airports for a leg: { leg_index, suggestions }. |
complete | Always last: { total_legs, total_results, total_price_cash }. |
Example events
event: leg_progress
data: {"leg_index":0,"origin":"JFK","destination":"LHR","status":"searching"}
event: leg_result
data: {"leg_index":0,"origin":"JFK","destination":"LHR","date":"2027-01-23","deals":["…same shape as a flight result…"]}
event: complete
data: {"total_legs":2,"total_results":31,"total_price_cash":912.3}
Errors use the shape in Errors. Invalid input returns 422 with a list of problems.
Try it
Try it
Use a test key. A live key uses your daily quota.No key yet? Create a test key in the dashboard. Test keys are free on every plan.
Path and query values go in the URL; everything else is sent as the JSON body.
https://api.pointifytravels.com/v1/search/multi-city