PageSourceSearch

https://beanvest.com/_nuxt/BPJHJIu_.js

js beanvest.com collected 2026-10-08 17:46:51 UTC 5,566 bytes, 7 lines download raw bytes

1import{_ as g}from"./CRmIUlhp.js";import{a as y,A as r,b}from"./CxpcNnba.js";import{u as x}from"./DIfgLNHu.js";import{u as k}from"./DNIcH36k.js";import{B as w,k as c,d as p,e,f as i,m as s,p as P,s as l,F as A,r as C,g as o,o as u,t as d}from"#entry";import"./CwlIVyis.js";import"./CNU0U0FH.js";const T={class:"agent-docs-actions"},S={class:"agent-docs-body"},L={class:"agent-docs-content"},q={id:"quick-start"},E={id:"endpoints"},I={class:"agent-endpoints"},O={id:"page-formats"},U=w({__name:"index",setup(V){const t=x(),m=c(()=>b(t.value)),h=c(()=>`curl -X POST '${t.value}/api/v2/search' \\
2  -H 'Content-Type: application/json' \\
3  --data '{"query":"Tesla","limit":10}'
4
5curl '${t.value}/api/v2/pages/tsla/valuation?metric=pfcf&range=5Y&limit=20'`),f=[{method:"POST",path:"/api/v2/search",text:"Find names, tickers and share-class aliases. Paginated catalog and available pages."},{method:"GET",path:"/api/v2/pages/{symbol}/{topic}",text:"The values, formulas, units, dates and sources behind a financial page."},{method:"GET",path:"/api/v2/metrics",text:"Metric definitions and calculation conventions."},{method:"GET",path:"/api/v2/companies",text:"Complete index with latest financial summaries and dated USD market caps."},{method:"GET",path:"/api/v2/financials/{symbol}",text:"Validated raw data and full filing evidence. Use when you need the original inputs."}];return k("Financial Data API Docs | Beanvest","Read sourced company financials, valuation and filing evidence through the Beanvest JSON API, Markdown pages and read-only MCP."),(B,a)=>{const v=g;return u(),p("article",null,[a[10]||(a[10]=e("header",{class:"agent-docs-heading"},[e("div",null,[e("h1",null,"Financial data API"),e("p",null,"Company financials, formulas and filing evidence. Read-only. No API key.")])],-1)),e("div",T,[i(y,{text:s(m),label:"Copy agent prompt",fallback:"/agent-prompt.txt",primary:""},null,8,["text"]),a[1]||(a[1]=e("a",{href:"/openapi.json"},"OpenAPI 3.1",-1)),i(v,{to:"/v2/api/mcp"},{default:P(()=>[...a[0]||(a[0]=[o("MCP setup",-1)])]),_:1})]),e("div",S,[a[9]||(a[9]=l('<nav class="agent-docs-toc" aria-label="On this page"><a href="#quick-start">Quick start</a><a href="#endpoints">Endpoints</a><a href="#page-formats">Page formats</a><a href="#parameters">Parameters</a><a href="#data-conventions">Data conventions</a></nav>',1)),e("div",L,[e("section",q,[a[2]||(a[2]=e("h2",null,"Quick start",-1)),a[3]||(a[3]=e("p",null,"Resolve a company, then request the topic you need. Use a single metric to keep the response compact.",-1)),i(r,{code:s(h),label:"HTTP requests"},null,8,["code"])]),e("section",E,[a[4]||(a[4]=e("h2",null,"Endpoints",-1)),e("dl",I,[(u(),p(A,null,C(f,n=>e("div",{key:n.path},[e("dt",null,[e("span",null,d(n.method),1),e("code",null,d(n.path),1)]),e("dd",null,d(n.text),1)])),64))])]),e("section",O,[a[5]||(a[5]=e("h2",null,"Every page, readable by an agent",-1)),a[6]||(a[6]=e("p",null,[o("Append "),e("code",null,".md"),o(" or "),e("code",null,".json"),o(" to any V2 page or expanded chart URL. The response uses the same data and financial calculations as the charts.")],-1)),i(r,{code:`${s(t)}/v2/tsla/revenue.md
6${s(t)}/v2/meta/cash-flow.json?frequency=yearly
7${s(t)}/v2/meta/valuation/charts/pe.json?range=ALL`,label:"Page equivalents"},null,8,["code"]),a[7]||(a[7]=l('<p>The home equivalent is the public company catalog. Personal favorites stay in your browser.</p><div class="agent-docs-links"><a href="/llms.txt">llms.txt</a><a href="/llms-full.txt">Full context</a><a href="/skills/beanvest-research/SKILL.md">Research skill</a><a href="/docs/agent-guide.md">Agent guide</a></div>',2))]),a[8]||(a[8]=l('<section id="parameters"><h2>Choose your data</h2><p>Topics: overview, revenue, valuation, cash-flow, margins, returns and capital. Tesla also has deliveries and optimus.</p><dl class="agent-parameters"><div><dt>frequency</dt><dd>quarterly or yearly. Valuation defaults to daily closes, with a fiscal-period fallback when daily history is unavailable.</dd></div><div><dt>range · from · to</dt><dd>Valuation: 1Y, 3Y, 5Y (default), 10Y or ALL. Optional inclusive ISO dates. Use ALL for date intervals older than five years.</dd></div><div><dt>metric</dt><dd>A single metric ID from the page definitions, such as pe, pfcf, fcf or roic.</dd></div><div><dt>deductSbc · wacc</dt><dd>Deduct SBC defaults to false. WACC accepts 0–100% and starts from the company industry proxy.</dd></div><div><dt>limit · offset</dt><dd>Newest first. Default 200 rows, maximum 1,000. Follow pagination.nextOffset. Company search allows up to 50 results per call.</dd></div></dl></section><section id="data-conventions"><h2>Read the numbers correctly</h2><ul class="agent-docs-list"><li>Money and shares use millions; EPS is currency per share. Percentages and percentage points are distinct units.</li><li>Null means unavailable. Check row issues and pending filings. Coverage varies by company and metric.</li><li>Fiscal dates and reporting currencies are retained. Annual EPS and weighted shares are not sums of quarterly figures.</li><li>Valuation uses completed closes and published TTM financials. Median comparisons de
7scribe historical pricing; WACC is a scenario.</li><li>Source URLs, retrieval dates and hashes travel with the data. Raw filing evidence is available through rawDataPath.</li></ul><p>Invalid options return 400, unsupported companies/topics 404, and unavailable validated snapshots 503. The <a href="/openapi.json">OpenAPI contract</a> describes the response fields.</p></section>',2))])])])}}});export{U as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.