---
title: "Get Fare History"
method: GET
path: "/api/fares/history"
tags: ["fares"]
---

# Get Fare History

`GET /api/fares/history`

## Request

- Base URL: `https://api.pointifytravels.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pointifytravels.com/api/fares/history`
- Auth: none declared

Cheapest observed fare per day for a route over the last ``days``.

Aggregates in SQL rather than in Python: ``fare_history`` holds one row per
(route, departure_date, cabin_class, sample) so a single day can carry many
rows, and the chart wants one point per day.

## Query parameters

- `origin` string, required
- `destination` string, required
- `days` integer
- `currency` string

## Response `200`

Successful Response

- FareHistoryResponse
  - `origin` string, required
  - `destination` string, required
  - `days` integer, required
  - `currency` string, required
  - `history` FareHistoryPoint[], required
    - `date` string, required
    - `price` number, required
  - `stats` FareHistoryStats, required
    - `current` number, nullable, required
    - `avg30d` integer, required
    - `avg90d` integer, required
    - `min` number, required
    - `max` number, required
    - `trend` string, required
    - `signal` string, required
    - `pctFromAvg` integer, required
  - `source` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/pointifytravels/apis/pointify-deal-engine.md) · [All operations](https://skmtc.dev/pointifytravels/apis/pointify-deal-engine/llms.txt) · [OpenAPI document](https://skmtc.dev/pointifytravels/apis/pointify-deal-engine/revisions/4350142a4216?raw)
