{
  "openapi": "3.0.1",
  "info": {
    "title": "Tokopedia Products Scraper",
    "description": "Tokopedia Products Scraper extracts Tokopedia products by keyword, category or link: price, discount, sold count, rating breakdown, stock, variants, specs, description, images, shop followers / rating / sales, plus reviews and a price-change monitor. Filters for price, rating, location, official sto",
    "version": "1.0",
    "x-build-id": "5w19pnvrrekKesJku"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~tokopedia-products-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-tokopedia-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/neuro-scraper~tokopedia-products-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-tokopedia-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/neuro-scraper~tokopedia-products-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-tokopedia-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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "products",
              "reviews"
            ],
            "type": "string",
            "description": "products = one row per product; reviews = one row per review of the products found.",
            "default": "products"
          },
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "Keywords to search on Tokopedia, e.g. sepatu, iphone 15, rak buku.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Tokopedia URLs",
            "type": "array",
            "description": "Optional: product links (https://www.tokopedia.com/<shop>/<product>), search links (https://www.tokopedia.com/search?q=...) or category links (https://www.tokopedia.com/p/...).",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max products per term",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Products per search term or link (pages of 60 are followed).",
            "default": 20
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "relevance",
              "reviews",
              "newest",
              "highest_price",
              "lowest_price"
            ],
            "type": "string",
            "description": "Tokopedia sort order.",
            "default": "relevance"
          },
          "minPrice": {
            "title": "Minimum price (IDR)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional: lowest price in rupiah."
          },
          "maxPrice": {
            "title": "Maximum price (IDR)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional: highest price in rupiah."
          },
          "minRating": {
            "title": "Minimum rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Optional: keep products rated at least this (0-5); 4 or more also uses Tokopedia's 4+ filter."
          },
          "shopType": {
            "title": "Shop type",
            "enum": [
              "",
              "official_store",
              "power_shop"
            ],
            "type": "string",
            "description": "Optional: only official stores or Power Shops.",
            "default": ""
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "",
              "new",
              "used"
            ],
            "type": "string",
            "description": "Optional: new or used products.",
            "default": ""
          },
          "locations": {
            "title": "Shop locations",
            "type": "array",
            "description": "Optional: shop locations as in Tokopedia's filter, e.g. DKI Jakarta, Bandung, Surabaya, Jawa Barat.",
            "items": {
              "type": "string"
            }
          },
          "category": {
            "title": "Category",
            "type": "string",
            "description": "Optional: category name offered for the search, e.g. Fashion Pria."
          },
          "codOnly": {
            "title": "COD only",
            "type": "boolean",
            "description": "Only products with cash on delivery.",
            "default": false
          },
          "discountedOnly": {
            "title": "Discounted only",
            "type": "boolean",
            "description": "Only discounted products.",
            "default": false
          },
          "freeShippingOnly": {
            "title": "Free shipping only",
            "type": "boolean",
            "description": "Only products with a free-shipping badge.",
            "default": false
          },
          "deliveryType": {
            "title": "Delivery",
            "enum": [
              "",
              "instant",
              "same day"
            ],
            "type": "string",
            "description": "Optional: instant or same-day delivery.",
            "default": ""
          },
          "stockType": {
            "title": "Stock type",
            "enum": [
              "",
              "ready",
              "preorder"
            ],
            "type": "string",
            "description": "Optional: ready stock or pre-order.",
            "default": ""
          },
          "listedWithinDays": {
            "title": "Listed within (days)",
            "minimum": 1,
            "maximum": 90,
            "type": "integer",
            "description": "Optional: products added in the last 7, 14, 30 or 90 days."
          },
          "scrapeDetails": {
            "title": "Full product details",
            "type": "boolean",
            "description": "Open every product for description, specs, variants, stock, weight, images and rating breakdown.",
            "default": true
          },
          "includeShopInfo": {
            "title": "Shop info",
            "type": "boolean",
            "description": "Add shop followers, rating, total sold, transactions, active products and open-since date.",
            "default": true
          },
          "maxReviewsPerProduct": {
            "title": "Reviews per product",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Reviews per product (in mode products: added to the reviews column; 0 = none).",
            "default": 3
          },
          "reviewsSort": {
            "title": "Review order",
            "enum": [
              "newest",
              "most_helpful",
              "highest_rating",
              "lowest_rating"
            ],
            "type": "string",
            "description": "Order of the reviews.",
            "default": "newest"
          },
          "reviewStars": {
            "title": "Review stars",
            "type": "array",
            "description": "Optional: only reviews with these stars, e.g. 1, 2.",
            "items": {
              "type": "string"
            }
          },
          "reviewsWithMediaOnly": {
            "title": "Reviews with photos / videos only",
            "type": "boolean",
            "description": "Only reviews with images or videos.",
            "default": false
          },
          "monitorName": {
            "title": "Price monitor name",
            "type": "string",
            "description": "Optional: a name for a price / sold-count monitor; runs with the same name compare with the previous run (changeType, previousPrice, priceChange ...)."
          },
          "emitRemoved": {
            "title": "Report removed products",
            "type": "boolean",
            "description": "With a price monitor: add a row with changeType removed for products of the previous run that are no longer found.",
            "default": false
          },
          "convertToCurrency": {
            "title": "Convert prices to",
            "type": "string",
            "description": "Optional: currency code such as USD, EUR, SGD; adds convertedPrice with today's exchange rate.",
            "default": ""
          },
          "downloadMedia": {
            "title": "Download images",
            "type": "boolean",
            "description": "Save product images into the run's key-value store (keys in mediaKeys).",
            "default": false
          },
          "maxMediaPerProduct": {
            "title": "Images per product",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many images per product are saved when downloading.",
            "default": 3
          },
          "includeRawData": {
            "title": "Raw search record",
            "type": "boolean",
            "description": "Also save the complete original search record of every product in the raw column.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Pages fetched at the same time.",
            "default": 8
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Residential proxy is the default and recommended.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          },
          "keyword": {
            "title": "Keyword (alias)",
            "type": "string",
            "description": "Same as searchTerms."
          },
          "startUrl": {
            "title": "URL (alias)",
            "type": "string",
            "description": "Same as startUrls."
          },
          "maxResults": {
            "title": "Max results (alias)",
            "type": "integer",
            "description": "Same as maxItems."
          },
          "results_wanted": {
            "title": "Results (alias)",
            "type": "integer",
            "description": "Same as maxItems."
          },
          "maxProductsPerTerm": {
            "title": "Per term (alias)",
            "type": "integer",
            "description": "Same as maxItems."
          },
          "limit": {
            "title": "Limit (alias)",
            "type": "integer",
            "description": "Same as maxItems."
          },
          "scrapeMode": {
            "title": "Mode (alias)",
            "type": "string",
            "description": "Same as mode."
          },
          "sortBy": {
            "title": "Sort (alias)",
            "type": "string",
            "description": "Same as sort."
          },
          "officialOnly": {
            "title": "Official only (alias)",
            "type": "boolean",
            "description": "Same as shopType official_store."
          },
          "ratingFourPlus": {
            "title": "4+ rating (alias)",
            "type": "boolean",
            "description": "Tokopedia's 4+ rating filter."
          },
          "city": {
            "title": "City (alias)",
            "type": "string",
            "description": "Same as locations."
          },
          "categoryId": {
            "title": "Category id",
            "type": "string",
            "description": "Tokopedia category id."
          },
          "reviewSort": {
            "title": "Review sort (alias)",
            "type": "string",
            "description": "Same as reviewsSort."
          },
          "includeProductReviews": {
            "title": "Reviews (alias)",
            "type": "boolean",
            "description": "Reviews in mode products (use maxReviewsPerProduct)."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}