Otaghak
v0.4.2Unofficial read-only Otaghak: search Iranian villas, availability, exact stay prices, reviews.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
ot_find_place Find place or room code
Turn a place name into the city / province slugs that ot_search_rooms needs, or a room code into its room. Room names are not searchable here (use ot_search_rooms `name`). Next: ot_search_rooms, or ot_room for a room.
| Parameter | Type | Description |
|---|---|---|
query * | string | City/province name (Persian or slug) or room code, e.g. 'رامسر'. |
ot_search_rooms Search stays
Search Otaghak stays (villas, cottages, apartments, eco-lodges) in a city, province or collection. With dates every room is available and carries stay_total (estimate) for `guests`; without, undated starting prices. Slugs: ot_find_place; filter codes: ot_search_filters. Next: ot_room, ot_price_quote.
| Parameter | Type | Description |
|---|---|---|
bedrooms | integer | null | Minimum bedrooms. |
check_in | string | null | Arrival day YYYY-MM-DD (not past). |
check_out | string | null | Departure day YYYY-MM-DD (max 20 nights). |
city | array | null | City slugs from ot_find_place, e.g. ['ramsar'] (any). |
city_tag | string | null | City theme slug from ot_travel_guide, e.g. 'cottage'. |
collection | string | null | Collection code from ot_destinations, e.g. 'beach', 'villapool'. |
district_id | integer | null | Landmark id from ot_search_filters (with `city`). |
filters | array | null | Codes from ot_search_filters as returned, e.g. ['ruleValues=10101|10103|10102']. All must match. |
guests | integer | null | Guests; smaller rooms are left out. |
include_nearby | boolean | Include nearby rooms. |
instant | boolean | Only instant booking. |
limit | integer | Rooms per page. |
max_price | integer | null | Max nightly Toman after discount. |
min_price | integer | null | Min nightly Toman after discount. |
min_rating | integer | null | Minimum rating. |
name | string | null | Room name words. |
page | integer | Zero-based page. |
prime | boolean | Only prime rooms. |
province | string | null | Province slug, e.g. 'mazandaran'. |
rent_types | array | null | Rent types. |
room_types | array | null | Room type ids from ot_search_filters. |
sort | string | Order; with dates, cheapest re-sorts each page by stay_total. |
ot_search_filters Search filter codes
List the search filters of a city, province or collection (or the whole site) with the codes ot_search_rooms takes. Returns the price range (Toman), room type ids, filter codes (pool, pets, parking, ...) and, for a city, districts and landmarks (district_id). Use for an amenity, rule, room type or landmark.
| Parameter | Type | Description |
|---|---|---|
city | string | null | City slug; also returns its districts. |
collection | string | null | Collection code, e.g. 'beach'. |
province | string | null | Province slug, e.g. 'mazandaran'. |
ot_destinations Popular destinations and collections
Popular cities and collections (themed landing pages: discounted, jungle villas, villas with pool, ...). Use when there is no destination yet, or for `collection` codes. With `collection`, also its city slugs.
| Parameter | Type | Description |
|---|---|---|
collection | string | null | Collection code, to list its cities. |
ot_deals Deals and discounts
Current discounts: the home page's last-second deals and the most discounted stays (biggest percent first). last_second (site-wide, undated prices, shown 14:00-23:50 Iran time) is left out when `city` is given. most_discounted lists rooms of the discounted collection (in `city` if given). Next: ot_price_quote.
| Parameter | Type | Description |
|---|---|---|
check_in | string | null | Arrival day YYYY-MM-DD (not past). |
check_out | string | null | Departure day YYYY-MM-DD (max 20 nights). |
city | string | null | City slug (default: whole site). |
guests | integer | null | Guests; smaller rooms are left out. |
limit | integer | Rooms per list. |
ot_help Help: rules and FAQ
Read Otaghak's help center: the FAQ, or the guest terms (booking and cancellation rules, the five cancellation policies, refunds, wallet, check-in rules), host rules or quality policy. Without `query`: every FAQ question or the page's section titles; with it, the matches. A room's own cancellation policy is in ot_room.
| Parameter | Type | Description |
|---|---|---|
query | string | null | Persian words to look for, e.g. 'لغو'. |
topic | string | terms covers booking, cancellation, refunds, wallet. |
ot_travel_guide Destination travel guide
Get the site's travel guide for a destination: guide text, the destination's FAQ (best season, sights, prices), related search pages (city themes such as beach, cottage, apartment with listing counts) and matching blog articles (restaurants, sights, souvenirs). City theme slugs from related_pages go to ot_search_rooms `city_tag`.
| Parameter | Type | Description |
|---|---|---|
place * | string | City, province or collection slug. |
blog_query | string | null | Blog search words (default: place name). |
full_text | boolean | Return long texts in full instead of clipped. |
kind | string | What `place` is. |
max_chars | integer | Max characters of the guide text. |
ot_room Room details
Get one room: description, capacity, rooms and beds, amenities, house rules, check-in/out times, cancellation policy, host, nearby places, approximate location, photos and nightly price. With dates the price is the average night even if booked (ot_price_quote / ot_room_calendar say if free); without, an undated starting price. instant_on_some_nights is room-level; per night see `instant` there. Next: ot_price_quote, ot_room_calendar, ot_reviews, ot_host, ot_similar_rooms.
| Parameter | Type | Description |
|---|---|---|
room_id * | integer | Room id (code). |
check_in | string | null | Arrival day YYYY-MM-DD (not past). |
check_out | string | null | Departure day YYYY-MM-DD (max 20 nights). |
full_text | boolean | Return long texts in full instead of clipped. |
max_photos | integer | Photo URLs to return. |
ot_reviews Room reviews and rating
Get a room's rating (0-5), star histogram, six category scores, percent of guests who recommend it, and written reviews, newest first (with host replies). rating is null when not rated yet. ot_host has reviews across all of a host's rooms.
| Parameter | Type | Description |
|---|---|---|
room_id * | integer | Room id (code). |
full_text | boolean | Return long texts in full instead of clipped. |
limit | integer | Reviews per page. |
page | integer | Zero-based page. |
ot_similar_rooms Similar rooms
Get 4-5 alternatives to a room (same city and type), as the room page shows them (or, while that list is empty upstream, a search of the room's city and type up to 1.5x its price; `note` says so). Without dates prices are undated starting prices; with dates they are re-priced, and booked or too small rooms go to not_available. Next: ot_room, ot_price_quote.
| Parameter | Type | Description |
|---|---|---|
room_id * | integer | Room id (code). |
check_in | string | null | Arrival day YYYY-MM-DD (not past). |
check_out | string | null | Departure day YYYY-MM-DD (max 20 nights). |
guests | integer | null | Guests; smaller rooms are left out. |
ot_host Host profile
Check a host: response time, response and acceptance rates, member since, active rooms (undated starting prices) and the newest guest reviews across all their rooms. Pass host_id, or room_id to find the room's host.
| Parameter | Type | Description |
|---|---|---|
full_text | boolean | Return long texts in full instead of clipped. |
host_id | integer | null | Host id, e.g. 1626813. |
reviews_limit | integer | Newest reviews across the host's rooms. |
room_id | integer | null | Or a room id, to find its host. |
rooms_limit | integer | Host's rooms to list. |
ot_room_calendar Room calendar
Get a room's calendar day by day: nightly price after and before discount (Toman), free or booked, instant booking, min and max nights when arriving that day, weekend, public holiday, late checkout. A night is priced on its arrival day. Absent keys = no discount / no. Next: ot_price_quote.
| Parameter | Type | Description |
|---|---|---|
room_id * | integer | Room id (code). |
end | string | null | Last day, inclusive (default start + 30 days). |
start | string | null | First day YYYY-MM-DD (default today). |
ot_price_quote Exact stay price
Get the amount to pay (Toman) for a room, dates and guests: nights_total (the room page's payable amount for the base guests), the extra-guest charge, optional late checkout, and the total. `nightly` is the calendar breakdown (rounded per night, so it can add up to a little more than nights_total). Also checks free nights, stay length and capacity (available=false with a reason otherwise).
| Parameter | Type | Description |
|---|---|---|
check_in * | string | Arrival day YYYY-MM-DD. |
check_out * | string | Departure day YYYY-MM-DD (max 20 nights). |
guests * | integer | Guests. |
room_id * | integer | Room id (code). |
late_checkout_hours | integer | null | Late checkout hours to add (offered rooms), e.g. 4. |
ot_holidays Holidays and weekdays
List Iranian public holidays (Fridays included) in a date range, with Jalali dates and weekdays. Flags are filled only about 7 weeks ahead: later days with no holidays mean unknown, not working days.
| Parameter | Type | Description |
|---|---|---|
end * | string | Last day, inclusive (max a year after start). |
start * | string | First day YYYY-MM-DD. |
ot_late_checkout Late checkout
Check whether a room offers late checkout, for how many hours and at what price (Toman, a unit not confirmed on the site), and with check_out whether it can be booked on that departure day (offered rooms are often closed for it on a given day). ot_price_quote adds it to a total with late_checkout_hours.
| Parameter | Type | Description |
|---|---|---|
room_id * | integer | Room id (code). |
check_out | string | null | Departure day to check. |