{
  "openapi": "3.1.0",
  "info": {
    "title": "Earnings & Fundamentals API",
    "version": "1.0.0",
    "description": "US Public-Company Earnings Releases (SEC EDGAR 8-K Item 2.02 clean Markdown), EPS Surprises, Standardized XBRL Financial Statements (Income, Balance Sheet, Cash Flow), Earnings Calendar, Delayed/EOD Stock Summaries & SEC 10-K/10-Q/8-K/Form 4/13F-HR Filings for Financial AI Agents.",
    "contact": {
      "name": "Earnings & Fundamentals API Support",
      "email": "support@earningscalltranscriptsapi.com",
      "url": "https://earningscalltranscriptsapi.com"
    },
    "x-guidance": "Earnings & Fundamentals API provides two authentication rails: (1) X-API-Key or Authorization: Bearer ec_live_... with 3,000 Free Credits ($0.30, no card required) at https://earningscalltranscriptsapi.com/signup, or (2) keyless Base Mainnet USDC x402 pay-per-call at $0.002 USDC/call ($0 settled on 404/empty). Market quote fields in /v1/stocks/summary are Delayed / EOD Reference Quotes, not real-time exchange ticks. Typical research workflows: Lite Earnings Check (1-2 calls): call /v1/earnings/releases?ticker=NVDA&limit=2 for the latest 8-K Item 2.02 press release Markdown and EPS beat/miss history, plus /v1/stocks/summary?ticker=NVDA for valuation multiples. Deep Fundamental Dossier (3-5 calls): call /v1/fundamentals/financials?ticker=AAPL&statement=all&period=quarterly&limit=8 for standardized XBRL income, balance sheet, and cash flow statements, pair with /v1/filings/list?ticker=AAPL&form=10-K,10-Q,8-K,4 for primary SEC links, and check /v1/earnings/calendar?tickers=NVDA,AAPL,MSFT for upcoming reporting windows."
  },
  "servers": [
    {
      "url": "https://api.earningscalltranscriptsapi.com",
      "description": "Production Gateway"
    }
  ],
  "tags": [
    { "name": "Earnings & Surprises", "description": "SEC 8-K Item 2.02 quarterly earnings releases, EPS surprises, and upcoming earnings calendars." },
    { "name": "XBRL Fundamentals", "description": "Official SEC XBRL companyfacts normalized into standardized Wall Street financial statements." },
    { "name": "Market Reference", "description": "Delayed / EOD reference valuation multiples, margins, and analyst consensus snapshots." },
    { "name": "SEC Filings", "description": "Official SEC EDGAR 10-K, 10-Q, 8-K, Form 4, and 13F-HR filings with Markdown conversion." }
  ],
  "components": {
    "securitySchemes": {
      "ApiKeyHeader": { "type": "apiKey", "in": "header", "name": "x-api-key" },
      "BearerAuth": { "type": "http", "scheme": "bearer" }
    }
  },
  "security": [{ "ApiKeyHeader": [] }, { "BearerAuth": [] }],
  "paths": {
    "/v1/earnings/releases": {
      "get": {
        "operationId": "getEarningsReleases",
        "tags": ["Earnings & Surprises"],
        "summary": "SEC 8-K Item 2.02 Earnings Releases & EPS Surprises",
        "description": "Fetches official SEC EDGAR Form 8-K Item 2.02 quarterly earnings press releases & CFO commentary converted to clean LLM-ready Markdown, enriched with quarterly EPS actual vs. consensus estimate and surprise percentage.",
        "x-credits-per-request": "10 Credits / call",
        "x-price-per-request": "$0.0004 – $0.001 / call",
        "x-payment-info": {
          "protocols": [{ "x402": {} }],
          "price": { "mode": "fixed", "currency": "USD", "amount": "0.0020" }
        },
        "parameters": [
          { "name": "ticker", "in": "query", "required": true, "example": "NVDA", "schema": { "type": "string", "example": "NVDA" }, "description": "US stock ticker symbol (e.g. NVDA, AAPL, MSFT) or 10-digit SEC CIK." },
          { "name": "limit", "in": "query", "required": false, "example": 4, "schema": { "type": "integer", "minimum": 1, "maximum": 12, "default": 4 }, "description": "Number of recent 8-K Item 2.02 earnings releases to return." },
          { "name": "include_text", "in": "query", "required": false, "example": true, "schema": { "type": "boolean", "default": true }, "description": "Include clean Markdown text extracted from official Exhibit 99.1 earnings release." }
        ],
        "responses": {
          "200": {
            "description": "Normalized SEC 8-K earnings releases & EPS surprises",
            "content": {
              "application/json": {
                "example": {
                  "code": 0,
                  "provider": "https://earningscalltranscriptsapi.com",
                  "status": "ok",
                  "msg": "success",
                  "data": {
                    "ticker": "NVDA",
                    "cik": "0001045810",
                    "company_name": "NVIDIA CORP",
                    "sic_description": "Semiconductors & Related Devices",
                    "fiscal_year_end": "0131",
                    "current_quarter_label": "4Q2026",
                    "current_quarter_eps_estimate": 2.88,
                    "count": 2,
                    "releases": [
                      {
                        "ticker": "NVDA",
                        "cik": "0001045810",
                        "company_name": "NVIDIA CORP",
                        "accession_number": "0001045810-26-000088",
                        "form": "8-K",
                        "items": ["2.02", "9.01"],
                        "filing_date": "2026-11-17",
                        "report_date": "2026-11-17",
                        "primary_document": "nvda-20261117.htm",
                        "exhibit_document": "q3fy27pr.htm",
                        "sec_filing_url": "https://www.sec.gov/Archives/edgar/data/1045810/000104581026000088/nvda-20261117.htm",
                        "exhibit_url": "https://www.sec.gov/Archives/edgar/data/1045810/000104581026000088/q3fy27pr.htm",
                        "content_chars": 12000
                      }
                    ],
                    "eps_history": [
                      { "calendar_quarter": "3Q2026", "eps_actual": 2.64, "eps_estimate": 2.48, "surprise_pct": 6.45, "beat_or_miss": "beat" }
                    ]
                  },
                  "meta": { "endpoint": "/v1/earnings/releases", "credits_charged": 10, "cached": true, "took_ms": 21 }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": { "type": "integer", "description": "0 on success" },
                    "provider": { "type": "string" },
                    "status": { "type": "string" },
                    "data": {
                      "type": "object",
                      "properties": {
                        "ticker": { "type": "string" },
                        "cik": { "type": "string" },
                        "company_name": { "type": "string" },
                        "count": { "type": "integer" },
                        "releases": { "type": "array", "items": { "type": "object" } },
                        "eps_history": { "type": "array", "items": { "type": "object" } }
                      }
                    }
                  }
                }
              }
            }
          },
          "402": { "description": "Payment Required — pay via Base Mainnet USDC x402 or provide X-API-Key" }
        }
      }
    },
    "/v1/fundamentals/financials": {
      "get": {
        "operationId": "getFundamentalsFinancials",
        "tags": ["XBRL Fundamentals"],
        "summary": "Standardized SEC XBRL Income, Balance & Cash Flow Statements",
        "description": "Normalizes official SEC EDGAR XBRL companyfacts into standardized quarterly or annual Wall Street JSON statements (revenue, gross profit, operating income, net income, diluted EPS, cash, total debt, free cash flow).",
        "x-credits-per-request": "10 Credits / call",
        "x-price-per-request": "$0.0004 – $0.001 / call",
        "x-payment-info": {
          "protocols": [{ "x402": {} }],
          "price": { "mode": "fixed", "currency": "USD", "amount": "0.0020" }
        },
        "parameters": [
          { "name": "ticker", "in": "query", "required": true, "example": "AAPL", "schema": { "type": "string", "example": "AAPL" }, "description": "US stock ticker symbol or 10-digit SEC CIK." },
          { "name": "statement", "in": "query", "required": false, "example": "income", "schema": { "type": "string", "enum": ["income", "balance", "cashflow", "all"], "default": "income" }, "description": "Statement type: income, balance, cashflow, or all." },
          { "name": "period", "in": "query", "required": false, "example": "quarterly", "schema": { "type": "string", "enum": ["quarterly", "annual"], "default": "quarterly" }, "description": "Reporting frequency: quarterly (10-Q/10-K) or annual (10-K)." },
          { "name": "limit", "in": "query", "required": false, "example": 8, "schema": { "type": "integer", "minimum": 1, "maximum": 16, "default": 8 }, "description": "Number of fiscal periods to return." }
        ],
        "responses": {
          "200": {
            "description": "Standardized SEC XBRL financial statement periods",
            "content": {
              "application/json": {
                "example": {
                  "code": 0,
                  "provider": "https://earningscalltranscriptsapi.com",
                  "status": "ok",
                  "msg": "success",
                  "data": {
                    "ticker": "AAPL",
                    "cik": "0000320193",
                    "company_name": "Apple Inc.",
                    "statement": "income",
                    "period": "quarterly",
                    "taxonomy": "us-gaap",
                    "count": 2,
                    "periods": [
                      {
                        "period_end": "2026-06-27",
                        "fiscal_year": 2026,
                        "fiscal_period": "Q3",
                        "form": "10-Q",
                        "filed_date": "2026-07-31",
                        "currency": "USD",
                        "income_statement": {
                          "revenue": 109417000000,
                          "cost_of_revenue": 54647000000,
                          "gross_profit": 54770000000,
                          "gross_margin_pct": 50.06,
                          "research_and_development": 11729000000,
                          "operating_income": 35695000000,
                          "operating_margin_pct": 32.62,
                          "net_income": 29789000000,
                          "net_margin_pct": 27.23,
                          "eps_basic": 2.03,
                          "eps_diluted": 2.02
                        }
                      }
                    ]
                  },
                  "meta": { "endpoint": "/v1/fundamentals/financials", "credits_charged": 10, "cached": true, "took_ms": 24 }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": { "type": "integer" },
                    "status": { "type": "string" },
                    "data": {
                      "type": "object",
                      "properties": {
                        "ticker": { "type": "string" },
                        "cik": { "type": "string" },
                        "statement": { "type": "string" },
                        "period": { "type": "string" },
                        "periods": { "type": "array", "items": { "type": "object" } }
                      }
                    }
                  }
                }
              }
            }
          },
          "402": { "description": "Payment Required — pay via Base Mainnet USDC x402 or provide X-API-Key" }
        }
      }
    },
    "/v1/earnings/calendar": {
      "get": {
        "operationId": "getEarningsCalendar",
        "tags": ["Earnings & Surprises"],
        "summary": "Upcoming Earnings Dates & Latest EPS Surprise Calendar",
        "description": "Returns upcoming earnings announcement windows, current-quarter consensus EPS estimates, latest reported EPS surprises, and latest SEC 8-K Item 2.02 filing dates for a single ticker or watchlist.",
        "x-credits-per-request": "2 Credits / ticker",
        "x-price-per-request": "$0.08 – $0.20 / 1K tickers",
        "x-payment-info": {
          "protocols": [{ "x402": {} }],
          "price": { "mode": "fixed", "currency": "USD", "amount": "0.0020" }
        },
        "parameters": [
          { "name": "ticker", "in": "query", "required": false, "example": "MSFT", "schema": { "type": "string", "example": "MSFT" }, "description": "Single US stock ticker." },
          { "name": "tickers", "in": "query", "required": false, "example": "NVDA,AAPL,MSFT,GOOGL,AMZN", "schema": { "type": "string" }, "description": "Comma-separated watchlist up to 15 tickers." }
        ],
        "responses": {
          "200": {
            "description": "Upcoming earnings dates & latest beat/miss surprises",
            "content": {
              "application/json": {
                "example": {
                  "code": 0,
                  "provider": "https://earningscalltranscriptsapi.com",
                  "status": "ok",
                  "msg": "success",
                  "data": {
                    "tickers": ["MSFT"],
                    "count": 1,
                    "calendar": [
                      {
                        "ticker": "MSFT",
                        "cik": "0000789019",
                        "company_name": "MICROSOFT CORP",
                        "next_earnings_date_start": "2027-01-27",
                        "next_earnings_date_end": "2027-01-27",
                        "is_earnings_date_estimate": true,
                        "current_quarter_label": "4Q2026",
                        "current_quarter_eps_estimate": 4.85492,
                        "latest_reported_quarter": "3Q2026",
                        "latest_reported_date": "2026-10-28",
                        "latest_eps_actual": 4.89,
                        "latest_eps_estimate": 4.7207,
                        "latest_surprise_pct": 3.59,
                        "last_sec_8k_202_date": "2026-10-28"
                      }
                    ]
                  },
                  "meta": { "endpoint": "/v1/earnings/calendar", "credits_charged": 2, "cached": true, "took_ms": 18 }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": { "type": "integer" },
                    "status": { "type": "string" },
                    "data": {
                      "type": "object",
                      "properties": {
                        "count": { "type": "integer" },
                        "calendar": { "type": "array", "items": { "type": "object" } }
                      }
                    }
                  }
                }
              }
            }
          },
          "402": { "description": "Payment Required — pay via Base Mainnet USDC x402 or provide X-API-Key" }
        }
      }
    },
    "/v1/stocks/summary": {
      "get": {
        "operationId": "getStockSummary",
        "tags": ["Market Reference"],
        "summary": "Institutional Stock Summary & Valuation Multiples (Delayed / EOD)",
        "description": "Combines SEC EDGAR company metadata with Delayed/EOD reference price, enterprise value, forward P/E, EV/EBITDA, analyst price targets, gross/operating/profit margins, cash, debt, and TTM free cash flow.",
        "x-credits-per-request": "5 Credits / call",
        "x-price-per-request": "$0.20 – $0.50 / 1K calls",
        "x-payment-info": {
          "protocols": [{ "x402": {} }],
          "price": { "mode": "fixed", "currency": "USD", "amount": "0.0020" }
        },
        "parameters": [
          { "name": "ticker", "in": "query", "required": true, "example": "MSFT", "schema": { "type": "string", "example": "MSFT" }, "description": "US stock ticker symbol." }
        ],
        "responses": {
          "200": {
            "description": "Institutional stock summary dossier (Delayed / EOD reference quote)",
            "content": {
              "application/json": {
                "example": {
                  "code": 0,
                  "provider": "https://earningscalltranscriptsapi.com",
                  "status": "ok",
                  "msg": "success",
                  "data": {
                    "summary": {
                      "ticker": "MSFT",
                      "cik": "0000789019",
                      "company_name": "MICROSOFT CORP",
                      "exchange": "Nasdaq",
                      "sic": "7372",
                      "sic_description": "Services-Prepackaged Software",
                      "quote_type": "delayed_eod_reference",
                      "quote_disclaimer": "Delayed / EOD Reference Quote — provided for fundamental equity research and AI analysis, not a real-time exchange tick feed.",
                      "reference_price": 489.93,
                      "currency": "USD",
                      "enterprise_value": 3705361137664,
                      "market_cap_est": 3638315496861,
                      "trailing_eps": 19.16,
                      "forward_eps": 24.2,
                      "forward_pe": 20.24,
                      "target_mean_price": 637.36,
                      "analyst_recommendation": "strong_buy",
                      "analyst_opinions_count": 54
                    }
                  },
                  "meta": { "endpoint": "/v1/stocks/summary", "credits_charged": 5, "quote_type": "delayed_eod_reference", "cached": true, "took_ms": 19 }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": { "type": "integer" },
                    "status": { "type": "string" },
                    "data": {
                      "type": "object",
                      "properties": {
                        "summary": { "type": "object" }
                      }
                    }
                  }
                }
              }
            }
          },
          "402": { "description": "Payment Required — pay via Base Mainnet USDC x402 or provide X-API-Key" }
        }
      }
    },
    "/v1/filings/list": {
      "get": {
        "operationId": "listSecFilings",
        "tags": ["SEC Filings"],
        "summary": "SEC EDGAR 10-K, 10-Q, 8-K, Form 4 & 13F-HR Filings Index + Markdown",
        "description": "Lists official SEC EDGAR filings by stock ticker or institutional CIK (e.g. 0001067983 for Berkshire Hathaway 13F-HR) with direct EDGAR document URLs and optional HTML-to-Markdown conversion.",
        "x-credits-per-request": "2 Credits / filing",
        "x-price-per-request": "$0.08 – $0.20 / 1K filings",
        "x-payment-info": {
          "protocols": [{ "x402": {} }],
          "price": { "mode": "fixed", "currency": "USD", "amount": "0.0020" }
        },
        "parameters": [
          { "name": "ticker", "in": "query", "required": true, "example": "TSLA", "schema": { "type": "string", "example": "TSLA" }, "description": "US stock ticker or 10-digit SEC CIK." },
          { "name": "form", "in": "query", "required": false, "example": "10-K,10-Q,8-K,4,13F-HR", "schema": { "type": "string", "default": "10-K,10-Q,8-K,4,13F-HR" }, "description": "Comma-separated SEC form filter." },
          { "name": "limit", "in": "query", "required": false, "example": 20, "schema": { "type": "integer", "minimum": 1, "maximum": 100, "default": 20 }, "description": "Maximum filings to return." },
          { "name": "extract_markdown", "in": "query", "required": false, "example": false, "schema": { "type": "boolean", "default": false }, "description": "Convert the latest matched filing HTML into clean LLM-ready Markdown." }
        ],
        "responses": {
          "200": {
            "description": "SEC EDGAR filings list",
            "content": {
              "application/json": {
                "example": {
                  "code": 0,
                  "provider": "https://earningscalltranscriptsapi.com",
                  "status": "ok",
                  "msg": "success",
                  "data": {
                    "ticker": "TSLA",
                    "cik": "0001318605",
                    "company_name": "Tesla, Inc.",
                    "exchanges": ["Nasdaq"],
                    "sic": "3711",
                    "forms_filter": ["10-K", "10-Q", "8-K"],
                    "count": 3,
                    "filings": [
                      {
                        "ticker": "TSLA",
                        "cik": "0001318605",
                        "accession_number": "0001628280-26-066775",
                        "form": "10-Q",
                        "filing_date": "2026-10-22",
                        "report_date": "2026-09-30",
                        "primary_document": "tsla-20260930.htm",
                        "is_xbrl": true,
                        "is_inline_xbrl": true,
                        "sec_url": "https://www.sec.gov/Archives/edgar/data/1318605/000162828026066775/tsla-20260930.htm"
                      }
                    ]
                  },
                  "meta": { "endpoint": "/v1/filings/list", "credits_charged": 6, "cached": true, "took_ms": 21 }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": { "type": "integer" },
                    "status": { "type": "string" },
                    "data": {
                      "type": "object",
                      "properties": {
                        "ticker": { "type": "string" },
                        "cik": { "type": "string" },
                        "count": { "type": "integer" },
                        "filings": { "type": "array", "items": { "type": "object" } }
                      }
                    }
                  }
                }
              }
            }
          },
          "402": { "description": "Payment Required — pay via Base Mainnet USDC x402 or provide X-API-Key" }
        }
      }
    }
  }
}
