{
  "openapi": "3.0.1",
  "info": {
    "title": "Trendyol Scraper - Products, Reviews & Q&A",
    "description": "Scrape Trendyol product data, prices, ratings, sellers, reviews, Q&A, coupons, badges, and promotion signals. Use API access, scheduling, integrations, and JSON, CSV, Excel exports.",
    "version": "1.8",
    "x-build-id": "PcUNefolAQnXmUBxX"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/parsebird~trendyol-product-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-parsebird-trendyol-product-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/parsebird~trendyol-product-scraper/runs": {
      "post": {
        "operationId": "runs-sync-parsebird-trendyol-product-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/parsebird~trendyol-product-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-parsebird-trendyol-product-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": {
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Add Trendyol search, category, collection, merchant store, merchant all-products, or product URLs.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "queries": {
            "title": "Queries",
            "type": "array",
            "description": "Add product-focused Trendyol search terms such as a brand, model, or category.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "limit": {
            "title": "Limit",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Maximum product listings to save for each query or listing URL. Keep test runs small before scaling.",
            "default": 50000
          },
          "minPrice": {
            "title": "Min Price",
            "minimum": 0,
            "type": "integer",
            "description": "Optional minimum product price in TRY for query-based searches."
          },
          "maxPrice": {
            "title": "Max Price",
            "minimum": 0,
            "type": "integer",
            "description": "Optional maximum product price in TRY for query-based searches."
          },
          "minimumStarRating": {
            "title": "Minimum Star Rating",
            "enum": [
              "",
              "1",
              "2",
              "3",
              "4",
              "4.5"
            ],
            "type": "string",
            "description": "Keep query results at or above the selected customer rating.",
            "default": ""
          },
          "lowestPriceDays": {
            "title": "Lowest Price Days",
            "type": "array",
            "description": "Keep products currently at their lowest tracked price within the selected timeframe when Trendyol exposes that filter.",
            "items": {
              "type": "string",
              "enum": [
                "10",
                "14",
                "30"
              ],
              "enumTitles": [
                "10 days",
                "14 days",
                "30 days"
              ]
            },
            "default": []
          },
          "influencerPreferredOnly": {
            "title": "Influencer Preferred Only",
            "type": "boolean",
            "description": "Include only products labeled as Influencer Preferred.",
            "default": false
          },
          "couponsOnly": {
            "title": "Coupons Only",
            "type": "boolean",
            "description": "Include only products that currently show coupon availability.",
            "default": false
          },
          "specialOffersOnly": {
            "title": "Special Offers Only",
            "type": "boolean",
            "description": "Include only products that currently show a special offer.",
            "default": false
          },
          "newlyReleasedOnly": {
            "title": "Newly Released Only",
            "type": "boolean",
            "description": "Include only newly released products.",
            "default": false
          },
          "enrich_data": {
            "title": "Enrich Data",
            "type": "boolean",
            "description": "Visit each discovered product page and merge richer details into product records. Direct product URLs are always collected from product pages.",
            "default": false
          },
          "getReviews": {
            "title": "Get Reviews",
            "type": "boolean",
            "description": "Collect customer reviews as separate dataset records linked to the parent product.",
            "default": false
          },
          "maxReviews": {
            "title": "Max Reviews",
            "minimum": 1,
            "type": "integer",
            "description": "Optional maximum number of reviews to save per product."
          },
          "getQna": {
            "title": "Get Q&A",
            "type": "boolean",
            "description": "Collect answered product Q&A entries as separate dataset records linked to the parent product.",
            "default": false
          },
          "maxQna": {
            "title": "Max Q&A",
            "minimum": 1,
            "type": "integer",
            "description": "Optional maximum number of answered Q&A items to save per product."
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}