Pointify

API reference · Flights

Search flights

POST/v1/search
Scope: searchTest mode: sample dataStreams (SSE)

Searches 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.

Body parameters
NameInTypeRequiredDefaultDescription
originbodystringRequired-IATA airport or city code, e.g. "JFK".
destinationbodystringRequired-IATA airport or city code.
departure_datebodystring (YYYY-MM-DD)Required-Outbound date.
return_datebodystring (YYYY-MM-DD)Optional-Return date for round trips.
trip_typebodystringOptionalround_tripSend "one_way" when there is no return date.
Allowed values:one_wayround_trip
passengersbodyintegerOptional1Adults, 1 to 9.
cabin_classbodystringOptionaleconomyCabin to search.
Allowed values:economypremium_economybusinessfirst
search_typebodystringOptionalcash"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

Events in this stream
EventMeaning
progressA source started or finished: { source, status: "searching" | "complete" | "error", result_count }.
resultOne flight option (see the example). Arrives as each source answers.
errorThe search failed as a whole: { message }. Rare; partial failures show as progress errors.
completeAlways last: { total_results }.

Example events

text/event-stream
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.

POSThttps://api.pointifytravels.com/v1/search

Ready to find your best fare?

Create a free account to save your travel plans and explore cash and points options.

Create Free Account