API reference · Flights
Search flights
/v1/searchSearches every Pointify flight source at once and streams each result as soon as its source answers, so the first fares arrive in a second or two and slow sources never hold up fast ones. Each cash result carries the best award option we know for the same flights and its cents-per-point value.
- Results arrive unsorted; sort on your side by price_cash, total_duration_minutes or cpp.
- URL
- https://api.pointifytravels.com/v1/search
- 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 |
|---|---|---|---|---|---|
origin | body | string | Required | - | IATA airport or city code, e.g. "JFK". |
destination | body | string | Required | - | IATA airport or city code. |
departure_date | body | string (YYYY-MM-DD) | Required | - | Outbound date. |
return_date | body | string (YYYY-MM-DD) | Optional | - | Return date for round trips. |
trip_type | body | string | Optional | round_trip | Send "one_way" when there is no return date. Allowed values: one_wayround_trip |
passengers | body | integer | Optional | 1 | Adults, 1 to 9. |
cabin_class | body | string | Optional | economy | Cabin to search. Allowed values: economypremium_economybusinessfirst |
search_type | body | string | Optional | cash | "points" or "both" add award results to the stream. Allowed values: cashpointsboth |
Request example
curl -N -X POST "https://api.pointifytravels.com/v1/search" \
-H "Authorization: Bearer $POINTIFY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"origin":"JFK","destination":"NRT","departure_date":"2027-01-23","trip_type":"one_way","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 |
|---|---|
progress | A source started or finished: { source, status: "searching" | "complete" | "error", result_count }. |
result | One flight option (see the example). Arrives as each source answers. |
error | The search failed as a whole: { message }. Rare; partial failures show as progress errors. |
complete | Always last: { total_results }. |
Example events
event: progress
data: {"source":"google_flights","status":"searching","result_count":0}
event: result
data: {"id":"off_8f2c…","segments":[{"departure_airport":"JFK","arrival_airport":"NRT","departure_time":"2027-01-23T11:05:00","arrival_time":"2027-01-27T14:30:00","carrier":"NH","carrier_name":"ANA","flight_number":"NH9","duration_minutes":805}],"price_cash":1284.4,"price_currency":"USD","price_points":85000,"points_program_name":"ANA Mileage Club","cabin_class":"economy","stops":0,"total_duration_minutes":805,"source":"google_flights","deep_link":"https://pointifytravels.com/search?…","cpp":1.4}
event: complete
data: {"total_results":42}
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