{
  "openapi": "3.0.1",
  "info": {
    "title": "Finviz Stock Screener — US Market Data API",
    "description": "Screen US (NYSE/Nasdaq) stocks with plain filters (sector, industry, market cap, index, exchange, country, tickers) or any Finviz screener URL — ticker, company, sector, industry, country, market cap, P/E, price, change and volume as clean JSON. No API key. Pay per record.",
    "version": "0.0",
    "x-build-id": "D0SLx7l6jpsng4pyA"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nexgendata~finviz-stock-screener/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nexgendata-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/nexgendata~finviz-stock-screener/runs": {
      "post": {
        "operationId": "runs-sync-nexgendata-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/nexgendata~finviz-stock-screener/run-sync": {
      "post": {
        "operationId": "run-sync-nexgendata-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": {
          "screenerUrl": {
            "title": "Screener URL",
            "type": "string",
            "description": "Finviz screener URL with your filters applied — any view tab works (Overview, Valuation, Financial, Ownership, Performance, Technical, Custom...). Output fields follow the columns of the view you chose. Build the screen at finviz.com/screener.ashx and copy the URL, or type tickers like AAPL,MSFT. The plain filter inputs below, when set, are added to this address (replacing a filter of the same kind).",
            "default": "https://finviz.com/screener.ashx?v=111&f=cap_largeover"
          },
          "sector": {
            "title": "Sector (optional)",
            "enum": [
              "basicmaterials",
              "communicationservices",
              "consumercyclical",
              "consumerdefensive",
              "energy",
              "financial",
              "healthcare",
              "industrials",
              "realestate",
              "technology",
              "utilities"
            ],
            "type": "string",
            "description": "Optional. Keep only this sector (sets Finviz's sector filter in the address above)."
          },
          "industry": {
            "title": "Industry (optional)",
            "type": "string",
            "description": "Optional. A Finviz industry name, e.g. 'Semiconductors' or 'Software - Application' (sets Finviz's industry filter)."
          },
          "marketCap": {
            "title": "Market cap (optional)",
            "enum": [
              "mega",
              "large",
              "mid",
              "small",
              "micro",
              "nano",
              "largeover",
              "midover",
              "smallover",
              "microover",
              "largeunder",
              "midunder",
              "smallunder",
              "microunder"
            ],
            "type": "string",
            "description": "Optional. Market-cap band, e.g. large ($10bln to $200bln) or smallover (over $300mln)."
          },
          "index": {
            "title": "Index (optional)",
            "enum": [
              "sp500",
              "ndx",
              "dji",
              "rut"
            ],
            "type": "string",
            "description": "Optional. S&P 500, Nasdaq 100, Dow Jones or Russell 2000 members only."
          },
          "exchange": {
            "title": "Exchange (optional)",
            "enum": [
              "amex",
              "nasd",
              "nyse"
            ],
            "type": "string",
            "description": "Optional. AMEX, NASDAQ or NYSE listings only."
          },
          "country": {
            "title": "Country (optional)",
            "enum": [
              "usa",
              "notusa",
              "asia",
              "europe",
              "latinamerica",
              "bric",
              "canada",
              "china",
              "uk",
              "japan",
              "germany",
              "france",
              "israel",
              "india",
              "brazil",
              "netherlands",
              "switzerland",
              "ireland",
              "taiwan",
              "hongkong",
              "singapore",
              "southkorea",
              "australia",
              "mexico"
            ],
            "type": "string",
            "description": "Optional. Company country or region, e.g. usa, notusa, china, uk."
          },
          "tickers": {
            "title": "Tickers (optional)",
            "type": "array",
            "description": "Optional. Look up these tickers, e.g. AAPL, MSFT (adds them to the screener address).",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Max Results",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum stocks to extract",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}