DEV Community

DEUS Automations
DEUS Automations

Posted on Originally published at next.piratefly.com

A free flight-price API that tells you buy or wait, not just today's fare

Every flight comparison site shows you today's cheapest fare. None of them will tell you to wait — it costs them the booking commission.

Piratefly watches flight prices over time and answers the actual question: is this price good, or should you wait? We just opened that logic up as a free JSON API.

The endpoint

GET https://next.piratefly.com/v1/analisi?origine=FCO&destinazione=BCN
Enter fullscreen mode Exit fullscreen mode

Give it an IATA origin and destination, get back today's cheapest fare, where it sits against that route's own price history (percentile), and a buy/wait verdict.

curl "https://next.piratefly.com/v1/analisi?origine=FCO&destinazione=BCN"
Enter fullscreen mode Exit fullscreen mode

Plans

  • Free — 30 requests/day per IP, no signup, no key.
  • Pro — $9.99/month — no daily cap. POST /v1/pro/checkout with your email, pay on Stripe, get an X-Api-Key back immediately.

Full machine-readable reference: https://next.piratefly.com/v1/docs
Landing page with the Pro checkout: https://next.piratefly.com/api

We only publish a verdict once a route has at least 8 price observations behind it — below that we say nothing rather than guess. Feedback and route requests welcome.

Top comments (0)