Torob
v0.2.3Unofficial read-only Torob: compare Iranian shop prices, price history, deal checks and baskets.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
tb_search Search products
Search Torob for products; each card has the cheapest shop price (Toman) and the shop count. Weak matches set `low_confidence` and `unmatched_terms`; `spellcheck` / `suggested_queries` help rephrase. `price_span` is the span of the unfiltered result.
| Parameter | Type | Description |
|---|---|---|
available_only | boolean | |
brand | Brand id or name ('Apple', 'اپل'); needs query or category. | |
category | Category id, e.g. 94. | |
city | City id or name; effect unverified, use tb_sellers(city=) for local offers. | |
condition | string | used = کارکرده / stock. |
filters | Attribute filters {slug: value} from tb_filters, e.g. {'storage': '256 gb'}. | |
in_person | boolean | Only products with an in-person shop. |
installment | boolean | Only installment (Torob Pay) products. |
limit | integer | |
max_price | Toman. | |
min_price | Toman. | |
output | string | |
page | integer | 0-based. |
query | Persian or Finglish text, e.g. 'گوشی آیفون 13'. Optional with category. | |
sort | string | most_sellers = most shops. |
tb_suggest Suggestions
Torob's autocomplete: up to 8 search phrases for typed text (fixes Finglish and colloquial wording). Use before tb_search. Works even while other calls are blocked.
| Parameter | Type | Description |
|---|---|---|
text * | string | Typed text, e.g. 'ayfon' or 'لپ'. |
tb_filters Search filters
Which filters exist for a query/category: sub-categories, brands, price span, sort options, attributes. Use before tb_search for category / brand ids or the attribute slugs and values of `filters`.
| Parameter | Type | Description |
|---|---|---|
category | ||
query | Search text, e.g. 'لپ تاپ'. |
tb_category Browse category
A category page: its parents, sub-categories and top products. Use to walk the category tree. For text search in a category use tb_search(category=).
| Parameter | Type | Description |
|---|---|---|
category * | integer | Category id, e.g. 94 (mobile phones); see tb_filters. |
brand | Brand id or name. | |
limit | integer | |
max_price | Toman. | |
page | integer | |
sort | string | most_sellers = most shops. |
tb_brands Brands
All brands of a category with their ids (for tb_search brand=).
| Parameter | Type | Description |
|---|---|---|
category * | integer | Category id, e.g. 94 (mobile phones); see tb_filters. |
limit | integer | |
search | Name contains this text. |
tb_trends Search trends
What people search on Torob right now, each with its category and one sample product.
| Parameter | Type | Description |
|---|---|---|
limit | integer |
tb_offers Special offers
Torob's special-offers feed ("پیشنهاد ویژه"): themed rows with discounted or promoted products.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Products per row. |
page | integer | |
size | integer | Rows per page; each row is ~900 KB upstream. |
tb_cities Cities
City ids for `city` arguments (392 Tehran, 468 Mashhad, 240 Isfahan).
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
search | Persian name or part, e.g. 'مشهد'; omit for most visited. |
tb_product Product details
Full record of one product: name, price range (Toman), category, brand, key specs, cheapest offer. `price_min`/`price_max` include unreliable offers; `cheapest_offer` is the cheapest usable one on the page.
| Parameter | Type | Description |
|---|---|---|
product * | string | Product id (UUID) or torob.com product URL. |
full_specs | boolean | Add the full spec table by section (long). |
tb_sellers Sellers
Every online shop offer for a product, cheapest first, with trust, warranty, installment and delivery info. Use to pick where to buy. `score`/`votes`: shop rating 0-5; `unreliable`: bait or stale price; `buyer_notes`: Torob's order-volume and complaint notes; `updated`: price age. `stats` cover usable offers only.
| Parameter | Type | Description |
|---|---|---|
product * | string | Product id (UUID) or torob.com product URL. |
city | City id or name: only offers serving that city. | |
include_unreliable | boolean | Keep offers flagged unreliable (bait or stale). |
installment_only | boolean | Installment (قسطی) shops only. |
limit | integer | |
min_score | number | Minimum shop score. |
output | string | |
warranty_only | boolean | Torob warranty (گارانتی ترب) offers only. |
tb_stores In-person stores
In-person shops that stock a product: address, opening hours, open now, shelf price and its age. Use for "can I buy it today near me". Online offers: tb_sellers.
| Parameter | Type | Description |
|---|---|---|
product * | string | Product id (UUID) or torob.com product URL. |
city | City id or name: only offers serving that city. | |
limit | integer | |
with_location | boolean | Add lat/lon. |
tb_presence Shop presence
How widely a product is sold: online shops, in-person stores, installment and warranty shops, price window.
| Parameter | Type | Description |
|---|---|---|
product * | string | Product id (UUID) or torob.com product URL. |
tb_variants Variants
Sibling variants of a product (storage + RAM, colour, region ...) each with its own cheapest price.
| Parameter | Type | Description |
|---|---|---|
product * | string | Product id (UUID) or torob.com product URL. |
tb_price_chart Price chart
Price chart of a product (about a year, weekly): minimum and average price in Toman, with a buy-now verdict. `summary.verdict` (great / fair / high) follows `percentile`: share of weeks cheaper than now.
| Parameter | Type | Description |
|---|---|---|
product * | string | Product id (UUID) or torob.com product URL. |
points | integer | Latest weekly points (26 = about 6 months). |
tb_price_history Price history events
Notable price moves of a product, newest first, with the lowest and highest point. Weekly moves of the chart's minimum price; a negative `change_pct` is a drop.
| Parameter | Type | Description |
|---|---|---|
product * | string | Product id (UUID) or torob.com product URL. |
limit | integer | |
min_change_pct | integer | Ignore smaller moves (percent). |
tb_similar Similar products
Products Torob shows as similar (alternatives in the same class), with cheapest price and shop count.
| Parameter | Type | Description |
|---|---|---|
product * | string | Product id (UUID) or torob.com product URL. |
limit | integer |
tb_product_url Product URL
Clean torob.com URL for a product id, path or link (no request is sent).
| Parameter | Type | Description |
|---|---|---|
product * | string | Product id (UUID) or torob.com product URL. |
tb_products_batch Product cards
Short records (name, price window, shop counts, category, brand) for up to 10 products at once. One request per product; failures go to `errors`.
| Parameter | Type | Description |
|---|---|---|
products * | array |
tb_cheapest Cheapest offer
Cheapest trustworthy offer for a product named in words: searches, then looks at every shop's offer. Gives the best usable offer per top match and the overall `cheapest`; check the matched name.
| Parameter | Type | Description |
|---|---|---|
query * | string | Product, e.g. 'ps5 slim'. |
candidates | integer | Top search matches to check (one request each). |
city | City id or name: only offers serving that city. | |
condition | string | used = کارکرده / stock. |
installment_only | boolean | Installment (قسطی) shops only. |
min_score | number | Minimum shop score. |
tb_compare Compare products
Side-by-side comparison of 2-5 products: only the specs that differ, the price window, and which is cheapest. `differences` maps a spec to its values in `products` order (null = not listed).
| Parameter | Type | Description |
|---|---|---|
products * | array |
tb_best_value Best value under budget
Ranked product picks that fit a budget (Toman), for "best phone under 30 million". No quality score: check specs with tb_compare. In-stock products only.
| Parameter | Type | Description |
|---|---|---|
budget * | integer | Max price, Toman. |
category | ||
condition | string | used = کارکرده / stock. |
limit | integer | |
min_shops | integer | Skip products with fewer shops. |
query | What to buy, e.g. 'لپ تاپ'. Optional with category. | |
rank_by | string | budget_reach: priciest models that fit first. |
tb_deal_check Deal check
Is this a good price? Score 0-100 from the product's price history and today's competing offers. 100 minus the price's percentile among past weekly minimums, minus up to 20 when above today's cheapest usable offer. `reasons` explains it.
| Parameter | Type | Description |
|---|---|---|
product * | string | Product id (UUID) or torob.com product URL. |
price | Offered price, Toman; default today's cheapest usable offer. |
tb_basket Shopping basket
Cheapest shop for a whole shopping list: best single shop that sells everything, and the split-cart total. Names resolve to the top search match (check `items[].name`; pass ids to be exact).
| Parameter | Type | Description |
|---|---|---|
items * | array | Product names ('آیفون 13 128') or ids / URLs. |
city | City id or name: only offers serving that city. | |
condition | string | used = کارکرده / stock. |
installment_only | boolean | Installment shops only. |
min_score | number |
tb_shop Shop profile
A shop's trust profile: score and votes, e-Namad seal, time on Torob, city, website, delivery and payment terms. Use to vet a seller from tb_sellers. Contact details are left out.
| Parameter | Type | Description |
|---|---|---|
shop_id * | integer | Torob shop id (`shop_id` from tb_sellers). |
tb_find_shops Find shops
Find shops in Torob's directory by name or domain; returns ids for tb_shop and tb_shop_products.
| Parameter | Type | Description |
|---|---|---|
query * | string | Shop name or domain, e.g. 'bavanmobile.ir'. |
city | City or province, Persian. | |
kind | string | offline = in-person. |
limit | integer | |
page | integer |
tb_shop_products Shop catalogue
Products one shop sells on Torob, with the price range of the page. Card prices are the cheapest across all shops; tb_sellers gives this shop's own offer.
| Parameter | Type | Description |
|---|---|---|
shop_id * | integer | Torob shop id (`shop_id` from tb_sellers). |
limit | integer | |
page | integer | |
query | Only products matching this text. | |
sort | string |