Margin of Insight Research API

Equity research endpoints. Free primer requires no auth. Fundamental ($1) and memo ($2) are paid per call via a Stripe Shared Payment Token bearer (spt_…). x402 autonomous agent payments are on the roadmap (Phase 5).

GitHub OpenAPI

Operations 3

GET /research/{ticker}/primer Get Company Primer #
GET /research/{ticker}/fundamental Get Fundamental Analysis #
GET /research/{ticker}/memo Get Full Investment Memo #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/marginofinsight-com:marginofinsight-com-research-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

marginofinsight-com-research-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Margin of Insight Research API
  version: 1.0.0
  description: Pre-computed Wall Street-grade equity research as structured JSON for AI agents and LLMs. Free primer (no auth), $1.00 fundamental analysis, $2.00 full investment memo. Paid endpoints accept a Stripe Link Shared Payment Token (SPT) — no marginofinsight account, no static credential, no pre-funded balance. US-listed SEC filers only.
  contact:
    url: https://marginofinsight.com
  x-llms-txt: https://marginofinsight.com/llms.txt
  x-docs: https://marginofinsight.com/docs.html
  x-mcp-server: https://app.marginofinsight.com/api/mcp
  x-well-known-spt: https://app.marginofinsight.com/api/v1/well-known/spt
servers:
- url: https://app.marginofinsight.com/api/v1
  description: Production
security:
- StripeSpt: []
tags:
- name: Research
  description: Equity research endpoints. Free primer requires no auth. Fundamental ($1) and memo ($2) are paid per call via a Stripe Shared Payment Token bearer (spt_…). x402 autonomous agent payments are on the roadmap (Phase 5).
paths:
  /research/{ticker}/primer:
    get:
      operationId: getCompanyPrimer
      summary: Get Company Primer
      x-agent-summary: 'Free: returns business overview, financial snapshot, and recent catalysts for a US-listed ticker. No auth required.'
      description: 'Returns a 3-step company primer: business overview, financial snapshot (last 4 quarters), and recent catalysts including upcoming earnings. No authentication required.'
      tags:
      - Research
      security: []
      parameters:
      - name: ticker
        in: path
        required: true
        description: Uppercase US exchange ticker symbol (e.g. AAPL, MSFT, NVDA)
        schema:
          type: string
          example: AAPL
      responses:
        '200':
          description: Company primer — free, no auth
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseEnvelope'
              example:
                ticker: AAPL
                company: Apple Inc.
                exchange: NASDAQ
                report_type: primer
                tier: free
                generated_at: '2026-04-28T09:14:22Z'
                coverage_as_of: 2025-Q4
                freshness_days: 12
                steps_included:
                - 1
                - 2
                - 3
                data:
                  overview:
                    description: Apple Inc. designs and sells consumer electronics, software, and services.
                    sector: Technology
                    market_cap_usd: 3200000000000
                  financial_snapshot:
                    revenue_ttm: 391000000000
                    gross_margin_pct: 46.2
                    pe_ratio: 33.1
                  catalysts:
                    recent: []
                    upcoming:
                    - date: '2026-05-01'
                      event: Q2 FY2026 Earnings
                metadata:
                  data_sources:
                  - SEC EDGAR XBRL
                  - earnings transcripts
                  - Tavily web search
                  estimated_self_research_cost_usd: 0.5
                  api_version: v1
        '404':
          description: Ticker not covered
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: not_covered
                ticker: XYZ
                message: XYZ is not in the coverage universe.
                request_url: POST /api/v1/coverage/request
                estimated_ready_hours: 24
  /research/{ticker}/fundamental:
    get:
      operationId: getFundamentalAnalysis
      summary: Get Fundamental Analysis
      x-agent-summary: 'Paid ($1.00): returns 12-step fundamental analysis including earnings transcripts, competitive positioning, risk register, balance sheet, and returns on capital (ROIC). SPT bearer token required.'
      description: Returns a 12-step fundamental analysis. Charges $1.00 against the Stripe SPT in-line via payment_intents.create. Includes all Company Primer content plus revenue breakdown, earnings transcript analysis, competitive positioning, financial trends, risk register, balance sheet health, capital allocation, returns on capital (ROIC), and industry context.
      tags:
      - Research
      parameters:
      - name: ticker
        in: path
        required: true
        schema:
          type: string
          example: AAPL
      responses:
        '200':
          description: Fundamental analysis — $1.00 charged
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseEnvelope'
        '401':
          description: SPT malformed, revoked, or expired. Re-issue the token via Stripe Link.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: spt_invalid
                message: Token revoked or expired. Re-issue via Stripe Link.
        '402':
          description: 'Stripe declined the charge, or the SPT''s usage_limits would be exceeded. Body includes Stripe''s decline_code. Roadmap: x402 autonomous agent payment terms (USDC on Base) — Phase 5.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: payment_declined
                decline_code: card_declined
                message: Stripe declined the payment. See decline_code for reason.
        '404':
          description: Ticker not covered. No charge attempted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limited. Retry-After header indicates seconds to wait.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: rate_limited
                message: Too many requests.
  /research/{ticker}/memo:
    get:
      operationId: getInvestmentMemo
      summary: Get Full Investment Memo
      x-agent-summary: 'Paid ($2.00): returns complete 21-step investment memo including DCF valuation, moat analysis, scenario analysis, institutional & insider activity, and a full prose memo. SPT bearer token required. Equivalent research costs ~$7–9 to self-produce.'
      description: Returns a complete 21-step investment memo. Charges $2.00 against the Stripe SPT in-line via payment_intents.create. Includes all Fundamental Analysis content plus moat analysis, management quality assessment, DCF valuation, comparable analysis, sensitivity matrix, scenario analysis (bear/base/bull), investment thesis, institutional & insider activity, and a full prose memo in Markdown.
      tags:
      - Research
      parameters:
      - name: ticker
        in: path
        required: true
        schema:
          type: string
          example: AAPL
      responses:
        '200':
          description: Full investment memo — $2.00 charged
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseEnvelope'
        '401':
          description: SPT malformed, revoked, or expired. Re-issue the token via Stripe Link.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: spt_invalid
                message: Token revoked or expired. Re-issue via Stripe Link.
        '402':
          description: 'Stripe declined the charge, or the SPT''s usage_limits would be exceeded. Body includes Stripe''s decline_code. Roadmap: x402 autonomous agent payment terms (USDC on Base) — Phase 5.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: payment_declined
                decline_code: card_declined
                message: Stripe declined the payment. See decline_code for reason.
        '404':
          description: Ticker not covered. No charge attempted.
        '429':
          description: Rate limited. Retry-After header indicates seconds to wait.
components:
  schemas:
    ResponseMetadata:
      type: object
      properties:
        data_sources:
          type: array
          items:
            type: string
          example:
          - SEC EDGAR XBRL
          - earnings transcripts
          - Tavily web search
        model:
          type: string
          example: claude-sonnet-4-6
        steps_run:
          type: integer
          example: 19
        estimated_self_research_cost_usd:
          type: number
          example: 8.5
        api_version:
          type: string
          example: v1
    ResponseEnvelope:
      type: object
      required:
      - ticker
      - company
      - exchange
      - report_type
      - tier
      - generated_at
      - coverage_as_of
      - freshness_days
      - data
      - metadata
      properties:
        ticker:
          type: string
          example: AAPL
          description: Uppercase ticker symbol
        company:
          type: string
          example: Apple Inc.
        exchange:
          type: string
          example: NASDAQ
        report_type:
          type: string
          enum:
          - primer
          - fundamental
          - memo
        tier:
          type: string
          enum:
          - free
          - fundamental
          - full
        generated_at:
          type: string
          format: date-time
          description: ISO 8601 timestamp when this report was generated
        coverage_as_of:
          type: string
          example: 2025-Q4
          description: Most recent quarter reflected in the research
        freshness_days:
          type: integer
          example: 12
          description: Days since report was generated
        steps_included:
          type: array
          items:
            type: integer
          example:
          - 1
          - 2
          - 3
        data:
          $ref: '#/components/schemas/ResearchData'
        metadata:
          $ref: '#/components/schemas/ResponseMetadata'
    ResearchData:
      type: object
      description: Research content. Fields present depend on tier requested.
      properties:
        overview:
          type: object
          description: Step 1 — Business Overview
          properties:
            description:
              type: string
            sector:
              type: string
            industry:
              type: string
            exchange:
              type: string
            market_cap_usd:
              type: number
            employees:
              type: integer
            business_model:
              type: string
            revenue_model:
              type: string
            core_products:
              type: array
              items:
                type: string
        financial_snapshot:
          type: object
          description: Step 2 — Financial Snapshot
          properties:
            revenue_ttm:
              type: number
            net_income_ttm:
              type: number
            eps_ttm:
              type: number
            gross_margin_pct:
              type: number
            operating_margin_pct:
              type: number
            fcf_ttm:
              type: number
            pe_ratio:
              type: number
            ps_ratio:
              type: number
            ev_ebitda:
              type: number
            quarterly:
              type: array
              items:
                type: object
                properties:
                  period:
                    type: string
                    example: 2025-Q4
                  revenue:
                    type: number
                  net_income:
                    type: number
                  eps:
                    type: number
                  yoy_revenue_growth_pct:
                    type: number
        catalysts:
          type: object
          description: Step 3 — Recent Catalysts
          properties:
            recent:
              type: array
              items:
                type: object
                properties:
                  date:
                    type: string
                    format: date
                  type:
                    type: string
                    enum:
                    - earnings
                    - guidance
                    - news
                    - filing
                  summary:
                    type: string
                  sentiment:
                    type: string
                    enum:
                    - positive
                    - negative
                    - neutral
            upcoming:
              type: array
              items:
                type: object
                properties:
                  date:
                    type: string
                    format: date
                  event:
                    type: string
        revenue_breakdown:
          type: object
          description: Step 4 — Revenue Breakdown ($1 tier and above)
          properties:
            segments:
              type: array
              items:
                type: object
            geographic:
              type: array
              items:
                type: object
            concentration_risk:
              type: string
        earnings_analysis:
          type: object
          description: Step 5 — Earnings Transcript Analysis ($1 tier and above)
          properties:
            quarters_analyzed:
              type: array
              items:
                type: string
            management_tone:
              type: string
              enum:
              - confident
              - cautious
              - mixed
            key_quotes:
              type: array
              items:
                type: string
            guidance_credibility:
              type: string
            analyst_pushback_themes:
              type: array
              items:
                type: string
        competitive_positioning:
          type: object
          description: Step 6 — Competitive Positioning ($1 tier and above)
        financial_trends:
          type: object
          description: Step 7 — Financial Trends ($1 tier and above)
        risk_register:
          type: array
          description: Step 8 — Risk Register ($1 tier and above)
          items:
            type: object
            properties:
              risk:
                type: string
              severity:
                type: string
                enum:
                - high
                - medium
                - low
              likelihood:
                type: string
                enum:
                - high
                - medium
                - low
              source:
                type: string
        balance_sheet:
          type: object
          description: Step 9 — Balance Sheet Health ($1 tier and above)
        capital_allocation:
          type: object
          description: Step 10 — Capital Allocation ($1 tier and above)
        industry_context:
          type: object
          description: Step 11 — Industry Context ($1 tier and above)
        moat_analysis:
          type: object
          description: Step 12 — Moat Analysis ($2 tier only)
        management_quality:
          type: object
          description: Step 13 — Management Quality ($2 tier only)
        dcf_valuation:
          type: object
          description: Step 14 — DCF Valuation ($2 tier only)
          properties:
            implied_price:
              type: number
              example: 198.4
            current_price:
              type: number
              example: 212.5
            upside_pct:
              type: number
              example: -6.6
            wacc_pct:
              type: number
            terminal_growth_rate_pct:
              type: number
            assumptions:
              type: object
        comp_analysis:
          type: object
          description: Step 15 — Comparable Analysis ($2 tier only)
        sensitivity_matrix:
          type: object
          description: Step 16 — Sensitivity Analysis ($2 tier only)
          properties:
            axes:
              type: object
              properties:
                x:
                  type: string
                  description: Variable on X axis, e.g. revenue growth rate
                y:
                  type: string
                  description: Variable on Y axis, e.g. terminal margin
            matrix:
              type: array
              description: 3x3 grid of implied prices
              items:
                type: array
                items:
                  type: number
        scenarios:
          type: object
          description: Step 17 — Scenario Analysis ($2 tier only)
          properties:
            bear:
              type: object
              properties:
                price_target:
                  type: number
                probability:
                  type: number
                thesis:
                  type: string
                catalysts:
                  type: array
                  items:
                    type: string
            base:
              type: object
              properties:
                price_target:
                  type: number
                probability:
                  type: number
                thesis:
                  type: string
                catalysts:
                  type: array
                  items:
                    type: string
            bull:
              type: object
              properties:
                price_target:
                  type: number
                probability:
                  type: number
                thesis:
                  type: string
                catalysts:
                  type: array
                  items:
                    type: string
        investment_thesis:
          type: string
          description: 'Step 18 — 3-sentence investment thesis: company characterization, key assumption, primary risk ($2 tier only)'
          example: 'Apple is a mature platform business with exceptional capital return discipline. The thesis rests on services mix-shift sustaining margin expansion through the next cycle. Key risk: AI device transition disrupts the current upgrade cadence.'
        structured_memo:
          type: string
          description: Step 19 — Full prose investment memo in Markdown, optimized for LLM downstream consumption ($2 tier only)
        returns_on_capital:
          type: object
          description: Step 20 — Returns on Capital analysis ($1 tier and above)
        institutional_insider:
          type: object
          description: Step 21 — Institutional ownership & insider activity ($2 tier only)
    ErrorResponse:
      type: object
      required:
      - error
      properties:
        error:
          type: string
          example: not_covered
        message:
          type: string
        ticker:
          type: string
        request_url:
          type: string
        estimated_ready_hours:
          type: integer
        decline_code:
          type: string
          description: Stripe decline_code on HTTP 402 — see https://docs.stripe.com/declines/codes
  securitySchemes:
    StripeSpt:
      type: http
      scheme: bearer
      bearerFormat: spt_…
      description: 'Stripe Link Shared Payment Token (SPT). Your operator authorizes you in Stripe Link with a max_amount scoped to marginofinsight''s network_business_profile; pass the resulting `spt_…` token as `Authorization: Bearer spt_…`. The token is introspected and charged per call via Stripe — no marginofinsight account, no pre-funded balance, no static credential. Discovery: GET /api/v1/well-known/spt. See https://docs.stripe.com/agentic-commerce/concepts/shared-payment-tokens.'
    x402:
      type: apiKey
      in: header
      name: X-Payment
      description: 'Autonomous agent payment via x402 protocol (HTTP 402 + USDC on Base). Planned (Phase 5, not yet live). Once shipped: call the endpoint without auth; server returns 402 with payment terms; sign and retry.'
x-api-status: live
x-launched-at: '2026-05-11'
x-coverage: US-listed SEC filers only. Foreign private issuers and non-US listings are not supported.
x-pricing:
  primer:
    price_usd: 0
    auth: false
    steps: 3
  fundamental:
    price_usd: 1.0
    auth: true
    steps: 11
  memo:
    price_usd: 2.0
    auth: true
    steps: 19