# Csr — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Search and analyze India's corporate social responsibility initiatives by accessing company CSR spending, project details, and financial contributions broken down by state, sector, and year. Track top CSR performers, compare spending amounts across companies, and explore how businesses are investing in social causes nationwide.

**Category:** Government & Public Data | **Website:** [csr.gov.in/](https://csr.gov.in/) | **Docs:** [parse.bot/marketplace/a987e11f-3ee3-42d9-ae6b-65eba1a84220/csr-gov-in-api](https://parse.bot/marketplace/a987e11f-3ee3-42d9-ae6b-65eba1a84220/csr-gov-in-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-csr-gov-in-api-a987e11f/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### company_csr_details

Get detailed CSR expenditure data for a specific company by CIN and financial year. Returns project-level details including amounts spent, sectors, states, districts, and implementing mode. Each project record includes the CSR project description, implementation mode (directly or via agency), amount spent, geographic location, and sector classification.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `cin` | string | Yes | Corporate Identity Number (e.g., L17110MH1973PLC019786). Use search_companies to find CINs. |
| `fy` | string | No | Financial year in format 'FY YYYY-YY' |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-csr-gov-in-api-a987e11f/company_csr_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"cin":"<string>","fy":"<string>"}'
```

### csr_summary

Get overall CSR summary statistics for a financial year including total companies, projects, states, sectors, and total amount spent. Provides a high-level overview of CSR activity across all registered companies for the specified year.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `fy` | string | No | Financial year in format 'FY YYYY-YY' |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-csr-gov-in-api-a987e11f/csr_summary \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"fy":"<string>"}'
```

### financial_years

Get list of available financial years for CSR data queries. Returns all years for which CSR data is available on the portal. Use these values as the 'fy' parameter in other endpoints.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-csr-gov-in-api-a987e11f/financial_years \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### search_companies

Full-text search over registered companies by name keyword. Returns matching company names and their Corporate Identity Numbers (CIN). Minimum 3-character keyword required. Results are not paginated; all matches are returned in a single response.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `keyword` | string | Yes | Company name search keyword (minimum 3 characters) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-csr-gov-in-api-a987e11f/search_companies \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"keyword":"<string>"}'
```

### sector_wise_spending

Get CSR spending breakdown by development sector for a financial year. Returns all sector categories with their full names, short names, and total expenditure amounts.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `fy` | string | No | Financial year in format 'FY YYYY-YY' |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-csr-gov-in-api-a987e11f/sector_wise_spending \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"fy":"<string>"}'
```

### state_wise_spending

Get CSR spending breakdown by state/UT for a financial year. Returns every state and union territory with its total CSR expenditure amount. Includes special categories like 'Pan India' for nationwide projects.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `fy` | string | No | Financial year in format 'FY YYYY-YY' |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-csr-gov-in-api-a987e11f/state_wise_spending \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"fy":"<string>"}'
```

### top_companies

Get the top 10 companies by CSR spending for a given financial year. Returns company names, CINs, amounts spent, and rankings ordered by spending amount descending.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `fy` | string | No | Financial year in format 'FY YYYY-YY' |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-csr-gov-in-api-a987e11f/top_companies \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"fy":"<string>"}'
```
