# Icra — 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.

> Access investment-grade corporate debt ratings from ICRA for companies with BBB+ ratings and above that have positive or stable outlooks. Filter and retrieve reliable credit assessments to support your investment decisions and portfolio analysis.

**Category:** Finance & Markets | **Website:** [www.icra.in/Rating/RatingCategory?RatingType=CR&RatingCategoryId=5](https://www.icra.in/Rating/RatingCategory?RatingType=CR&RatingCategoryId=5) | **Docs:** [parse.bot/marketplace/59089d56-5d3c-40f5-932a-080cecd0f802/icra-in-api](https://parse.bot/marketplace/59089d56-5d3c-40f5-932a-080cecd0f802/icra-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-icra-in-api-59089d56/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_ratings

Retrieves ICRA corporate debt ratings for entities rated BBB+ and above with Positive or Stable outlook. Results are paginated by upstream page numbers; each call fetches a configurable batch of pages and returns the filtered matching entities. The total upstream corpus spans ~502 pages of 10 records each.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Starting upstream page number to fetch from. |
| `pages_per_call` | integer | No | Number of upstream pages to fetch in a single call. Max 50. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-icra-in-api-59089d56/get_ratings \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","pages_per_call":"<integer>"}'
```
