{
  "openapi": "3.0.1",
  "info": {
    "title": "Trendyol Products Scraper: Prices & Sellers",
    "description": "Trendyol products in Turkey, with each product's seller, variants and other sellers in one row. $0.60 per 1,000 products. Price and old price, discount, rating, stock, photos, badges and link; product page $0.40 per 1,000, reviews and questions optional. No login needed.",
    "version": "0.1",
    "x-build-id": "icFVDhN2xAJVRxIXq"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/luzivanlt~trendyol-products-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-luzivanlt-trendyol-products-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/luzivanlt~trendyol-products-scraper/runs": {
      "post": {
        "operationId": "runs-sync-luzivanlt-trendyol-products-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/luzivanlt~trendyol-products-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-luzivanlt-trendyol-products-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 a shopper would type on Trendyol, such as telefon or bluetooth kulaklık, or a Trendyol /sr search link. Up to 50 values in one run. Each value is read in Trendyol Turkey and returns the products it shows.",
            "items": {
              "type": "string"
            }
          },
          "categoryUrls": {
            "title": "Category links",
            "type": "array",
            "description": "Trendyol category links, such as https://www.trendyol.com/android-cep-telefonlari-x-c164461. The whole category is read, page by page. An old link whose number Trendyol no longer answers stops the run before anything is read, naming the line.",
            "items": {
              "type": "string"
            }
          },
          "brandUrls": {
            "title": "Brand links",
            "type": "array",
            "description": "Trendyol brand links, such as https://www.trendyol.com/xiaomi-x-b101939. Every product the brand lists is read, page by page.",
            "items": {
              "type": "string"
            }
          },
          "storeUrls": {
            "title": "Store links",
            "type": "array",
            "description": "Trendyol store links, such as https://www.trendyol.com/magaza/trendyol-m-968. Every product the store lists is read, page by page.",
            "items": {
              "type": "string"
            }
          },
          "productUrls": {
            "title": "Product links",
            "type": "array",
            "description": "Trendyol product links, such as https://www.trendyol.com/xiaomi/redmi-15-p-984248436, or a product id on its own. Each link saves that one product with its page details.",
            "items": {
              "type": "string"
            }
          },
          "maxProducts": {
            "title": "Maximum products",
            "minimum": 0,
            "maximum": 50000,
            "type": "integer",
            "description": "How many products to save in one run, across every search and link. 0 reads everything the listings offer. A large number takes longer and costs more.",
            "default": 100
          },
          "sortBy": {
            "title": "Order",
            "enum": [
              "score",
              "price-asc",
              "price-desc",
              "newest",
              "best-seller",
              "most-favourite",
              "most-rated"
            ],
            "type": "string",
            "description": "The order Trendyol shows the products in. Relevance is the site's own default; the other choices sort by price, rating, newest or best seller. A product link ignores this.",
            "default": "score"
          },
          "minPrice": {
            "title": "Lowest price",
            "type": "number",
            "description": "Save only products at or above this price, in Turkish lira, such as 500. Leave empty for no lowest price. A product under it is left out and never charged."
          },
          "maxPrice": {
            "title": "Highest price",
            "type": "number",
            "description": "Save only products at or below this price, in Turkish lira, such as 15000. Leave empty for no highest price. A product over it is left out and never charged."
          },
          "minRating": {
            "title": "Lowest rating",
            "type": "number",
            "description": "Save only products rated at or above this many stars, from 0 to 5, such as 4. A product under it, or with no rating yet, is left out and never charged."
          },
          "includeDetails": {
            "title": "Read each product page",
            "type": "boolean",
            "description": "Add each product's own page: the seller's name, city and tax details, every attribute, all variants, other sellers offering it, photos and the full description. Charged separately ($0.60 per 1,000 products) and about 3x slower. Turn off for price, rating and stock from the listing alone.",
            "default": true
          },
          "includeDescription": {
            "title": "Include the description",
            "type": "boolean",
            "description": "Keep each product's full description as HTML, when the product has one. Only used when product pages are read. Empty for a product whose page carries no description.",
            "default": true
          },
          "includeReviews": {
            "title": "Include customer reviews",
            "type": "boolean",
            "description": "Save each product's customer reviews, one row each. Charged $0.55 per 1,000 reviews. Leave off to keep product rows only.",
            "default": false
          },
          "maxReviewsPerProduct": {
            "title": "Reviews per product",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "The most reviews to save for each product, newest first. 50 is the page the site answers in one go; 0 turns reviews off. Only used when reviews are on.",
            "default": 50
          },
          "includeQuestions": {
            "title": "Include questions and answers",
            "type": "boolean",
            "description": "Save the answered questions buyers asked about each product, one row each, with the seller's answer. Charged $0.55 per 1,000 questions. Leave off to keep product rows only.",
            "default": false
          },
          "maxQuestionsPerProduct": {
            "title": "Questions per product",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "The most questions to save for each product. 50 is the page the site answers in one go; 0 turns questions off. Only used when questions are on.",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}