{
  "openapi": "3.0.1",
  "info": {
    "title": "Trending Products Radar (AI-Scored)",
    "description": "Trending Amazon products, each scored 1-10 for sell/promote viability by Claude: demand, competition, buyer-intent search terms, and event-window flags. Raw scrapers tell you WHAT is moving; this tells you whether it's worth acting on.",
    "version": "1.0",
    "x-build-id": "78DfZo6WeaQ7wpCDL"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/agentumgroup~trending-products-radar/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-agentumgroup-trending-products-radar",
        "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/agentumgroup~trending-products-radar/runs": {
      "post": {
        "operationId": "runs-sync-agentumgroup-trending-products-radar",
        "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/agentumgroup~trending-products-radar/run-sync": {
      "post": {
        "operationId": "run-sync-agentumgroup-trending-products-radar",
        "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": {
          "marketplace": {
            "title": "Marketplace",
            "enum": [
              "amazon.com",
              "amazon.ca"
            ],
            "type": "string",
            "description": "Amazon marketplace to watch.",
            "default": "amazon.com"
          },
          "categories": {
            "title": "Categories",
            "uniqueItems": true,
            "type": "array",
            "description": "Amazon departments to scan for trending products.",
            "items": {
              "type": "string",
              "enum": [
                "home-garden",
                "kitchen",
                "sporting-goods",
                "pet-supplies",
                "beauty",
                "electronics",
                "office-products",
                "toys-and-games"
              ],
              "enumTitles": [
                "Home & Kitchen",
                "Kitchen & Dining",
                "Sports & Outdoors",
                "Pet Supplies",
                "Beauty & Personal Care",
                "Electronics",
                "Office Products",
                "Toys & Games"
              ]
            },
            "default": [
              "home-garden",
              "kitchen",
              "sporting-goods",
              "pet-supplies",
              "beauty",
              "electronics",
              "office-products",
              "toys-and-games"
            ]
          },
          "trendSource": {
            "title": "Trend signal",
            "enum": [
              "new-releases",
              "bestsellers",
              "most-wished-for"
            ],
            "type": "string",
            "description": "Which Amazon ranking chart supplies the trend candidates. <b>New Releases</b> (default) surfaces products breaking out before they reach the main charts — the closest live proxy to the retired Movers & Shakers surface. <b>Best Sellers</b> = current top sellers. <b>Most Wished For</b> = demand ahead of purchase.",
            "default": "new-releases"
          },
          "maxProductsPerCategory": {
            "title": "Max products per category",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Cap per category (Amazon publishes at most 100 per chart). Scoring cost scales with this: roughly $0.01-0.02 of your Anthropic spend per 10 products. Prefill is a fast demo (1 category × 10 items, ~90s); raise for full weekly scans (8 × 100).",
            "default": 25
          },
          "minScore": {
            "title": "Minimum score filter",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Only output products scoring at least this (1-10). 0 = no filter. Ignored in unscored mode.",
            "default": 0
          },
          "anthropicApiKey": {
            "title": "Anthropic API key",
            "type": "string",
            "description": "REQUIRED for scoring — your Anthropic API key (console.anthropic.com), used only for scoring, ~$0.01-0.02 of your Anthropic spend per 10 products. Without a key the Actor still runs but returns UNSCORED rows (raw trend candidates, no AI analysis)."
          },
          "scoreResults": {
            "title": "Score results (AI analysis)",
            "type": "boolean",
            "description": "Set to false to run in FREE unscored mode: returns raw trend candidates with no AI scoring and no PPE charges. Ideal for discovery, testing, or budget-sensitive scans. Default: true (scoring enabled when an Anthropic key is also provided).",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}