{
  "openapi": "3.0.1",
  "info": {
    "title": "US Stock Screener - Backtested Opportunity Score",
    "description": "Scores US stocks 0-100 on trend, momentum, fundamentals and news sentiment with a backtest-calibrated model, and returns a ranked verdict per ticker with the reasons behind it. Optional SEC EDGAR insider-buying and 13F fund-ownership layer. No API key.",
    "version": "0.1",
    "x-build-id": "4wj2h0uIAbHz5z6eQ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/assured_vertigo~us-stock-opportunity-scanner/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-assured_vertigo-us-stock-opportunity-scanner",
        "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/assured_vertigo~us-stock-opportunity-scanner/runs": {
      "post": {
        "operationId": "runs-sync-assured_vertigo-us-stock-opportunity-scanner",
        "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/assured_vertigo~us-stock-opportunity-scanner/run-sync": {
      "post": {
        "operationId": "run-sync-assured_vertigo-us-stock-opportunity-scanner",
        "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": [
          "universe"
        ],
        "properties": {
          "universe": {
            "title": "Universe to scan",
            "enum": [
              "curated",
              "custom",
              "sp500",
              "nasdaq100"
            ],
            "type": "string",
            "description": "Which set of tickers to score. Use 'custom' together with the Symbols field to scan your own list.",
            "default": "curated"
          },
          "symbols": {
            "title": "Symbols",
            "type": "array",
            "description": "Tickers to scan when Universe is 'custom', e.g. NVDA, MSFT, LLY. Yahoo Finance notation: share classes use a dash (BRK-B).",
            "items": {
              "type": "string"
            }
          },
          "sector": {
            "title": "Sector filter (curated universe only)",
            "type": "string",
            "description": "Scan a single curated sector, e.g. Technology, Financials, Healthcare, Energy. Partial names are accepted. Leave empty for all sectors."
          },
          "maxSymbols": {
            "title": "Max symbols to scan",
            "minimum": 1,
            "maximum": 600,
            "type": "integer",
            "description": "Hard cap on how many tickers are analysed in this run. Keeps cost and runtime predictable on the large universes.",
            "default": 40
          },
          "minScore": {
            "title": "Minimum score to return",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Only return stocks scoring at or above this value (0-100). You are charged only for the stocks actually returned.",
            "default": 0
          },
          "verdicts": {
            "title": "Verdicts to return",
            "type": "array",
            "description": "Keep only these verdicts. Leave empty to return every scanned stock.",
            "items": {
              "type": "string",
              "enum": [
                "STRONG_CANDIDATE",
                "CANDIDATE",
                "WATCHLIST",
                "WEAK"
              ],
              "enumTitles": [
                "Strong candidate",
                "Candidate",
                "Watchlist",
                "Weak"
              ]
            }
          },
          "includeNews": {
            "title": "Include news sentiment",
            "type": "boolean",
            "description": "Score the last 14 days of headlines (15% of the total score) and return the top headlines. Turn off for a faster, price-and-fundamentals-only run.",
            "default": true
          },
          "includeInsiderData": {
            "title": "Include SEC insider trades (Form 4)",
            "type": "boolean",
            "description": "Add open-market insider buying and selling from SEC EDGAR. Reported alongside the score, never folded into it. Adds several seconds per ticker.",
            "default": false
          },
          "insiderWindowDays": {
            "title": "Insider lookback window (days)",
            "minimum": 7,
            "maximum": 365,
            "type": "integer",
            "description": "How far back to read Form 4 filings.",
            "default": 90
          },
          "includeFundHoldings": {
            "title": "Include 13F holdings of tracked funds",
            "type": "boolean",
            "description": "Check whether 19 well-known managers (Berkshire, Scion, Pershing Square, ARK and others) hold the stock, per their latest 13F filing. Requires the insider layer.",
            "default": false
          },
          "concurrency": {
            "title": "Concurrent requests",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "How many tickers to fetch in parallel. Lower this if Yahoo Finance starts rate-limiting your run.",
            "default": 4
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Yahoo Finance rate-limits datacenter IP ranges. Using a proxy is recommended for runs over ~50 tickers.",
            "default": {
              "useApifyProxy": 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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}