{
  "openapi": "3.0.1",
  "info": {
    "title": "Trendyol Scraper",
    "description": "Trendyol scraper API for products, prices and reviews. Search Trendyol by keyword or paste category, brand, store or product links: price, discount, rating, seller, stock, barcode, reviews and answered questions. Türkiye and 34 other storefronts. Up to 5,000 per search. $0.47 per 1,000 products.",
    "version": "0.1",
    "x-build-id": "MmdAdkJAJRS3GcQek"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dami_studio~trendyol-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dami_studio-trendyol-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/dami_studio~trendyol-scraper/runs": {
      "post": {
        "operationId": "runs-sync-dami_studio-trendyol-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/dami_studio~trendyol-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-dami_studio-trendyol-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": "What you would type in Trendyol's search box, one per line. Write them in the storefront's language: Turkish for Türkiye, German for Germany, and so on.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Trendyol links",
            "type": "array",
            "description": "Search result, category, brand, store or product links copied from trendyol.com, one per line. A link keeps the filters you set on the site. A product link gives that product; its reviews or questions page counts as the product.",
            "items": {
              "type": "string"
            }
          },
          "storefront": {
            "title": "Storefront",
            "enum": [
              "TR",
              "AZ",
              "DE",
              "AT",
              "BE",
              "BG",
              "HR",
              "CZ",
              "DK",
              "EE",
              "FI",
              "FR",
              "GR",
              "HU",
              "IT",
              "LV",
              "LT",
              "LU",
              "NL",
              "PL",
              "PT",
              "RO",
              "SK",
              "SI",
              "ES",
              "SE",
              "RS",
              "UA",
              "MD",
              "AE",
              "SA",
              "QA",
              "KW",
              "OM",
              "BH"
            ],
            "type": "string",
            "description": "Which Trendyol country to read. Prices come in that storefront's currency and product names in its language.",
            "default": "TR"
          },
          "maxItemsPerSource": {
            "title": "Products per search or link",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "The most products to take from each search word or listing link. Trendyol lists about 5,000 cards for one search; turn on price bands below to go further.",
            "default": 100
          },
          "maxItems": {
            "title": "Products in total",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "The most product rows for the whole run, across every search and link.",
            "default": 1000
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "RELEVANCE",
              "PRICE_LOW_TO_HIGH",
              "PRICE_HIGH_TO_LOW",
              "NEWEST",
              "BEST_SELLING",
              "MOST_FAVOURITED",
              "MOST_REVIEWED"
            ],
            "type": "string",
            "description": "The order Trendyol lists products in. Product links ignore it.",
            "default": "RELEVANCE"
          },
          "minPrice": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "number",
            "description": "In the storefront's currency. Products below it are left out and not charged."
          },
          "maxPrice": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "number",
            "description": "In the storefront's currency. Products above it are left out and not charged."
          },
          "minRating": {
            "title": "Minimum rating",
            "enum": [
              "",
              "1",
              "2",
              "3",
              "4",
              "4.5"
            ],
            "type": "string",
            "description": "Keep products rated at least this many stars. Products with no rating yet are left out when this is set.",
            "default": ""
          },
          "maxRating": {
            "title": "Maximum rating",
            "minimum": 1,
            "maximum": 5,
            "type": "number",
            "description": "Keep products rated at most this many stars, for finding the poorly rated ones. Leave empty for no maximum."
          },
          "freeShippingOnly": {
            "title": "Free shipping only",
            "type": "boolean",
            "description": "Only products Trendyol ships for free.",
            "default": false
          },
          "fastDeliveryOnly": {
            "title": "Fast delivery only",
            "type": "boolean",
            "description": "Only products Trendyol marks for fast delivery.",
            "default": false
          },
          "sameDayShippingOnly": {
            "title": "Ships today only",
            "type": "boolean",
            "description": "Only products that leave the warehouse the same day.",
            "default": false
          },
          "officialSellersOnly": {
            "title": "Official sellers only",
            "type": "boolean",
            "description": "Only products sold by the brand's official store.",
            "default": false
          },
          "topRatedSellersOnly": {
            "title": "Sellers rated above 9 only",
            "type": "boolean",
            "description": "Only products whose seller scores above 9 out of 10.",
            "default": false
          },
          "couponsOnly": {
            "title": "With a coupon only",
            "type": "boolean",
            "description": "Only products with a coupon you can collect.",
            "default": false
          },
          "influencerPicksOnly": {
            "title": "Influencer picks only",
            "type": "boolean",
            "description": "Only products Trendyol lists as picked by influencers.",
            "default": false
          },
          "newProductsOnly": {
            "title": "New products only",
            "type": "boolean",
            "description": "Only products Trendyol lists as new arrivals.",
            "default": false
          },
          "flashSaleOnly": {
            "title": "Flash sale only",
            "type": "boolean",
            "description": "Only products in a running flash sale.",
            "default": false
          },
          "dealsOnly": {
            "title": "Deals only",
            "type": "boolean",
            "description": "Only products Trendyol lists as deals.",
            "default": false
          },
          "campaignTier": {
            "title": "Campaign",
            "enum": [
              "",
              "red",
              "orange",
              "yellow"
            ],
            "type": "string",
            "description": "Only products in one of Trendyol's campaign tiers: red is the deepest discount, then orange, then yellow.",
            "default": ""
          },
          "lowestPriceDays": {
            "title": "Price at its low for the last",
            "enum": [
              "",
              "10",
              "14",
              "30",
              "90"
            ],
            "type": "string",
            "description": "Only products whose price is at its low for the last 10, 14, 30 or 90 days, as Trendyol marks them.",
            "default": ""
          },
          "includeSponsored": {
            "title": "Include sponsored products",
            "type": "boolean",
            "description": "Trendyol mixes sponsored cards into every page. Each row says whether it was one in `sponsored`. Turn this off to keep only the organic results.",
            "default": true
          },
          "inStockOnly": {
            "title": "In stock only",
            "type": "boolean",
            "description": "Leave out products Trendyol shows as sold out.",
            "default": false
          },
          "discountedOnly": {
            "title": "Discounted only",
            "type": "boolean",
            "description": "Only products shown with a struck-through price, so `discountPercent` is above 0.",
            "default": false
          },
          "brandMatchOnly": {
            "title": "Brand starts with the search word",
            "type": "boolean",
            "description": "For brand searches: keep only products whose brand starts with the first word you searched, so a search for \"apple\" leaves out cases and cables from other brands.",
            "default": false
          },
          "splitByPrice": {
            "title": "Go past the list's end with price bands",
            "type": "boolean",
            "description": "A Trendyol search stops after about 5,000 cards. With this on, a search that reaches that end is run again in Trendyol's own price bands to collect more. Only when no price filter is set.",
            "default": false
          },
          "scrapeProductDetails": {
            "title": "Product details",
            "type": "boolean",
            "description": "Open each product's page for the seller and its legal details (registered name, e-mail, tax and registry numbers, address), stock, attributes, variants, barcode, category path and exact favourite count. Billed as a product with details.",
            "default": false
          },
          "findSellerEmails": {
            "title": "Seller e-mail from their own website",
            "type": "boolean",
            "description": "Finds each seller's own website and takes the e-mail address it shows, once per seller per run. Charged only when an e-mail is found. Sellers with no website of their own get none. Needs Product details on.",
            "default": false
          },
          "includeProductRows": {
            "title": "Product rows",
            "type": "boolean",
            "description": "Turn this off to get only reviews or questions for the products found, without the product rows.",
            "default": true
          },
          "includeReviews": {
            "title": "Reviews",
            "type": "boolean",
            "description": "Add a row for each written review of every product, up to the number below.",
            "default": false
          },
          "maxReviewsPerProduct": {
            "title": "Reviews per product",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "The most reviews to take from each product.",
            "default": 20
          },
          "reviewSort": {
            "title": "Review order",
            "enum": [
              "recommended",
              "newest",
              "oldest",
              "highest_rated",
              "lowest_rated"
            ],
            "type": "string",
            "description": "Which reviews come first.",
            "default": "recommended"
          },
          "reviewsWithPhotosOnly": {
            "title": "Reviews with photos only",
            "type": "boolean",
            "description": "Only reviews that carry a photo.",
            "default": false
          },
          "includeQuestions": {
            "title": "Questions and answers",
            "type": "boolean",
            "description": "Add a row for each answered question on every product, up to the number below.",
            "default": false
          },
          "maxQuestionsPerProduct": {
            "title": "Questions per product",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "The most answered questions to take from each product.",
            "default": 20
          },
          "questionSort": {
            "title": "Question order",
            "enum": [
              "recommended",
              "newest"
            ],
            "type": "string",
            "description": "Which questions come first.",
            "default": "recommended"
          },
          "onlyNewOrChanged": {
            "title": "Only new or changed products",
            "type": "boolean",
            "description": "For scheduled runs: return only what changed since the last run with the same searches, links and filters. `changeType` says what: new, priceChanged, soldOut, backInStock, removed (listed last time, not this time, shown as it was then) or reappeared (listed again after that). Removed rows come only from a run that read every search and link to its end, so set Products per search or link above the list's size. Unchanged products are not returned or charged.",
            "default": false
          },
          "trackingName": {
            "title": "Tracking name (optional)",
            "type": "string",
            "description": "With Only new or changed products on: runs with the same name share one history, even when their searches, links or filters differ, so a product the last run listed and this one did not comes back as removed. Leave it empty for one history per input. Up to 100 characters."
          },
          "proxyConfiguration": {
            "title": "Your own connection (optional)",
            "type": "object",
            "description": "Leave as it is. Fill it only to send the run through your own proxies.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}