API reference · Fare calendar
Live fare calendar
POST
/v1/calendar/searchScope: calendarTest mode: sample dataStreams (SSE)
Prices each day from days_before to days_after around target_date and streams each day as soon as it is priced, cached days first.
- URL
- https://api.pointifytravels.com/v1/calendar/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 code. |
destination | body | string | Required | - | IATA airport code. |
target_date | body | string (YYYY-MM-DD) | Required | - | Center date. |
days_before | body | integer | Optional | 30 | Days before target_date. |
days_after | body | integer | Optional | 30 | Days after target_date. |
cabin_class | body | string | Optional | economy | Cabin. Allowed values: economypremium_economybusinessfirst |
search_type | body | string | Optional | both | Cash, points or both. Allowed values: cashpointsboth |
Request example
Request
curl -N -X POST "https://api.pointifytravels.com/v1/calendar/search" \
-H "Authorization: Bearer $POINTIFY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"origin":"JFK","destination":"LAX","target_date":"2027-01-23","days_before":3,"days_after":3}'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 |
|---|---|
calendar_day | One day: { date, min_cash, min_points, source, is_cached }. |
complete | Always last: { total_days }. |
Example events
text/event-stream
event: calendar_day
data: {"date":"2027-01-23","min_cash":169,"min_points":11800,"source":"google_flights","is_cached":false}
event: complete
data: {"total_days":7}
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.
POST
https://api.pointifytravels.com/v1/calendar/search