{
  "openapi": "3.0.1",
  "info": {
    "title": "TikTok Shop Winning Products",
    "description": "Find fast-growing TikTok Shop products in Germany using sales from the last 24h and 7 days, total sold count, 7-day growth, trend, score, and days on TikTok Shop. Ideal for product research, trend discovery, and e-commerce analysis.",
    "version": "0.0",
    "x-build-id": "HadhOw28lOlfG8DN4"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lugubrious_penguin~TikTok-Shop-Winning-Products-Lite/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lugubrious_penguin-TikTok-Shop-Winning-Products-Lite",
        "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/lugubrious_penguin~TikTok-Shop-Winning-Products-Lite/runs": {
      "post": {
        "operationId": "runs-sync-lugubrious_penguin-TikTok-Shop-Winning-Products-Lite",
        "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/lugubrious_penguin~TikTok-Shop-Winning-Products-Lite/run-sync": {
      "post": {
        "operationId": "run-sync-lugubrious_penguin-TikTok-Shop-Winning-Products-Lite",
        "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",
        "required": [
          "region",
          "keywords"
        ],
        "properties": {
          "region": {
            "title": "Region",
            "enum": [
              "DE",
              "US",
              "GB",
              "ID",
              "TH",
              "VN",
              "PH",
              "MY",
              "SG",
              "JP",
              "MX",
              "IT",
              "FR",
              "ES",
              "BR"
            ],
            "type": "string",
            "description": "TikTok Shop market.",
            "default": "DE"
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Search terms. Use broad terms for better overlap between the lifetime-sales source and market-intelligence source.",
            "items": {
              "type": "string"
            },
            "default": [
              "Beauty",
              "Elektronik",
              "Haushalt"
            ]
          },
          "categories": {
            "title": "Categories / extra search terms",
            "type": "array",
            "description": "Optional additional TikTok category names or broad category terms. They are also searched as keywords to improve soldCount matching.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "searchActorId": {
            "title": "Lifetime sold-count Actor",
            "type": "string",
            "description": "Actor used to obtain cumulative soldCount and product URL.",
            "default": "getanyapi/tiktok-shop-scraper"
          },
          "marketActorId": {
            "title": "Recent market-intelligence Actor",
            "type": "string",
            "description": "Actor used to obtain sold24h, sold7d, 7-day growth and launch date.",
            "default": "lergassy/tiktok-shop-top-products-scraper"
          },
          "maxSearchItemsPerQuery": {
            "title": "Max lifetime-search products per query",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum AnyAPI products requested for each search term.",
            "default": 10
          },
          "maxMarketItemsPerQuery": {
            "title": "Max market products per query",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum recent-market products requested for each term and each period (24h and 7d).",
            "default": 10
          },
          "maxConcurrentExternalCalls": {
            "title": "Parallel external calls",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "Maximum external Actor calls running at the same time. 4-6 is recommended.",
            "default": 4
          },
          "maxOutputProducts": {
            "title": "Max output products",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum number of final rows.",
            "default": 30
          },
          "requireCompleteRows": {
            "title": "Only complete rows",
            "type": "boolean",
            "description": "When enabled, output only products where all requested fields are available.",
            "default": false
          },
          "minSold24h": {
            "title": "Minimum sold 24h",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum units sold in the last 24 hours. Zero disables the filter.",
            "default": 0
          },
          "minSold7d": {
            "title": "Minimum sold 7d",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum units sold in the last 7 days. Zero disables the filter.",
            "default": 0
          },
          "minSoldCount": {
            "title": "Minimum lifetime soldCount",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum cumulative TikTok sold count. Zero disables the filter.",
            "default": 0
          },
          "minGrowth7d": {
            "title": "Minimum growth 7d %",
            "type": "number",
            "description": "Minimum 7-day market revenue growth percentage. Use a negative number to allow declining products.",
            "default": -1000
          },
          "minScore": {
            "title": "Minimum score",
            "minimum": 0,
            "maximum": 100,
            "type": "number",
            "description": "Minimum opportunity score from 0 to 100.",
            "default": 0
          },
          "maxDaysOnTikTokShop": {
            "title": "Maximum days on TikTok Shop",
            "minimum": 0,
            "type": "integer",
            "description": "Optional new-product filter. Zero disables it; for example 90 keeps products launched within about 90 days.",
            "default": 0
          },
          "sortBy": {
            "title": "Sort results by",
            "enum": [
              "score",
              "sold24h",
              "sold7d",
              "soldCount",
              "growth7d",
              "daysOnTikTokShop"
            ],
            "type": "string",
            "description": "Metric used to order the final output.",
            "default": "score"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}