{
  "openapi": "3.0.1",
  "info": {
    "title": "Cheapest TradingView Scraper",
    "description": "Scrape TradingView at the lowest price per result: stock/crypto/forex screener (19k+ US stocks), 200+ fundamentals, quotes, per-symbol news, Buy/Sell technical ratings, community ideas & Minds, indicators and economic calendar. Pay per result — no start fee, no subscription.",
    "version": "0.1",
    "x-build-id": "8pwgD1Nubl1QLjCCg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/serp.cheap.ofc~cheapest-tradingview-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-serp.cheap.ofc-cheapest-tradingview-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/serp.cheap.ofc~cheapest-tradingview-scraper/runs": {
      "post": {
        "operationId": "runs-sync-serp.cheap.ofc-cheapest-tradingview-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/serp.cheap.ofc~cheapest-tradingview-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-serp.cheap.ofc-cheapest-tradingview-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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "screener",
              "quotes",
              "search",
              "calendar",
              "ideas",
              "indicators",
              "news",
              "minds",
              "signals",
              "selftest"
            ],
            "type": "string",
            "description": "What to scrape. 'screener' returns a bulk list of symbols for a market (the workhorse). 'quotes' returns detailed fields for an explicit list of symbols. 'search' resolves free-text into TradingView symbols. 'calendar' returns economic-calendar events. 'news', 'minds' and 'signals' return per-symbol headlines, community Minds posts, and technical-analysis ratings. 'selftest' validates every TradingView endpoint without charging — schedule it for monitoring.",
            "default": "screener"
          },
          "market": {
            "title": "Market (screener mode)",
            "type": "string",
            "description": "Screener market/scan endpoint, e.g. america, brazil, argentina, mexico, uk, germany, india, crypto, forex, cfd, coin, futures. Full list: https://scanner.tradingview.com/{market}/scan",
            "default": "america"
          },
          "columnPreset": {
            "title": "Column preset (screener/quotes)",
            "enum": [
              "overview",
              "performance",
              "valuation",
              "dividends",
              "profitability",
              "income_statement",
              "balance_sheet",
              "cash_flow",
              "technicals"
            ],
            "type": "string",
            "description": "Predefined set of fields to return. Use a rich fundamentals set without knowing field names. Ignored if you provide custom 'columns'.",
            "default": "overview"
          },
          "columns": {
            "title": "Columns / fields (advanced)",
            "type": "array",
            "description": "Custom TradingView field names to return. Overrides the preset. Examples: name, close, market_cap_basic, price_earnings_ttm, dividends_yield_current, RSI, return_on_equity.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "filters": {
            "title": "Screener filters (advanced)",
            "type": "array",
            "description": "Raw TradingView filter objects, e.g. [{\"left\":\"market_cap_basic\",\"operation\":\"greater\",\"right\":1000000000}]. Combined with AND.",
            "default": []
          },
          "sortBy": {
            "title": "Sort by",
            "type": "string",
            "description": "Field to sort the screener by.",
            "default": "market_cap_basic"
          },
          "sortOrder": {
            "title": "Sort order",
            "enum": [
              "desc",
              "asc"
            ],
            "type": "string",
            "description": "Sort direction for the screener: descending or ascending.",
            "default": "desc"
          },
          "symbols": {
            "title": "Symbols (quotes / news / minds / signals modes)",
            "type": "array",
            "description": "Exchange-prefixed symbols for 'quotes', 'news', 'minds' and 'signals' modes, e.g. NASDAQ:AAPL, BINANCE:BTCUSDT, BMFBOVESPA:PETR4.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "searchText": {
            "title": "Search text (search mode)",
            "type": "string",
            "description": "Free text to resolve into TradingView symbols.",
            "default": ""
          },
          "calendarFrom": {
            "title": "Calendar from (ISO date)",
            "type": "string",
            "description": "Start date for 'calendar' mode, e.g. 2026-07-15. Defaults to today.",
            "default": ""
          },
          "calendarTo": {
            "title": "Calendar to (ISO date)",
            "type": "string",
            "description": "End date for 'calendar' mode, e.g. 2026-07-22. Defaults to +7 days.",
            "default": ""
          },
          "calendarCountries": {
            "title": "Calendar countries",
            "type": "array",
            "description": "Currency/country codes for 'calendar' mode, e.g. USD, EUR, BRL.",
            "default": [
              "USD"
            ],
            "items": {
              "type": "string"
            }
          },
          "ideasSymbol": {
            "title": "Ideas symbol (ideas mode)",
            "type": "string",
            "description": "Filter ideas by a symbol, e.g. NASDAQ:AAPL or BITSTAMP:BTCUSD. Leave empty to get globally popular ideas.",
            "default": ""
          },
          "ideasSort": {
            "title": "Ideas sort (ideas mode)",
            "enum": [
              "popular",
              "recent"
            ],
            "type": "string",
            "description": "Sort order for ideas.",
            "default": "popular"
          },
          "indicatorsSort": {
            "title": "Indicators sort (indicators mode)",
            "enum": [
              "week_popular",
              "month_popular",
              "recent",
              "all_time_popular"
            ],
            "type": "string",
            "description": "Sort order for indicators/scripts.",
            "default": "week_popular"
          },
          "newsCategory": {
            "title": "News category (news mode)",
            "type": "string",
            "description": "Optional headline category filter for 'news' mode, e.g. stock, analysis. Leave empty for all news for the symbol.",
            "default": ""
          },
          "signalsTimeframes": {
            "title": "Signal timeframes (signals mode)",
            "type": "array",
            "description": "Timeframes to compute technical ratings for in 'signals' mode. One row per symbol per timeframe. Allowed: 1m, 5m, 15m, 30m, 1h, 2h, 4h, 1D, 1W, 1M.",
            "default": [
              "1D"
            ],
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum rows to return (screener/quotes). 0 = no limit (whole market).",
            "default": 1000
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy settings. Apify Proxy recommended to avoid 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}