Digikala
v0.6.3Unofficial read-only Digikala: search products, compare sellers, price history, reviews, deals.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
dk_search Search products
Search products by name: price (Toman), discount, seller, rating, 20 per page. Each product has `match` ('all', 'some' + `missing_words`, 'none'); prefer 'all'. Filter ids: dk_filters(query=...).
| Parameter | Type | Description |
|---|---|---|
query * | string | Persian or English words, e.g. 'گوشی سامسونگ'. |
attributes | object | null | {attribute id: [value ids]} from dk_filters, e.g. {2226: [19239]}. Values OR, attributes AND. |
brand_ids | array | null | Brand ids (dk_product brand_id), e.g. [18] Samsung. |
colors | array | null | Color ids from dk_filters. |
fast_delivery | boolean | Jet delivery only. |
in_stock_only | boolean | |
max_price | integer | null | |
min_price | integer | null | |
page | integer | |
ready_to_ship | boolean | In Digikala's warehouse only. |
seller_type | string | null | |
sort | string |
dk_find_cheapest Find cheapest product
Find the cheapest in-stock products that really match a query, sorted by price (Toman). Keeps titles with every query word and drops accessories. Then dk_product on the winner: another seller may be cheaper.
| Parameter | Type | Description |
|---|---|---|
query * | string | Persian or English words, e.g. 'گوشی سامسونگ'. |
limit | integer | |
max_price | integer | null | |
min_price | integer | null | Toman. Default: 1/4 of the top matches' median price (drops accessories). |
pages | integer | Relevance pages to scan. |
dk_best_for_budget Best picks for a budget
Rank the best-rated in-stock products within a budget (Toman) by a rating weighted by its count. A 5.0 from 3 buyers does not beat a 4.6 from 900. Use for "best X under Y".
| Parameter | Type | Description |
|---|---|---|
max_price * | integer | Budget, Toman. |
category_code | string | null | Instead of query, e.g. 'mobile-phone'. |
limit | integer | |
min_price | integer | null | Toman. Default for a query: a floor that drops accessories. |
min_ratings | integer | |
pages | integer | Pages to scan. |
query | string | null | e.g. 'هدفون بی سیم'. |
dk_suggest Search suggestions
Autocomplete a vague or misspelled query into keywords and categories.
| Parameter | Type | Description |
|---|---|---|
query * | string | Partial text, e.g. 'هدفون'. |
dk_filters Filter options
List the filters of a category or a search: attributes, colors, sellers, price range (Toman), brands. Maps are {title: id}; an attribute with over 15 values has only `value_count` (call again with attribute_id). Pass the ids to dk_category_products or dk_search.
| Parameter | Type | Description |
|---|---|---|
attribute_id | integer | null | List all values of this one attribute. |
brand_code | string | null | With category_code, e.g. 'samsung'. |
category_code | string | null | e.g. 'mobile-phone'. |
query | string | null | Instead of a category. |
dk_categories Find categories
Find category codes for dk_category_products and main-category ids for dk_best_sellers. No arguments lists the main categories. A parent category mixes in accessories: browse its leaf.
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
parent_id | integer | null | List its sub-categories. |
query | string | null | Persian name (finds more) or English code, e.g. 'لپ تاپ'. |
dk_category_products Browse a category
List one category's products with sort and filters (price in Toman), strict order. No text query. Filter ids: dk_filters(category_code=...).
| Parameter | Type | Description |
|---|---|---|
category_code * | string | e.g. 'mobile-phone'. |
attributes | object | null | As dk_search. |
brand_code | string | null | e.g. 'xiaomi'. |
brand_ids | array | null | As dk_search. |
colors | array | null | As dk_search. |
fast_delivery | boolean | Jet delivery only. |
in_stock_only | boolean | |
max_price | integer | null | |
min_price | integer | null | |
page | integer | |
ready_to_ship | boolean | In Digikala's warehouse only. |
seller_type | string | null | |
sort | string |
dk_brand_products Browse a brand
List a brand's products with sort and price filters (Toman), plus the brand id for brand_ids. One brand in one category: dk_category_products(brand_code=...).
| Parameter | Type | Description |
|---|---|---|
brand_code * | string | Lowercase English name, e.g. 'samsung'. |
in_stock_only | boolean | |
max_price | integer | null | |
min_price | integer | null | |
page | integer | |
sort | string |
dk_seller Seller profile and products
Get a seller's reputation (rating 0-5, on-time shipping, cancellations, returns) and products. Percentages are the share of good orders (100 = never late).
| Parameter | Type | Description |
|---|---|---|
seller_code * | string | dk_product offer seller_code, e.g. 'CGDG9'. |
in_stock_only | boolean | |
page | integer | |
sort | string |
dk_deals Current deals
List today's Incredible Offers (flash deals), biggest discount first, in-stock only. deal_ends is Tehran time.
| Parameter | Type | Description |
|---|---|---|
max_price | integer | null | |
min_price | integer | null | |
page | integer | |
query | string | null | Narrow the deals. |
sort | string | |
store | string | 'supermarket' = Fresh grocery deals. |
dk_best_sellers Best sellers
List current best sellers, overall or in one main category; also returns the main categories' ids for category_id.
| Parameter | Type | Description |
|---|---|---|
category_id | integer | null | Main category id (this tool's `categories`), e.g. 1 mobile. Leaf ids fail. |
limit | integer |
dk_fresh_search Search groceries
Search or browse Digikala Fresh (supermarket). category_code beats query and also returns sub-categories.
| Parameter | Type | Description |
|---|---|---|
category_code | string | null | Instead of query: groceries, dairy, snacks, protein-foods, breakfast, beverages, warm-drinks, fruits-and-vegetables, personal-hygiene, baby-and-mother, home-hygiene, dried-fruit-nuts, ready-made-canne… |
in_stock_only | boolean | |
max_price | integer | null | |
min_price | integer | null | |
page | integer | |
query | string | null | Persian works best, e.g. 'شیر کم چرب'. |
sort | string |
dk_product Product details and offers
Get one product's price, stock, rating, specs and every seller's offer (cheapest first). An offer is one color/size from one seller; stock_left only when low; ships_by 'jet' = same-day Tehran/Karaj. lowest_price_30d can be a one-day dip (dk_price_history's lowest_2_days is steadier).
| Parameter | Type | Description |
|---|---|---|
product_id * | integer | |
include_specs | boolean | |
max_offers | integer |
dk_price_history Price history
Get ~30 days of daily buy-box prices (Toman) per color/variant, with lowest and highest. `lowest_2_days` is the lowest price held two days in a row (`lowest` can be a one-day dip). Days are Jalali.
| Parameter | Type | Description |
|---|---|---|
product_id * | integer |
dk_reviews Product reviews
Read customer reviews: stars 1-5 (null = none), text, pros/cons, verified buyer flag. Texts are cut to 300 characters, pros/cons to 5 of 80 (full_text=true: whole).
| Parameter | Type | Description |
|---|---|---|
product_id * | integer | |
full_text | boolean | No text cuts. |
limit | integer | Of the page's 20. |
page | integer | |
sort | string |
dk_questions Product questions and answers
Read customers' questions (20 per page) with up to 2 answers each (answered_by: buyer, seller, ...). Texts are cut to 300 characters (full_text=true: whole).
| Parameter | Type | Description |
|---|---|---|
product_id * | integer | |
full_text | boolean | No text cuts. |
page | integer | |
sort | string |
dk_similar Similar products
List products similar to one (same kind, other models and brands); sort='cheapest' for cheaper ones.
| Parameter | Type | Description |
|---|---|---|
product_id * | integer | |
in_stock_only | boolean | |
page | integer | |
sort | string |
dk_compare Compare products
Compare 2-4 products side by side: price and rating, then the spec rows where they differ. A `specs` row's `values` follow `products` order (null = no such spec); identical rows fold into `same_specs`.
| Parameter | Type | Description |
|---|---|---|
product_ids * | array | Same kind, e.g. [20109389, 20110013]. |
dk_shortlist Re-check a shortlist
Re-price up to 10 products in one call: price, cheapest offer, stock, rating and 30-day low (Toman). `low_30d` is the lowest price held two days in a row, `vs_30d_low_pct` today's price above it.
| Parameter | Type | Description |
|---|---|---|
product_ids * | array | e.g. [20109389, 20110013]. |
dk_installments Installment plans
Get the Digipay credit-line offers for a product, in Toman. A plan is a fixed credit line repaid in `months` installments, not sized to the product price: never present it as "this product for X a month".
| Parameter | Type | Description |
|---|---|---|
product_id * | integer |
dk_plus_plans Digikala Plus plans
List Digikala Plus plans (monthly free shipments; fresh = supermarket) with price in Toman and benefits.
dk_gold_prices Gold and coin prices
Get the live 18k gold price per gram and gold coin prices, in Toman. Period change, low and high cover ~3 months. A coin with price null is not for sale.
dk_location Find location
Turn an address into coordinates, or coordinates into an address with Digikala's city_id and state_id. Prices are the same everywhere; location only affects delivery.
| Parameter | Type | Description |
|---|---|---|
address | string | null | Persian address or landmark, e.g. 'میدان ونک'. |
city | string | null | Persian city, e.g. 'تهران'; needed for most addresses. |
lat | number | null | With long: describe a point instead. |
long | number | null |