Travel
All the Flight Deals
Flight Deals
Example: https://rsshub.app/atfd/us+new%20york,gb+london/1
Route: /atfd/:locations/:nearby?
Parameters:
- locations, required -
the departing city, consists of an 「ISO 3166-1 country code」 and a 「city name」. Origin's ISO 3166-1 country code + city name, eg.
us+new york
, https://rsshub.app/atfd/us+new york. Multiple origins are supported via a comma separated string, eg.us+new york,gb+london
, https://rsshub.app/atfd/us+new york,gb+london/. - nearby, optional -
whether includes nearby airports, optional value of 0 or 1, default to 0 (exclude nearby airports)
For ISO 3166-1 country codes please refer to Wikipedia ISO_3166-1
TIP
If the city name contains a space like Mexico City
, replace the space with %20
, Mexico%20City
.
Hopper
Flight Deals
Example: https://rsshub.app/hopper/1/LHR/PEK
Route: /hopper/:lowestOnly/:from/:to?
Parameters:
- lowestOnly, required -
set to
1
will return the cheapest deal only, instead of all deals, so you don't get spammed - from, required -
origin airport IATA code
- to, optional -
destination airport IATA code, if unset the destination will be set to
anywhere
This route returns a list of flight deals (in most cases, 6 flight deals) for a period defined by Hopper's algorithm, which means the travel date will be totally random (could be tomorrow or 10 months from now).
For airport IATA code please refer to Wikipedia List of airports by IATA code