{
  "openapi": "3.0.1",
  "info": {
    "title": "Barchart Scraper | Stock Quotes, Options and Futures",
    "description": "Barchart scraper for stocks, ETFs, indices, futures and options: paste tickers or quote links and get the delayed price, fundamentals, company profile, technical opinion and implied volatility, plus unusual options activity and option chains with greeks. 12 symbols in 1 second, 77 fields each.",
    "version": "1.0",
    "x-build-id": "36VaCXVyhVH859gM5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/silentflow~barchart-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-silentflow-barchart-scraper",
        "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/silentflow~barchart-scraper/runs": {
      "post": {
        "operationId": "runs-sync-silentflow-barchart-scraper",
        "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/silentflow~barchart-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-silentflow-barchart-scraper",
        "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": {
          "symbolsOrUrls": {
            "title": "🏷️ Symbols or Barchart URLs",
            "type": "array",
            "description": "Stocks, ETFs, indices, futures, mutual funds, currencies and crypto, mixed in one list: <code>AAPL</code>, <code>SPY</code>, <code>$SPX</code>, <code>ZCZ26</code>, <code>ES*0</code> (the active contract), <code>^EURUSD</code>, or an option contract like <code>AAPL|20261218|350.00C</code>. You can also paste quote page links such as <code>https://www.barchart.com/stocks/quotes/AAPL/overview</code>.<br><br>Each symbol returns one row, whatever the <b>Max option contracts</b> value. Unknown symbols are listed in the log and skipped. A list of 1,000 symbols reads in about 11 seconds.",
            "items": {
              "type": "string"
            }
          },
          "unusualActivity": {
            "title": "🔥 Unusual options activity screen",
            "type": "array",
            "description": "Pick one or more asset classes to add Barchart's unusual options activity screen: option contracts trading above their open interest in the current session, highest volume to open interest ratio first. Leave empty to skip the screen.<br><br>A regular session lists a few thousand contracts across stocks, ETFs and indices; <b>Max option contracts</b> caps how many you get.",
            "items": {
              "type": "string",
              "enum": [
                "stocks",
                "etfs",
                "indices"
              ],
              "enumTitles": [
                "Stocks",
                "ETFs",
                "Indices"
              ]
            }
          },
          "maxItems": {
            "title": "🔢 Max option contracts",
            "minimum": 1,
            "type": "integer",
            "description": "Caps the unusual activity screen (in total) and each option chain (per symbol). Symbol rows are never capped: every symbol you list returns its row.",
            "default": 100
          },
          "includeOptionChain": {
            "title": "⛓️ Add option chains",
            "type": "boolean",
            "description": "Adds one row per option contract for each symbol of the list that has listed options. The nearest expiration is read unless you pick one below. Currencies, crypto and mutual funds have no chain and are skipped.",
            "default": false
          },
          "optionExpiration": {
            "title": "📅 Chain expiration",
            "pattern": "^(|[Aa][Ll][Ll]|[Nn]earest|\\d{4}-\\d{2}-\\d{2})$",
            "type": "string",
            "description": "Leave empty for the nearest expiration, type a date such as <code>2026-12-18</code> for one expiration, or <code>all</code> for every expiration (capped by <b>Max option contracts</b>, nearest first)."
          },
          "optionType": {
            "title": "📞 Option type",
            "enum": [
              "all",
              "call",
              "put"
            ],
            "type": "string",
            "description": "Calls, puts, or both.",
            "default": "all"
          },
          "minVolume": {
            "title": "📊 Min contract volume",
            "minimum": 0,
            "type": "integer",
            "description": "Screen only: keep contracts that traded at least this many contracts in the session. Barchart's own screen uses <code>500</code>.",
            "default": 500
          },
          "minVolumeOpenInterestRatio": {
            "title": "⚖️ Min volume / open interest ratio",
            "minimum": 0,
            "type": "number",
            "description": "Screen only: keep contracts whose session volume is at least this multiple of their open interest. Barchart's own screen uses <code>1.25</code>; <code>5</code> keeps only the sharpest spikes.",
            "default": 1.25
          },
          "minPremium": {
            "title": "💵 Min premium (USD)",
            "minimum": 0,
            "type": "number",
            "description": "Screen only: keep contracts whose traded premium (last price x volume x contract size) reaches this amount, for example <code>100000</code> to follow large orders. <code>0</code> keeps them all.",
            "default": 0
          },
          "debugMode": {
            "title": "🐞 Debug mode",
            "type": "boolean",
            "description": "Writes detailed request logs. Leave off for normal runs.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}