Flytoday
v0.4.2Unofficial read-only Flytoday: Iranian and international flights, hotels, villas, trains, buses.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
ft_find_bus_city Find bus city
Bus city ids (4 digits) for a city name, or the popular cities when query is empty. Use before ft_search_buses (Tehran '0001', Isfahan '0002').
| Parameter | Type | Description |
|---|---|---|
limit | integer | Max cities. |
query | string | null | City name, Persian or latin. |
ft_bus_calendar Bus price calendar
Cheapest bus seat price per day for the next weeks (the site's price strip), in one cheap call. Cached daily minimums that can differ a little from a live search. Pick a day, then ft_search_buses.
| Parameter | Type | Description |
|---|---|---|
destination * | string | 4-digit id from ft_find_bus_city, e.g. '0001' (Tehran). |
origin * | string | 4-digit id from ft_find_bus_city, e.g. '0001' (Tehran). |
ft_search_buses Search buses
Buses between two cities on a date: company, terminals, departure, bus type, seats left, price per seat. Busy routes list 100+ buses: narrow with facility, sort or limit. price_toman is per seat. No seat map. Rate limited: never loop.
| Parameter | Type | Description |
|---|---|---|
date * | string | Departure date YYYY-MM-DD. |
destination * | string | 4-digit id from ft_find_bus_city, e.g. '0001' (Tehran). |
origin * | string | 4-digit id from ft_find_bus_city, e.g. '0001' (Tehran). |
available_only | boolean | Hide sold-out buses. |
facility | string | null | Only buses with this facility. |
limit | integer | Max buses. |
sort | string | Order. |
ft_cip CIP airport services
CIP / VIP airport lounge service with prices for a date and passenger mix, plus paid add-ons. `nationality` says which passports an offer is for (IKA lists one offer for Iranian passports and one for others). price_per_passenger_toman is per person (tax included); total_toman the whole party; add-ons list their adult price.
| Parameter | Type | Description |
|---|---|---|
airport * | string | 'IKA' (Tehran) or 'MHD' (Mashhad): the only airports with CIP. |
date * | string | Flight date YYYY-MM-DD, at most ~3 months ahead. |
adults | integer | Adults. |
children | integer | Children. |
direction | string | Leaving from or landing at this airport. |
flight_type | string | Kind of flight. |
full_text | boolean | Skip text clips and item caps; return full texts. |
infants | integer | Infants. |
ft_esim_plans eSIM plans
eSIM data plans for a country with data amount, validity days and price, cheapest first. Single countries only, no regional bundles. fare_code identifies the plan on flytoday.ir.
| Parameter | Type | Description |
|---|---|---|
country * | string | Country name (English or Persian), ISO code or slug, e.g. 'turkey', 'AE'. |
limit | integer | Max plans, cheapest first. |
ft_visa Visa prices and requirements
Visa services of Flytoday: the country list with from-prices, or one country's prices, documents and process. Without country: visa type, from_price (in price_currency, often USD or EUR, not Toman) and processing time. With country: price per visa type (foreign currency and Toman), validity, processing time and documents.
| Parameter | Type | Description |
|---|---|---|
country | string | null | Country name (English or Persian) or slug, e.g. 'turkey', 'schengen'. Omit to list all. |
ft_activities Search activities
Tours, tickets and experiences in a destination that are on sale in the date range, with from-prices. Only activities with a price in the range are listed. price_toman is the adult from-price; list_price_toman the box-office price. other_regions lists alternatives to retry with region_id. Next: ft_activity(activity_id).
| Parameter | Type | Description |
|---|---|---|
date_from | string | null | First day YYYY-MM-DD; default and minimum tomorrow. |
date_to | string | null | Last day YYYY-MM-DD, max date_from + 90; default +30. |
limit | integer | Max activities, cheapest first. |
query | string | null | Destination, English or Persian, e.g. 'Dubai'. Needed unless region_id is given. |
region_id | integer | null | Region id from an earlier call; skips the lookup. |
ft_activity Activity details
One activity: description, highlights, options with adult prices, and the cheapest days in the range. price_toman fields are adult prices. No availability in the range gives available=false: keep it wide (default about two months). Slow upstream (up to a minute).
| Parameter | Type | Description |
|---|---|---|
activity_id * | integer | Activity id from ft_activities. |
date_from | string | null | Calendar start YYYY-MM-DD; default today + 3. |
date_to | string | null | Calendar end YYYY-MM-DD, max date_from + 90; default +57. |
ft_find_airport Find airport or city
Find the IATA codes the flight tools need, for domestic and international places. Use a city code (THR, IST) in the flight tools: it covers all its airports. No query lists popular cities.
| Parameter | Type | Description |
|---|---|---|
domestic_only | boolean | Only Iranian places. |
limit | integer | Max places. |
query | string | null | City or airport name, Persian or English; omit for popular places. |
ft_search_flights Search flights
Search flights for a date: times, airline, seats left, price and fare_source_code per flight. price_toman is per adult, total_toman the whole party. Round trip: `flights` are outbound options, `return_flights` the returns for the cheapest outbound (`return_for` = its key). Filters apply to the outbound leg. Rate limited: page with search_id, never search again. Next: ft_flight_details(fare_source_code).
| Parameter | Type | Description |
|---|---|---|
date * | string | Gregorian YYYY-MM-DD. |
destination * | string | IATA city code from ft_find_airport, e.g. 'THR', 'MHD', 'IST'. |
origin * | string | IATA city code from ft_find_airport, e.g. 'THR', 'MHD', 'IST'. |
adults | integer | Adults (12+). |
airlines | array | null | Only these airline codes, e.g. ['W5']. |
cabin | string | Cabin class. |
children | integer | Children (2-11). |
depart_after | string | null | Local HH:MM. |
depart_before | string | null | Local HH:MM. |
direct_only | boolean | No stops. |
infants | integer | Infants (under 2). |
limit | integer | Flights per page. |
max_price_toman | integer | null | Highest fare in Toman (whole party). |
outbound_key | string | null | Round trip: `key` of an outbound flight, lists its returns (needs search_id). |
page | integer | 1-based; above 1 needs search_id. |
return_date | string | null | Return date YYYY-MM-DD for a round trip; omit for one-way. |
search_id | integer | null | search_id from an earlier result (about 15 min): pages and re-sorts without a new search. |
sort | string | Order. |
ticket_type | string | null | Only charter or only system tickets. |
ft_flight_calendar Flight price calendar
Cheapest one-adult fare per departure day around a date, in one cheap call (no search needed). Pick the cheapest day, then ft_search_flights. Cached minimums that can differ a little from a live search; days without a fare are left out.
| Parameter | Type | Description |
|---|---|---|
date * | string | Centre of the window, YYYY-MM-DD. |
destination * | string | IATA city code from ft_find_airport, e.g. 'THR', 'MHD', 'IST'. |
origin * | string | IATA city code from ft_find_airport, e.g. 'THR', 'MHD', 'IST'. |
window | string | week = date +-3 days, month = +-15 days. |
ft_flight_details Flight fare details
Refund and change rules, confirmed baggage per segment and (international) entry notes of one fare. The fare_source_code lives about 15 minutes; then search again. Charter penalties are text, system fares tiers (`penalties`, % of fare).
| Parameter | Type | Description |
|---|---|---|
fare_source_code * | string | From ft_search_flights. |
full_text | boolean | Skip text clips and item caps; return full texts. |
search_id | integer | null | search_id of that search; adds entry and transit notes (international). |
ft_find_hotel_place Find hotel or stay place
Find the place ids the hotel and stay tools need. Which id goes where: `hotels` rows: kind 'city' (Iran) -> `city_id` for ft_search_hotels; 'region' (abroad, international=true) -> `region_code` + `country_code`; 'hotel' -> `hotel_id` for ft_hotel and ft_hotel_reviews. `stay_regions` rows (Iran, villas) -> `region_code` for ft_search_stays; NOT the hotel city ids. No query lists popular places.
| Parameter | Type | Description |
|---|---|---|
international | boolean | Places outside Iran (hotels only). |
limit | integer | Max rows per list. |
query | string | null | City, region or hotel name, Persian or English. |
ft_search_hotels Search hotels
Priced hotels of a city (Iran) or region (abroad) for dates, one row per hotel with its cheapest room offer. Give city_id for Iran, or region_code + country_code with international=true. price_toman is the whole stay for one room. Next: ft_hotel(hotel_id) or ft_hotel_reviews; is_stay=true rows are villas: ft_stay(property_id). Captcha-limited hard per IP: search once, then filter and page; never loop.
| Parameter | Type | Description |
|---|---|---|
check_in * | string | Gregorian YYYY-MM-DD. |
check_out * | string | Gregorian YYYY-MM-DD. |
adults | integer | Adults in the (single) room. |
children_ages | array | null | Ages (0-11), one per child, e.g. [5, 8]. |
city_id | integer | null | Iranian city id from ft_find_hotel_place. |
country_code | string | null | ISO code of the destination country (international), e.g. 'TR'. |
international | boolean | true for a hotel outside Iran. |
limit | integer | Hotels per page. |
max_price_toman | integer | null | Max price of the WHOLE stay, Toman. |
page | integer | Page number, 1-based. |
refundable_only | boolean | Only offers with free cancellation. |
region_code | string | null | Foreign region code from ft_find_hotel_place. |
sort | string | Cheapest first or best score first. |
stars | array | null | Only these star ratings, e.g. [4, 5]. |
ft_hotel Hotel rooms and prices
One hotel for dates: every room and meal-plan offer with whole-stay price, rooms left and cancellation terms, the room details (size, beds, features) and the hotel basics (address, stars, score, facilities, check-in time). price_toman is the whole stay for one room. Offers are cheapest first, sold-out (rooms_left 0) last. Use after ft_search_hotels. Rate limited like it.
| Parameter | Type | Description |
|---|---|---|
check_in * | string | Gregorian YYYY-MM-DD. |
check_out * | string | Gregorian YYYY-MM-DD. |
hotel_id * | integer | Hotel id from ft_search_hotels or ft_find_hotel_place. |
adults | integer | Adults in the (single) room. |
children_ages | array | null | Ages (0-11), one per child, e.g. [5, 8]. |
country_code | string | null | ISO code of the destination country (international), e.g. 'TR'. |
international | boolean | true for a hotel outside Iran. |
ft_hotel_reviews Hotel reviews
Guest reviews of a hotel: score (1-10), text, pros, cons, trip type and nights. Mostly Persian text. total_reviews tells how many pages exist.
| Parameter | Type | Description |
|---|---|---|
hotel_id * | integer | Hotel id. |
full_text | boolean | Skip text clips and item caps; return full texts. |
international | boolean | true for a hotel outside Iran. |
limit | integer | Reviews per page. |
order | string | Review order. |
page | integer | Page number, 1-based. |
ft_search_stays Search villas and stays
Villas, apartments and other private stays in Iran for dates, cheapest first. Give both dates (advised: only properties free then are listed and total_toman is filled) or none (base prices). property_id feeds ft_stay.
| Parameter | Type | Description |
|---|---|---|
check_in | string | null | Gregorian YYYY-MM-DD. |
check_out | string | null | Gregorian YYYY-MM-DD. |
guests | integer | Number of guests. |
limit | integer | Properties per page. |
max_price_toman | integer | null | Max price PER NIGHT, Toman. |
page | integer | Page number, 1-based. |
region_code | string | null | Region code from ft_find_hotel_place `stay_regions`; omit for all Iran. |
sort | string | Cheapest = lowest nightly price first. |
type | string | null | Property type; omit for all. |
ft_stay Stay details and calendar
One villa / apartment: details (capacity, rooms, facilities, rules, host), the per-night price calendar with blocked days, and the review summary with the latest reviews. Calendar prices are Toman per night (the base price in the details is only a reference); available=false means blocked or reserved.
| Parameter | Type | Description |
|---|---|---|
property_id * | integer | Property id from ft_search_stays. |
from_date | string | null | First day YYYY-MM-DD; default today. |
full_text | boolean | Skip text clips and item caps; return full texts. |
guests | integer | Number of guests (changes the price). |
to_date | string | null | Last day; default from_date + 14, max 45. |
ft_find_station Find train station
Train station codes (`station_code`) for a city name, or the 8 most popular stations when query is empty. Use before ft_search_trains and ft_train_calendar (Tehran 1, Mashhad 191).
| Parameter | Type | Description |
|---|---|---|
limit | integer | Max stations. |
query | string | null | City or station name, Persian or latin. |
ft_search_trains Search trains
Trains between two stations on a date: one row per train class (wagon) with price per adult and seats left. Sales cover about 16 days (no_result means outside). Pass a row's `fare_source_code` and `wagon_id` to ft_train_stops. Other days: ft_train_calendar. Rate limited: never loop.
| Parameter | Type | Description |
|---|---|---|
date * | string | Travel date YYYY-MM-DD; sales open ~16 days ahead. |
destination * | integer | Station code from ft_find_station, e.g. 1 (Tehran). |
origin * | integer | Station code from ft_find_station, e.g. 1 (Tehran). |
adults | integer | Adult passengers. |
available_only | boolean | Hide classes with no free seats for this party. |
children | integer | Children (2-12). |
infants | integer | Infants (under 2). |
limit | integer | Max train classes. |
sort | string | Order. |
ft_train_calendar Train price calendar
Cheapest train price per day for the next ~16 days, with sold-out days flagged. Pick a day, then ft_search_trains. An uncached route lists only the next 3 days.
| Parameter | Type | Description |
|---|---|---|
destination * | integer | Station code from ft_find_station, e.g. 1 (Tehran). |
origin * | integer | Station code from ft_find_station, e.g. 1 (Tehran). |
ft_train_stops Train stops
Stops of one train with arrival and departure times, plus (with wagon_id) the class amenities and extra meals. Ids expire with their search.
| Parameter | Type | Description |
|---|---|---|
fare_source_code * | string | From a fresh ft_search_trains row. |
wagon_id | integer | null | From the same row; adds amenities and meals. |