{
  "openapi": "3.0.1",
  "info": {
    "title": "Tata CLiQ Scraper: Products, Prices, Sellers",
    "description": "Scrape Tata CLiQ and CLiQ Luxury by search, category, brand, link or product id: price, MRP, discount, rating, stock, colour and category. Optional details with the seller, other sellers, sizes with stock, delivery and returns, and reviews. No login; JSON, CSV or Excel; pay per product.",
    "version": "0.1",
    "x-build-id": "HuxY5lLR6JgzTsO4S"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automation_craft~tatacliq-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automation_craft-tatacliq-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/automation_craft~tatacliq-scraper/runs": {
      "post": {
        "operationId": "runs-sync-automation_craft-tatacliq-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/automation_craft~tatacliq-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-automation_craft-tatacliq-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "searchQueries": {
            "title": "Search words",
            "type": "array",
            "description": "Words to search on Tata CLiQ, one search per entry (as typed in the site's search box, for example kurta, nike running shoes, smart watch). A search whose first page holds no product carrying the words is a free status row (see Keyword check). Some words make Tata CLiQ show a landing page instead of a product list (samsung tv): that is a free status row naming the page; search a category or brand instead. Tata CLiQ serves 10,000 products of one search in one order; asking for more goes on in price bands past that.",
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Tata CLiQ category codes to list, or category links (the code is the end of a category link: /mens-clothing-casual-wear-shirts/c-msh1116101 is MSH1116101). Departments: MSH10 Women's Clothing, MSH11 Men's Clothing, MSH12 Electronics, MSH13 Footwear, MSH15 Watches, MSH16 Accessories, MSH20 Jewellery, MSH21 Kids, MSH22 Home, MSH24 Eyewear, MSH25 Beauty and Grooming, MSH30 Health and Wellness; CLiQ Luxury LSH10, ISH10, ISH11. Any level of the tree works.",
            "items": {
              "type": "string",
              "enumSuggestedValues": [
                "MSH10",
                "MSH11",
                "MSH12",
                "MSH13",
                "MSH15",
                "MSH16",
                "MSH20",
                "MSH21",
                "MSH22",
                "MSH24",
                "MSH25",
                "MSH30",
                "LSH10",
                "ISH10",
                "ISH11"
              ]
            }
          },
          "startUrls": {
            "title": "Tata CLiQ links",
            "type": "array",
            "description": "Links copied from www.tatacliq.com or luxury.tatacliq.com: a product (https://www.tatacliq.com/levis-mens-solid-slim-fit-linen-shirt/p-mp000000032095054), a category (/c-msh1116101), a brand (/c-mbh11b26009), a category of one brand (/c-msh1116101/b-mbh11b26009) or a search with its filters and order (https://www.tatacliq.com/search/?searchCategory=all&text=shirt:price-asc:brand:MBH11B26009). Other links are a free status row.",
            "items": {
              "type": "string"
            }
          },
          "productIds": {
            "title": "Product ids",
            "type": "array",
            "description": "Tata CLiQ product ids to read as given (MP and digits, the end of a product link: MP000000032095054). An id Tata CLiQ does not know is a free status row.",
            "items": {
              "type": "string"
            }
          },
          "catalog": {
            "title": "Catalogue",
            "enum": [
              "tatacliq",
              "luxury",
              "both"
            ],
            "type": "string",
            "description": "Where searches and product ids are read: Tata CLiQ's main catalogue (default), CLiQ Luxury (luxury.tatacliq.com), or both (each search runs in each catalogue; a product id is looked up in the main catalogue, then in CLiQ Luxury). Links and category codes carry their own catalogue."
          },
          "searchCategory": {
            "title": "Search inside a category",
            "type": "string",
            "description": "One category code or category link: every search of the run is narrowed to it with Tata CLiQ's own category filter (shirt inside MSH11 Men's Clothing)."
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "relevance",
              "price_low_to_high",
              "price_high_to_low",
              "new_arrivals",
              "discount"
            ],
            "type": "string",
            "description": "Tata CLiQ's own orders. Left out: a link's own order, else popularity. Tata CLiQ has no rating order (use Min customer rating)."
          },
          "minPrice": {
            "title": "Min price (rupees)",
            "minimum": 0,
            "maximum": 99999999,
            "type": "number",
            "description": "Only products at or above this selling price in rupees (Tata CLiQ's own price filter, checked again on every row)."
          },
          "maxPrice": {
            "title": "Max price (rupees)",
            "minimum": 0,
            "maximum": 99999999,
            "type": "number",
            "description": "Only products at or below this selling price in rupees (Tata CLiQ's own price filter, checked again on every row)."
          },
          "minRating": {
            "title": "Min customer rating",
            "minimum": 1,
            "maximum": 5,
            "type": "number",
            "description": "Only products whose average rating is at least this (1 to 5, one decimal). Checked on each row; a product without a rating is left out, free."
          },
          "brands": {
            "title": "Brands",
            "type": "array",
            "description": "Brand names as Tata CLiQ's brand filter names them (Levi's, U.S. Polo Assn.) or brand codes (MBH11B26009, the end of a brand link). Several mean any of them; case does not matter.",
            "items": {
              "type": "string"
            }
          },
          "colours": {
            "title": "Colours",
            "type": "array",
            "description": "Colours as Tata CLiQ's colour filter names them (Black, Navy ...; several mean any of them).",
            "items": {
              "type": "string"
            }
          },
          "sizes": {
            "title": "Sizes",
            "type": "array",
            "description": "Sizes as Tata CLiQ's size filter names them (M, XL, 8, 6-12 M ...; several mean any of them).",
            "items": {
              "type": "string"
            }
          },
          "discounts": {
            "title": "Discount bands",
            "type": "array",
            "description": "Tata CLiQ's discount bands (several mean any of them).",
            "items": {
              "type": "string",
              "enumSuggestedValues": [
                "Upto 10%",
                "10% - 30%",
                "30% - 50%",
                "50% - 70%",
                "70% and more"
              ]
            }
          },
          "gender": {
            "title": "Gender",
            "type": "array",
            "description": "Tata CLiQ's gender filter (men, women, kids, unisex as it lists them for a search; one value at a time).",
            "items": {
              "type": "string",
              "enumSuggestedValues": [
                "men",
                "women",
                "kids",
                "unisex"
              ]
            }
          },
          "filters": {
            "title": "Other filters",
            "type": "array",
            "description": "Any other filter Tata CLiQ lists for a search, written \"<filter name>: <value>\" (Fabric Family: Cotton, Sleeve: Long, Fit: Slim Fit, Suitable For: Boys). The same name twice means either value. List filter options shows every filter of a search with its values and counts.",
            "items": {
              "type": "string"
            }
          },
          "keywordMatch": {
            "title": "Keyword check",
            "enum": [
              "search",
              "product",
              "off"
            ],
            "type": "string",
            "description": "Tata CLiQ rewrites a word it does not carry into another word and shows that word's products. search: a search whose first page holds no product carrying your words delivers nothing (free), and every row says whether it carries them (matchesSearch). product: also leaves out, free, each product that does not carry them. off: delivers what Tata CLiQ shows, marked."
          },
          "maxProductsPerSearch": {
            "title": "Max products per search",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "The most products each search, category or link delivers (up to 50,000). The form starts at 20; left out (an API call without it) means 100."
          },
          "maxProducts": {
            "title": "Max products in all",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "The most products the whole run delivers (left out: no limit beyond the per search one)."
          },
          "includeDetails": {
            "title": "Product details",
            "type": "boolean",
            "description": "Reads each delivered product's record (a Product detail each): the selling seller with its rating, stock and address, every other seller's price and stock, every size with its own product code and stock count, colours, delivery modes and promised days, return and replacement days, cash on delivery, EMI, description, specifications, manufacturer, importer and country of origin, warranty, breadcrumbs, every image, the star histogram and per aspect ratings. Off by default. It can be left off a row when the run's add-on allowance is spent (the row says so)."
          },
          "includeReviews": {
            "title": "Reviews",
            "type": "boolean",
            "description": "Delivers written reviews of each product (a Review each): stars, headline, text, date, verified buyer, the reviewer's aspect ratings, alias and Tata CLiQ user id. Off by default. It can be left off a row when the run's add-on allowance is spent (the row says so)."
          },
          "maxReviewsPerProduct": {
            "title": "Max reviews per product",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "The most reviews per product (default 20, up to 1,000)."
          },
          "reviewSort": {
            "title": "Review order",
            "enum": [
              "newest",
              "oldest",
              "highest_rating",
              "lowest_rating"
            ],
            "type": "string",
            "description": "Tata CLiQ's review orders."
          },
          "reviewStars": {
            "title": "Review stars",
            "type": "array",
            "description": "Only reviews with these star ratings (several mean any of them, kept from the review order chosen).",
            "items": {
              "type": "string",
              "enumSuggestedValues": [
                "1",
                "2",
                "3",
                "4",
                "5"
              ]
            }
          },
          "includeFilterOptions": {
            "title": "List filter options",
            "type": "boolean",
            "description": "Adds one free row per search with every filter Tata CLiQ lists for it (each value with its product count), its category tree and its orders."
          },
          "includePersonalData": {
            "title": "Include personal data",
            "type": "boolean",
            "description": "All public data is always delivered (the reviewer's user id included) and this setting has no effect; it is kept so saved inputs keep working."
          },
          "maxConcurrency": {
            "title": "Parallel reads",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "How many product details and review reads run at once (default 3)."
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 10,
            "maximum": 90,
            "type": "integer",
            "description": "The longest wait for one answer from Tata CLiQ (default 30)."
          },
          "maxRequestRetries": {
            "title": "Retries per request",
            "minimum": 1,
            "maximum": 6,
            "type": "integer",
            "description": "Tries per request before a call counts as failed (default 3)."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Left out: the run's own address, then Apify datacenter addresses when Tata CLiQ refuses it, then Indian residential addresses as the last door. Apify residential uses India unless you pick a country; your own proxy links are used in turn (a password of at least 8 characters with letters and digits)."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}