{
  "openapi": "3.0.1",
  "info": {
    "title": "Hepsiburada Scraper: Products, Prices, Sellers & Reviews",
    "description": "Scrape Hepsiburada.com (Turkey) by keyword, category, brand, store or product URL: price, original price, discount, rating, seller and rating, stock, specs, variants, other sellers' prices, images and category path. Optional customer reviews. JSON, CSV or Excel.",
    "version": "0.0",
    "x-build-id": "5jGrTNsd5Tq0974vq"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/memo23~hepsiburada-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-memo23-hepsiburada-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/memo23~hepsiburada-scraper/runs": {
      "post": {
        "operationId": "runs-sync-memo23-hepsiburada-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/memo23~hepsiburada-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-memo23-hepsiburada-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": {
          "searchTerms": {
            "title": "Keywords",
            "type": "array",
            "description": "One keyword per line, in Turkish or English, as you would type it in the Hepsiburada search box (e.g. \"airpods\", \"kahve makinesi\", \"samsung galaxy\"). Each keyword is one search.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Hepsiburada links",
            "type": "array",
            "description": "Any hepsiburada.com page that lists products: a search (/ara?q=...), a category (...-c-12345), a brand or tag page, or a seller's store (/magaza/store-name). Single product pages (...-p-HBCV... or ...-pm-HBC...) work too. Filters already in a link are kept.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItems": {
            "title": "Maximum products",
            "minimum": 1,
            "type": "integer",
            "description": "The run stops after this many products, across all keywords and links. Reviews are not counted here.",
            "default": 100
          },
          "maxItemsPerSearch": {
            "title": "Maximum products per keyword or link",
            "minimum": 0,
            "type": "integer",
            "description": "Caps each keyword or listing link on its own, so one large search does not use up the whole run. 0 means no cap.",
            "default": 0
          },
          "includeProductDetails": {
            "title": "Full product details",
            "type": "boolean",
            "description": "Adds the description, specifications, barcode, stock count, every variant, the seller's city and rating, other sellers' prices, the full category path, the star breakdown and the question count. Turn off for faster runs that keep only the search-result data (name, brand, price, discount, rating, review count, seller, images).",
            "default": true
          },
          "includeReviews": {
            "title": "Save customer reviews",
            "type": "boolean",
            "description": "Saves customer reviews for every product: stars, text, date, author initials, verified purchase, the seller it was bought from, likes, photos and per-aspect ratings.",
            "default": false
          },
          "maxReviewsPerProduct": {
            "title": "Maximum reviews per product",
            "minimum": 1,
            "type": "integer",
            "description": "How many reviews to save for each product, in the order chosen below.",
            "default": 20
          },
          "reviewOrder": {
            "title": "Which reviews first",
            "enum": [
              "default",
              "newest",
              "oldest",
              "most_helpful",
              "highest_rating",
              "lowest_rating"
            ],
            "type": "string",
            "description": "The order reviews are taken in, so a cap of 20 keeps the newest, the most liked or the lowest-rated ones. Default: as Hepsiburada lists them.",
            "default": "default"
          },
          "includeQuestions": {
            "title": "Save customer questions & answers",
            "type": "boolean",
            "description": "Saves the customer questions posted on each product, with the sellers' answers, their dates and likes.",
            "default": false
          },
          "maxQuestionsPerProduct": {
            "title": "Maximum questions per product",
            "minimum": 1,
            "type": "integer",
            "description": "How many questions to save for each product, in the order chosen below.",
            "default": 20
          },
          "questionOrder": {
            "title": "Which questions first",
            "enum": [
              "default",
              "newest",
              "oldest",
              "most_helpful"
            ],
            "type": "string",
            "description": "The order questions are taken in, so a capped run keeps the newest, the oldest or the most helpful ones. Default: as Hepsiburada shows them.",
            "default": "default"
          },
          "questionSearch": {
            "title": "Only questions about",
            "type": "string",
            "description": "Save only questions that mention this word or phrase, in the question or in an answer (for example \"plastik\", \"kablo\" or \"garanti\"). Empty saves all questions."
          },
          "sortBy": {
            "title": "Sort results by",
            "enum": [
              "recommended",
              "price_low",
              "price_high",
              "best_selling",
              "most_reviewed",
              "top_rated",
              "biggest_discount",
              "newest"
            ],
            "type": "string",
            "description": "The order products are collected in.",
            "default": "recommended"
          },
          "minPrice": {
            "title": "Price from (TRY)",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest price to include, in TRY (for example 500). Empty means no lower limit."
          },
          "maxPrice": {
            "title": "Price up to (TRY)",
            "minimum": 0,
            "type": "integer",
            "description": "Highest price to include, in TRY (for example 20000). Empty means no upper limit."
          },
          "minRating": {
            "title": "Minimum star rating",
            "enum": [
              "3",
              "4",
              "4.5"
            ],
            "type": "string",
            "description": "Only products rated at least this many stars by customers. Leave empty for all."
          },
          "fastDeliveryOnly": {
            "title": "Fast delivery only",
            "type": "boolean",
            "description": "Only products Hepsiburada marks for fast delivery.",
            "default": false
          },
          "officialSellersOnly": {
            "title": "Authorised and official sellers only",
            "type": "boolean",
            "description": "Only offers from sellers Hepsiburada lists as authorised or official for the brand.",
            "default": false
          },
          "discountedOnly": {
            "title": "Discounted products only",
            "type": "boolean",
            "description": "Keep only products whose current price is below their original price. Products left out are not charged.",
            "default": false
          },
          "goPastResultLimit": {
            "title": "Go past the result limit",
            "type": "boolean",
            "description": "Hepsiburada shows at most 1,764 products for one search or category. With this on, a larger one is read in price ranges so you can collect all of it. It only starts when you ask for more than 1,764 products.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Products in parallel",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "How many product pages are read at the same time.",
            "default": 10
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}