> ## Documentation Index
> Fetch the complete documentation index at: https://casparser.in/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction

> The portfolio import API for Indian fintech. Parse CAS PDFs, fetch holdings via OTP, import from Gmail. 9 asset classes. 5-minute integration.

CAS Parser is the portfolio import API for Indian fintech. Trusted by **100+ companies** including Angel One, Dezerv, and Grip Invest.

Parse any CAS PDF, fetch live holdings via CDSL OTP, or import directly from Gmail — all through one API with **99.9% uptime**.

<CardGroup cols={2}>
  <Card title="Start Free" icon="rocket" href="https://app.casparser.in">
    10 free credits/month. No credit card required.
  </Card>

  <Card title="Speak to an Engineer" icon="comments" href="https://cal.com/sameer-kumar/casparser-1-1-with-sameer">
    15-min call to discuss your integration
  </Card>
</CardGroup>

## Quickstart

<CardGroup cols={2}>
  <Card title="Python" icon="python" href="/quickstart/python">
    Parse your first CAS in 5 lines of code
  </Card>

  <Card title="Node.js" icon="node-js" href="/quickstart/nodejs">
    Get started with JavaScript/TypeScript
  </Card>

  <Card title="cURL" icon="terminal" href="/quickstart/curl">
    Make API calls from the command line
  </Card>

  <Card title="Portfolio Connect SDK" icon="puzzle-piece" href="/sdk/portfolio-connect">
    Drop-in React widget for frontend apps
  </Card>
</CardGroup>

## How it works

```mermaid theme={null}
flowchart LR
    subgraph Input
        A1[PDF Upload]
        A2[Gmail Import]
        A3[CDSL OTP]
        A4[KFintech Gen]
    end
    
    subgraph "CAS Parser"
        B1[CDSL Parser]
        B2[NSDL Parser]
        B3[CAMS Parser]
        B4[KFintech Parser]
    end
    
    subgraph Output
        C1[Equities]
        C2[Mutual Funds]
        C3[Bonds & AIFs]
        C4[NPS/Insurance]
    end
    
    Input --> CAS Parser
    CAS Parser --> Output
    Output --> D[Unified JSON]
```

**One API, any CAS format.** Send a PDF, get structured JSON. Works with all Indian depositories and registrars — CDSL, NSDL, CAMS, KFintech.

<Note>
  **Cross-depository coverage:** CDSL and NSDL eCAS statements contain holdings from **both** depositories, not just the issuing one. This consolidated view includes all demat and non-demat assets across CDSL and NSDL accounts.
</Note>

## Explore

<CardGroup cols={2}>
  <Card title="Parsing CAS PDFs" icon="file-pdf" href="/guides/parsing">
    Upload PDFs and extract portfolio data
  </Card>

  <Card title="Gmail Inbox Import" icon="envelope" href="/guides/gmail-inbox">
    Import CAS files directly from user email
  </Card>

  <Card title="CDSL OTP Fetch" icon="shield-check" href="/guides/cdsl-fetch">
    Real-time holdings via OTP verification
  </Card>

  <Card title="CAS Generator" icon="rotate" href="/guides/cas-generator">
    Request CAS statements programmatically
  </Card>
</CardGroup>

## Why CAS Parser?

|                         | CAS Parser            | Account Aggregator            | Build In-House            |
| ----------------------- | --------------------- | ----------------------------- | ------------------------- |
| **Time to integrate**   | 5 minutes             | 5-10 months                   | 3-6 months                |
| **Monthly cost**        | From ₹999/mo          | ₹5-25 lakhs setup + recurring | ₹10-50 lakhs setup + team |
| **Regulatory approval** | None needed           | NBFC-AA license required      | None                      |
| **Asset classes**       | 9 (demat + non-demat) | All financial data            | Custom scope              |
| **Data freshness**      | Real-time (OTP fetch) | Consent-based                 | Manual                    |
| **Tamper detection**    | Built-in              | No                            | Custom build              |
| **On-premise option**   | Available             | No                            | N/A                       |

<CardGroup cols={2}>
  <Card title="Start Free" icon="rocket" href="https://app.casparser.in">
    10 free credits/month. No credit card required.
  </Card>

  <Card title="Speak to an Engineer" icon="comments" href="https://cal.com/sameer-kumar/casparser-1-1-with-sameer">
    Questions about integration? We can help.
  </Card>
</CardGroup>
