{
  "openapi": "3.0.1",
  "info": {
    "title": "Trendyol Products and Reviews Scraper",
    "description": "Export Trendyol Turkey product prices, stock, variants, public seller offers, customer reviews and answered questions for repeatable ecommerce analysis.",
    "version": "0.1",
    "x-build-id": "JthkDKZGGurgybPQJ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fetch_cat~trendyol-products-and-reviews-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fetch_cat-trendyol-products-and-reviews-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/fetch_cat~trendyol-products-and-reviews-scraper/runs": {
      "post": {
        "operationId": "runs-sync-fetch_cat-trendyol-products-and-reviews-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/fetch_cat~trendyol-products-and-reviews-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-fetch_cat-trendyol-products-and-reviews-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": {
          "mode": {
            "title": "Collection mode",
            "enum": [
              "products",
              "reviews",
              "productsAndReviews"
            ],
            "type": "string",
            "description": "Reviews and combined modes require the same product/discovery inputs, with separate review limits.",
            "default": "products"
          },
          "keywords": {
            "title": "Search keywords",
            "maxItems": 100,
            "type": "array",
            "description": "Turkey keyword searches, combined with other sources. Supply at least one source across keywords, URLs and IDs.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          },
          "startUrls": {
            "title": "Trendyol Turkey URLs",
            "maxItems": 100,
            "type": "array",
            "description": "Search /sr, category -x-, merchant /magaza/...-m-ID, product -p-ID and product /yorumlar URLs. URL filters are preserved. Other country paths and arbitrary pages are rejected.",
            "items": {
              "type": "string",
              "pattern": "^https://(www\\.)?trendyol\\.com/",
              "maxLength": 2048
            }
          },
          "productIds": {
            "title": "Product IDs",
            "maxItems": 100,
            "type": "array",
            "description": "Numeric source product IDs as strings, useful for repeated direct refreshes and review-only collection.",
            "items": {
              "type": "string",
              "pattern": "^[0-9]{1,15}$"
            }
          },
          "includeDetails": {
            "title": "Enrich discovered products",
            "type": "boolean",
            "description": "Fetch current product details, primary seller, options, photos and attributes for search/category/store results. Direct product URLs always use details. No separate enrichment event.",
            "default": true
          },
          "maxProducts": {
            "title": "Maximum products",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Global processed-product cap across sources, including unavailable targets. Reviews are separately limited.",
            "default": 20
          },
          "maxPagesPerSource": {
            "title": "Maximum listing pages per source",
            "minimum": 1,
            "maximum": 208,
            "type": "integer",
            "description": "Total listing requests per source, shared across all automatic price partitions (not per partition). Source ceilings, product/billing limits and a separate 270-second / 2,000-request hard cap can leave partial coverage.",
            "default": 100
          },
          "splitByPrice": {
            "title": "Split large searches by price",
            "type": "boolean",
            "description": "Automatically subdivide source-supported TRY ranges when totals exceed the accessible listing window or a deep page resets. At most 63 ranges and 20 split levels, sharing all existing limits. Inclusive boundaries are deduplicated; equal-price saturation and source offer/discount matching can leave partial coverage. Disable to retain ordinary single-range pagination.",
            "default": true
          },
          "sort": {
            "title": "Product ordering",
            "enum": [
              "recommended",
              "priceAscending",
              "priceDescending",
              "newest",
              "bestSelling",
              "mostRated"
            ],
            "type": "string",
            "description": "Source ordering for discovery; recommended preserves any explicit sort in a supplied URL. Does not reorder a mixed-source dataset globally.",
            "default": "recommended"
          },
          "minPrice": {
            "title": "Minimum TRY price",
            "minimum": 0,
            "maximum": 100000000,
            "type": "number",
            "description": "Optional discovery price bound. Must not exceed maxPrice. Direct product refreshes are not filtered."
          },
          "maxPrice": {
            "title": "Maximum TRY price",
            "minimum": 0,
            "maximum": 100000000,
            "type": "number",
            "description": "Optional discovery price bound, applied through source search parameters."
          },
          "reviewSort": {
            "title": "Review ordering",
            "enum": [
              "recommended",
              "newest",
              "oldest",
              "highestRated",
              "lowestRated"
            ],
            "type": "string",
            "description": "Source review ordering per product, applied before the limit.",
            "default": "recommended"
          },
          "maxReviewsPerProduct": {
            "title": "Maximum reviews per product",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "For reviews and combined modes. Pagination collects up to this many reviews; not a guarantee of all reviews.",
            "default": 20
          },
          "maxReviewsTotal": {
            "title": "Maximum total reviews",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Global review-row cap. Product rows have an independent limit.",
            "default": 1000
          },
          "monitoringKey": {
            "title": "Optional monitoring baseline key",
            "pattern": "^[a-zA-Z0-9-]{1,40}$",
            "type": "string",
            "description": "Opt in to a named private baseline of up to 10,000 products. Reuse this key to compare price, availability, seller and variants. First observations have no previous price. No schedule is created."
          },
          "onlyChangedProducts": {
            "title": "Only changed products",
            "type": "boolean",
            "description": "Requires monitoringKey, products mode and includeQuestions=false. New products are included; previously seen unchanged snapshots are omitted without a product charge.",
            "default": false
          },
          "includeQuestions": {
            "title": "Include answered questions",
            "type": "boolean",
            "description": "Optional public product Q&A, saved as question rows and billed at the same per-record feedback event as reviews. Seller/reviewer personal profiles are not collected.",
            "default": false
          },
          "maxQuestionsPerProduct": {
            "title": "Maximum answered questions per product",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Only used with includeQuestions=true; supports source pagination.",
            "default": 10
          },
          "maxQuestionsTotal": {
            "title": "Maximum total answered questions",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Global Q&A cap, independent of the review cap.",
            "default": 1000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}