{
  "openapi": "3.0.1",
  "info": {
    "title": "FinViz Stock Screener",
    "description": "Extract real-time stock data from FinViz screeners: top gainers, losers, most active, unusual volume, overbought, oversold, new highs and lows. Returns ticker, company, price, % change, sector, industry, market cap, volume, and P/E ratio per stock. No login or API key required.",
    "version": "1.1",
    "x-build-id": "yeJizLQOs4dOtZzQa"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sheshinmcfly~finviz-stock-screener/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sheshinmcfly-finviz-stock-screener",
        "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/sheshinmcfly~finviz-stock-screener/runs": {
      "post": {
        "operationId": "runs-sync-sheshinmcfly-finviz-stock-screener",
        "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/sheshinmcfly~finviz-stock-screener/run-sync": {
      "post": {
        "operationId": "run-sync-sheshinmcfly-finviz-stock-screener",
        "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": {
          "screeners": {
            "title": "Screeners",
            "type": "array",
            "description": "Which FinViz screener filters to run. Select one or more.",
            "items": {
              "type": "string",
              "enum": [
                "ta_topgainers",
                "ta_toplosers",
                "ta_newhigh",
                "ta_newlow",
                "ta_mostactive",
                "ta_unusualvolume",
                "ta_mostvolatile",
                "ta_overbought",
                "ta_oversold"
              ],
              "enumTitles": [
                "Top Gainers",
                "Top Losers",
                "New Highs",
                "New Lows",
                "Most Active",
                "Unusual Volume",
                "Most Volatile",
                "Overbought (RSI>70)",
                "Oversold (RSI<30)"
              ]
            },
            "default": [
              "ta_topgainers"
            ]
          },
          "maxResults": {
            "title": "Max results per screener",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum number of stocks to extract per screener.",
            "default": 100
          },
          "sector": {
            "title": "Sector",
            "enum": [
              "",
              "basicmaterials",
              "communicationservices",
              "consumercyclical",
              "consumerdefensive",
              "energy",
              "financial",
              "healthcare",
              "industrials",
              "realestate",
              "technology",
              "utilities"
            ],
            "type": "string",
            "description": "Filter by sector. Leave empty for all sectors.",
            "default": ""
          },
          "industry": {
            "title": "Industry",
            "type": "string",
            "description": "Filter by FinViz industry slug (e.g. 'semiconductors', 'softwareapplication', 'biotechnology'). See finviz.com screener industry dropdown for exact slugs. Leave empty for all industries.",
            "default": ""
          },
          "marketCap": {
            "title": "Market Cap",
            "enum": [
              "",
              "mega",
              "large",
              "mid",
              "small",
              "micro",
              "nano"
            ],
            "type": "string",
            "description": "Filter by market capitalization range. Leave empty for all sizes.",
            "default": ""
          },
          "country": {
            "title": "Country",
            "enum": [
              "",
              "usa",
              "notusa",
              "china",
              "japan",
              "canada",
              "unitedkingdom",
              "israel",
              "taiwan",
              "southkorea"
            ],
            "type": "string",
            "description": "Filter by listing country. Leave empty for all countries.",
            "default": ""
          },
          "index": {
            "title": "Index",
            "enum": [
              "",
              "sp500",
              "ndx",
              "dji",
              "rut"
            ],
            "type": "string",
            "description": "Filter by index membership. Leave empty for no index filter.",
            "default": ""
          },
          "theme": {
            "title": "Theme (exclusive filter — no other FinViz actor offers this)",
            "enum": [
              "",
              "artificialintelligence",
              "cloudcomputing",
              "electricvehicles",
              "cybersecurity",
              "robotics",
              "semiconductors"
            ],
            "type": "string",
            "description": "Filter stocks by investment theme. Leave empty for no theme filter. Need a theme not listed here? Use 'Custom FinViz filters' below (see its description for how to get the code).",
            "default": ""
          },
          "customFilters": {
            "title": "Custom FinViz filters (advanced)",
            "type": "string",
            "description": "Advanced: raw comma-separated FinViz filter codes, appended to the other filters below. Useful for filters not exposed above — e.g. a Theme not in the dropdown (Cryptocurrency, Fintech, Space, etc.) or Analyst Recommendation. HOW TO GET THE CODE: go to finviz.com/screener.ashx, set your filter in the site's own filter panel, then copy the code(s) after 'f=' in the resulting browser URL and paste them here (e.g. 'theme_cryptocurrency'). Combines with sector/industry/marketCap/country/index/theme above.",
            "default": ""
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify datacenter proxies work for FinViz. Switch to Residential only if you hit rate limits.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}