{
  "openapi": "3.0.1",
  "info": {
    "title": "Amazon Best Sellers & TikTok Viral Products Finder",
    "description": "Find products that are taking off: Amazon hot new releases, best-seller newcomers with few reviews, rank climbs between runs, and products going viral on TikTok, with a trend score and AI insights.",
    "version": "1.0",
    "x-build-id": "UURbUnUNXYeoEPf36"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ingeniela~trending-product-finder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ingeniela-trending-product-finder",
        "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/ingeniela~trending-product-finder/runs": {
      "post": {
        "operationId": "runs-sync-ingeniela-trending-product-finder",
        "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/ingeniela~trending-product-finder/run-sync": {
      "post": {
        "operationId": "run-sync-ingeniela-trending-product-finder",
        "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": {
          "categories": {
            "title": "Amazon categories",
            "type": "array",
            "description": "Best-seller categories to scan.",
            "items": {
              "type": "string",
              "enum": [
                "beauty",
                "hpc",
                "kitchen",
                "fashion",
                "electronics",
                "sporting-goods",
                "toys-and-games",
                "pet-supplies",
                "baby-products",
                "office-products",
                "lawn-garden",
                "automotive",
                "hi",
                "wireless",
                "arts-crafts",
                "grocery"
              ],
              "enumTitles": [
                "Beauty & Personal Care",
                "Health & Household",
                "Home & Kitchen",
                "Clothing, Shoes & Jewelry",
                "Electronics",
                "Sports & Outdoors",
                "Toys & Games",
                "Pet Supplies",
                "Baby",
                "Office Products",
                "Patio, Lawn & Garden",
                "Automotive",
                "Tools & Home Improvement",
                "Cell Phones & Accessories",
                "Arts, Crafts & Sewing",
                "Grocery & Gourmet Food"
              ]
            },
            "default": [
              "beauty",
              "kitchen"
            ]
          },
          "categoryUrls": {
            "title": "Or best-seller links",
            "type": "array",
            "description": "Any Amazon best-sellers (sub)category link, e.g. a niche like 'Facial Serums'.",
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Marketplace",
            "enum": [
              "US",
              "UK",
              "DE",
              "ES",
              "FR",
              "IT",
              "MX",
              "CA",
              "BR",
              "JP",
              "IN",
              "AU",
              "NL"
            ],
            "type": "string",
            "description": "Amazon store to read.",
            "default": "US"
          },
          "lists": {
            "title": "Lists",
            "type": "array",
            "description": "Lists to combine for the trend signals.",
            "items": {
              "type": "string",
              "enum": [
                "bestseller",
                "newReleases"
              ],
              "enumTitles": [
                "Best sellers",
                "Hot new releases"
              ]
            },
            "default": [
              "bestseller",
              "newReleases"
            ]
          },
          "productsPerList": {
            "title": "Products per list",
            "minimum": 10,
            "maximum": 100,
            "type": "integer",
            "description": "Top N of each list in each category.",
            "default": 50
          },
          "maxPrice": {
            "title": "Max price (optional)",
            "minimum": 1,
            "type": "integer",
            "description": "Skip products above this price."
          },
          "scraperMaxCostUsd": {
            "title": "Max spend on data collection (USD)",
            "minimum": 1,
            "type": "integer",
            "description": "Best sellers cost about US$0.001 per product, new releases about US$0.005.",
            "default": 3
          },
          "scanTikTok": {
            "title": "Also find products going viral on TikTok",
            "type": "boolean",
            "description": "Reads the top recent videos of product hashtags and lists the products shown (needs AI).",
            "default": false
          },
          "tiktokHashtags": {
            "title": "TikTok hashtags",
            "type": "array",
            "description": "Product discovery hashtags.",
            "default": [
              "tiktokmademebuyit",
              "amazonfinds"
            ],
            "items": {
              "type": "string"
            }
          },
          "tiktokVideos": {
            "title": "TikTok videos per hashtag",
            "minimum": 10,
            "maximum": 300,
            "type": "integer",
            "description": "About US$0.0037 per video.",
            "default": 60
          },
          "aiInsights": {
            "title": "AI insights per product",
            "type": "boolean",
            "description": "Why it trends, the buyer, a content angle and the main risk.",
            "default": true
          },
          "aiMaxProducts": {
            "title": "Products to analyse",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Highest trend score first.",
            "default": 20
          },
          "language": {
            "title": "Language",
            "enum": [
              "English",
              "Spanish",
              "Portuguese",
              "French",
              "German",
              "Italian"
            ],
            "type": "string",
            "description": "Language of the AI insights.",
            "default": "English"
          },
          "aiProvider": {
            "title": "AI provider",
            "enum": [
              "auto",
              "anthropic",
              "openai",
              "openrouter",
              "gemini",
              "xai",
              "deepseek",
              "mistral"
            ],
            "type": "string",
            "description": "Leave all keys empty to use the built-in AI (billed per AI event).",
            "default": "auto"
          },
          "aiModel": {
            "title": "AI model (optional)",
            "type": "string",
            "description": "Empty = a good default for the provider."
          },
          "anthropicApiKey": {
            "title": "Anthropic API key (optional)",
            "type": "string",
            "description": "With your own key (any provider) that provider bills you and AI events are not charged."
          },
          "openaiApiKey": {
            "title": "OpenAI API key (optional)",
            "type": "string",
            "description": "Your own key from platform.openai.com."
          },
          "openrouterApiKey": {
            "title": "OpenRouter API key (optional)",
            "type": "string",
            "description": "Your own key from openrouter.ai/keys."
          },
          "geminiApiKey": {
            "title": "Google Gemini API key (optional)",
            "type": "string",
            "description": "Your own key from aistudio.google.com/apikey."
          },
          "xaiApiKey": {
            "title": "xAI (Grok) API key (optional)",
            "type": "string",
            "description": "Your own key from console.x.ai."
          },
          "deepseekApiKey": {
            "title": "DeepSeek API key (optional)",
            "type": "string",
            "description": "Your own key from platform.deepseek.com."
          },
          "mistralApiKey": {
            "title": "Mistral API key (optional)",
            "type": "string",
            "description": "Your own key from console.mistral.ai."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}