# Ingres Iith — 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 groundwater resource estimation data across India at multiple geographic levels—from national summaries down to block-level details—and search specific locations to track groundwater availability and assessment trends. View historical assessment years and generate reports to analyze groundwater resources by state, district, or region.

**Category:** Government & Public Data | **Website:** [ingres.iith.ac.in/](https://ingres.iith.ac.in/) | **Docs:** [parse.bot/marketplace/72d8f7f9-affc-4b1e-b02a-42b8734734eb/ingres-iith-ac-in-api](https://parse.bot/marketplace/72d8f7f9-affc-4b1e-b02a-42b8734734eb/ingres-iith-ac-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/ingres-iith/`
**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

### Get assessment years

Returns the list of assessment year periods available in the INGRES system. Each year is a string in YYYY-YYYY format representing the assessment cycle. Use these values as the year parameter in other endpoints.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/ingres-iith/get-assessment-years \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### Get country summary

Aggregates state-level groundwater data into national-level summary statistics. Computes totals for extractable resources, extraction, recharge, natural discharges, and the national stage of extraction percentage across all states for the given assessment year.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `year` | string | No | Assessment year in YYYY-YYYY format. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/ingres-iith/get-country-summary \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"year":"<string>"}'
```

### Get district data

Returns block-level groundwater data for a specific district. Requires state identification (state_uuid or state_name) and district identification (district_uuid or district_name). Each block includes detailed computation summaries, water level data, trend analysis, and quality tagging.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `district_name` | string | No | District name in uppercase (e.g. JAIPUR). Used for UUID lookup if district_uuid not provided. |
| `district_uuid` | string | No | District UUID from get_state_data results (locationUUID field). |
| `state_name` | string | No | State name in uppercase (e.g. RAJASTHAN). Used for UUID lookup if state_uuid not provided. |
| `state_uuid` | string | No | State UUID from get_state_list results. |
| `year` | string | No | Assessment year in YYYY-YYYY format. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/ingres-iith/get-district-data \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"district_name":"<string>","district_uuid":"<string>","state_name":"<string>","state_uuid":"<string>","year":"<string>"}'
```

### Get report list

Returns all available groundwater assessment reports organized by assessment year. Each report entry includes filename, file path, year, and upload timestamp.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/ingres-iith/get-report-list \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### Get state data

Returns district-level groundwater data for a specific state. Provide state_uuid directly or state_name for automatic UUID lookup. Each district includes category classification (safe, semi_critical, critical, over_exploited) and full groundwater metrics.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `state_name` | string | No | State name in uppercase (e.g. RAJASTHAN, MADHYA PRADESH). Used for UUID lookup if state_uuid not provided. |
| `state_uuid` | string | No | State UUID from get_state_list results (locationUUID field). Takes precedence over state_name. |
| `year` | string | No | Assessment year in YYYY-YYYY format. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/ingres-iith/get-state-data \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"state_name":"<string>","state_uuid":"<string>","year":"<string>"}'
```

### Get state list

Returns all Indian states and union territories with their groundwater summary data for a given assessment year. Each state includes area breakdowns, recharge data, extraction data, loss, resource availability, stage of extraction, and locationUUID for drill-down queries.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `year` | string | No | Assessment year in YYYY-YYYY format. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/ingres-iith/get-state-list \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"year":"<string>"}'
```

### Search location

Searches for states by name using case-insensitive substring matching. Returns matching state names with their UUIDs for use in get_state_data or get_district_data.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Search query for state name. Case-insensitive substring match. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/ingres-iith/search-location \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"query":"<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.