{
  "openapi": "3.0.1",
  "info": {
    "title": "BSE India Stock Screener — Bombay Stock Exchange Equities",
    "description": "Track Bombay Stock Exchange (BSE) — Asia's oldest stock market, 5,400+ listed companies, SENSEX 30 / BSE 100 / BSE 200 / BSE 500 indices. Prices, market cap (crore INR), P/E, P/B, EPS, ROE, sector, 52w high/low. Bloomberg alternative for Indian equities.",
    "version": "0.0",
    "x-build-id": "qVXFKgxreeOOJigO1"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nexgendata~bse-india-stock-screener/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nexgendata-bse-india-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~bse-india-stock-screener/runs": {
      "post": {
        "operationId": "runs-sync-nexgendata-bse-india-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~bse-india-stock-screener/run-sync": {
      "post": {
        "operationId": "run-sync-nexgendata-bse-india-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": {
          "stock_codes": {
            "title": "Specific BSE codes (optional)",
            "uniqueItems": true,
            "type": "array",
            "description": "Optional list of specific BSE 6-digit numeric codes (e.g. 500325 = Reliance, 500209 = Infosys, 500180 = HDFC Bank, 500875 = ITC, 532540 = TCS) OR scrip names (e.g. RELIANCE, INFY). If provided, the actor returns ONLY these stocks and ignores the index/sector filters. Leave empty to screen by index.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "index": {
            "title": "BSE index scope",
            "enum": [
              "BSE SENSEX",
              "BSE SENSEX 50",
              "BSE SENSEX Next 50",
              "BSE 100",
              "BSE 200",
              "BSE 500",
              "BSE 1000",
              "ALL"
            ],
            "type": "string",
            "description": "Which BSE index universe to screen. SENSEX (top 30 large caps) is the headline Bombay benchmark, BSE 100 covers large + mid caps, BSE 500 covers ~99% of total listed market cap, BSE 1000 is the broadest constituent index. ALL screens the entire BSE listed equity universe (~5,400 names).",
            "default": "BSE SENSEX"
          },
          "limit": {
            "title": "Number of stocks",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Maximum number of BSE stocks to return (1-2000). Sorted by index ordering. Each stock returned charges $0.25 per record so size accordingly. For a full SENSEX run, set 30. For BSE 500 sweep set 500.",
            "default": 30
          },
          "sector": {
            "title": "Sector / industry filter (case-insensitive)",
            "type": "string",
            "description": "Optional substring filter applied to sector + industry + company name. Examples: 'Bank' for banking, 'IT' for tech (Infosys, TCS, Wipro, HCL), 'Pharma' for pharma majors, 'Auto' for autos (Maruti, Tata Motors, M&M), 'FMCG' for consumer goods, 'Refineries' for oil & gas. Requires enrich_fundamentals=true.",
            "default": ""
          },
          "min_market_cap_crore": {
            "title": "Minimum market cap (crore INR)",
            "minimum": 0,
            "maximum": 100000000,
            "type": "integer",
            "description": "Filter out stocks with market cap below this threshold in crore INR (1 crore = 10,000,000 INR ≈ $120k USD). Typical large-cap threshold is 20,000 crore (~$2.4B). Set 100,000 (1 lakh crore) for mega-caps only. 0 = no filter. Requires enrich_fundamentals=true.",
            "default": 0
          },
          "max_pe_ratio": {
            "title": "Maximum P/E ratio",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Filter to stocks with trailing P/E at or below this value (value-investing screen). Set 15 for deep value, 25 for reasonable growth, 50 for growth tilts. Leave empty to disable. Requires enrich_fundamentals=true."
          },
          "max_pb_ratio": {
            "title": "Maximum P/B ratio",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Filter to stocks with price-to-book at or below this value. Set 1.5 for classic Ben Graham value (P/B<1.5), 3 for moderate, 5 for growth-tilted. Leave empty to disable. Requires enrich_fundamentals=true."
          },
          "scrip_group": {
            "title": "BSE scrip group (A / B / T / X / Z)",
            "enum": [
              "",
              "A",
              "B",
              "T",
              "X",
              "Z"
            ],
            "type": "string",
            "description": "Filter by BSE scrip classification group. A = blue chips (top 200 SENSEX/large-caps with derivatives), B = the broad equity universe, T = trade-to-trade only, X / Z = restricted / suspended / penny stocks. Leave empty for any group.",
            "default": ""
          },
          "enrich_fundamentals": {
            "title": "Fetch full fundamentals (P/E, P/B, EPS, market cap, 52w)",
            "type": "boolean",
            "description": "When true (recommended), the actor fans out 4 additional BSE API calls per stock to populate P/E, P/B, EPS, ROE, OPM/NPM, market cap (full + free-float in crore INR), 52-week high/low, month/week ranges, sector, industry, ISIN. When false, only intraday OHLC + change + scrip group + index memberships are returned (~5x faster, ~5x cheaper but no fundamentals).",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify proxy configuration. Datacenter is usually sufficient since BSE's official JSON APIs are open. Switch to RESIDENTIAL only if you hit rate-limits on very large runs.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}