{"openapi":"3.1.0","info":{"title":"Quantral API","version":"1.0.0","description":"Read-only access to Quantral's signal scores, the posts behind them, company facts, authors and stories. Authenticate with an API key from the account page. The same data as the Quantral MCP server, with the same plan and limits."},"servers":[{"url":"https://app.quantral.com/api/v1"}],"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","description":"An API key, qtl_live_..."}}},"security":[{"apiKey":[]}],"paths":{"/signals/top":{"get":{"summary":"Companies with the strongest and most credible conversation, highest score first.","x-mcp-tool":"get_top_signals","parameters":[{"name":"window","in":"query","required":false,"description":"Look-back window (default 24h).","schema":{"type":"string","enum":["24h","7d"]}},{"name":"limit","in":"query","required":false,"description":"1 to 50, default 5.","schema":{"type":"integer"}}],"responses":{"200":{"description":"JSON. Carries a preview object when the account has no subscription."},"400":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}}}}},"/companies/search":{"get":{"summary":"Find covered companies by name or ticker.","x-mcp-tool":"search_companies","parameters":[{"name":"query","in":"query","required":true,"description":"Company name or ticker prefix.","schema":{"type":"string"}}],"responses":{"200":{"description":"JSON. Carries a preview object when the account has no subscription."},"400":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}}}}},"/companies/{ticker}/score":{"get":{"summary":"One company's score for both windows, with its tier and chips.","x-mcp-tool":"get_company_score","parameters":[{"name":"ticker","in":"path","required":true,"schema":{"type":"string"},"description":"Ticker symbol, for example NVDA."}],"responses":{"200":{"description":"JSON. Carries a preview object when the account has no subscription."},"400":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}}}}},"/companies/{ticker}/signals":{"get":{"summary":"The posts and filings behind a company's score, up to 50.","x-mcp-tool":"get_company_signals","parameters":[{"name":"ticker","in":"path","required":true,"schema":{"type":"string"},"description":"Ticker symbol, for example NVDA."},{"name":"month","in":"query","required":false,"description":"Calendar month as YYYY-MM. Default: most recent.","schema":{"type":"string"}}],"responses":{"200":{"description":"JSON. Carries a preview object when the account has no subscription."},"400":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}}}}},"/companies/{ticker}/profile":{"get":{"summary":"Company facts: sector, industry, market cap, returns.","x-mcp-tool":"get_company_profile","parameters":[{"name":"ticker","in":"path","required":true,"schema":{"type":"string"},"description":"Ticker symbol, for example NVDA."}],"responses":{"200":{"description":"JSON. Carries a preview object when the account has no subscription."},"400":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}}}}},"/companies/{ticker}/recaps":{"get":{"summary":"Month-by-month recaps of the conversation, newest first.","x-mcp-tool":"get_company_recaps","parameters":[{"name":"ticker","in":"path","required":true,"schema":{"type":"string"},"description":"Ticker symbol, for example NVDA."},{"name":"limit","in":"query","required":false,"description":"1 to 12, default 3.","schema":{"type":"integer"}},{"name":"cursor","in":"query","required":false,"description":"nextCursor from an earlier response.","schema":{"type":"string"}}],"responses":{"200":{"description":"JSON. Carries a preview object when the account has no subscription."},"400":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}}}}},"/companies/{ticker}/patents":{"get":{"summary":"Recent US patent grants.","x-mcp-tool":"get_company_patents","parameters":[{"name":"ticker","in":"path","required":true,"schema":{"type":"string"},"description":"Ticker symbol, for example NVDA."},{"name":"limit","in":"query","required":false,"description":"1 to 50, default 10.","schema":{"type":"integer"}}],"responses":{"200":{"description":"JSON. Carries a preview object when the account has no subscription."},"400":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}}}}},"/companies/{ticker}/lobbying":{"get":{"summary":"US federal lobbying spend by quarter and recent reports.","x-mcp-tool":"get_company_lobbying","parameters":[{"name":"ticker","in":"path","required":true,"schema":{"type":"string"},"description":"Ticker symbol, for example NVDA."},{"name":"limit","in":"query","required":false,"description":"1 to 50, default 10.","schema":{"type":"integer"}}],"responses":{"200":{"description":"JSON. Carries a preview object when the account has no subscription."},"400":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}}}}},"/companies/{ticker}/events":{"get":{"summary":"One company's upcoming earnings and other dates.","x-mcp-tool":"get_upcoming_events","parameters":[{"name":"ticker","in":"path","required":true,"schema":{"type":"string"},"description":"Ticker symbol, for example NVDA."},{"name":"days","in":"query","required":false,"description":"Days ahead, 1 to 60, default 14.","schema":{"type":"integer"}},{"name":"limit","in":"query","required":false,"description":"1 to 50, default 20.","schema":{"type":"integer"}}],"responses":{"200":{"description":"JSON. Carries a preview object when the account has no subscription."},"400":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}}}}},"/events":{"get":{"summary":"Upcoming events across the top companies or all covered companies.","x-mcp-tool":"get_upcoming_events","parameters":[{"name":"scope","in":"query","required":false,"description":"top (default) or all.","schema":{"type":"string","enum":["top","all"]}},{"name":"days","in":"query","required":false,"description":"Days ahead, 1 to 60, default 14.","schema":{"type":"integer"}},{"name":"limit","in":"query","required":false,"description":"1 to 50, default 20.","schema":{"type":"integer"}}],"responses":{"200":{"description":"JSON. Carries a preview object when the account has no subscription."},"400":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}}}}},"/authors/top":{"get":{"summary":"Voices with the best verified track record, or those still building one.","x-mcp-tool":"get_top_authors","parameters":[{"name":"section","in":"query","required":false,"description":"trusted (default) or earning.","schema":{"type":"string","enum":["trusted","earning"]}},{"name":"sort","in":"query","required":false,"description":"record (default) or spy.","schema":{"type":"string","enum":["record","spy"]}},{"name":"limit","in":"query","required":false,"description":"1 to 50, default 10.","schema":{"type":"integer"}}],"responses":{"200":{"description":"JSON. Carries a preview object when the account has no subscription."},"400":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}}}}},"/authors/lookup":{"get":{"summary":"One author's track record, by handle or name.","x-mcp-tool":"get_author","parameters":[{"name":"query","in":"query","required":true,"description":"Handle or name.","schema":{"type":"string"}}],"responses":{"200":{"description":"JSON. Carries a preview object when the account has no subscription."},"400":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}}}}},"/stories":{"get":{"summary":"What people are talking about, as short stories.","x-mcp-tool":"get_stories","parameters":[{"name":"week","in":"query","required":false,"description":"Any date (YYYY-MM-DD) in the week. Default: this week.","schema":{"type":"string"}}],"responses":{"200":{"description":"JSON. Carries a preview object when the account has no subscription."},"400":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}}}}},"/stories/{id}":{"get":{"summary":"One story with the posts behind it.","x-mcp-tool":"get_story","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"},"description":"Story id."},{"name":"cursor","in":"query","required":false,"description":"nextCursor from an earlier response.","schema":{"type":"string"}}],"responses":{"200":{"description":"JSON. Carries a preview object when the account has no subscription."},"400":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}}}}},"/industries":{"get":{"summary":"Sectors or industries ranked by the strength of their conversation.","x-mcp-tool":"get_industry_scores","parameters":[{"name":"level","in":"query","required":false,"description":"sectors (default) or industries.","schema":{"type":"string","enum":["sectors","industries"]}},{"name":"limit","in":"query","required":false,"description":"1 to 50, default 10.","schema":{"type":"integer"}}],"responses":{"200":{"description":"JSON. Carries a preview object when the account has no subscription."},"400":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string"},"message":{"type":"string"}}}}}}}}}}}