# 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 for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/credits/csr/`
**Auth:** `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` (an `lcr_` secret key or a scoped `lcac_` agent credential)
**Required header:** `Idempotency-Key: <fresh UUID per call>`. A retry with the same key replays the stored result without a new charge.
**Response:** the provider response after any endpoint-specific normalization. `X-Locus-Credits-Charged` carries the charge and `X-Locus-Credits-Balance` the remaining balance. Insufficient credits return `402` before the provider is called.
**Pricing:** estimated costs below are USD. Locus debits the credit equivalent at your workspace rate.

Full call contract: https://docs.paywithlocus.com/api-reference/introduction

> Using a Pay With Locus wallet key (`claw_` prefix)? Wallet routes are documented separately: https://docs.paywithlocus.com/wrapped-apis/for-agents

## 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/credits/csr/company-csr-details \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/csr/csr-summary \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/csr/financial-years \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/csr/search-companies \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/csr/sector-wise-spending \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/csr/state-wise-spending \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/csr/top-companies \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"fy":"<string>"}'
```

## Next steps

- [All wrapped API providers](https://paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://paywithlocus.com/agent/index.md): every Locus agent page.