# Indocourtatlas — 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 browse judicial records, legal decisions, and court cases from courts throughout Indonesia to find relevant case information and rulings. Access comprehensive Indonesian court data through simple search and browsing capabilities to research legal precedents and case outcomes.

**Category:** Government & Public Data | **Website:** [indocourtatlas.com/mcp/connect](https://indocourtatlas.com/mcp/connect) | **Docs:** [parse.bot/marketplace/b7fc5f02-daae-449f-bd31-770e316dd7dd/indocourtatlas-com-api](https://parse.bot/marketplace/b7fc5f02-daae-449f-bd31-770e316dd7dd/indocourtatlas-com-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-indocourtatlas-com-api-b7fc5f02/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### list_cases

List Indonesian court cases with optional filters for court category, case type, and year. Returns paginated detailed case records including judges, clerk, classification, verdict notes, and related metadata. Results are auto-iterated across pages.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `case_type` | string | No | Case type to filter by (e.g. 'Pidana Umum', 'Perdata Khusus / PHI'). Values are as labeled by the Indonesian court system. |
| `court_category` | string | No | Court category code to filter by. Omitting returns cases from all categories. |
| `limit` | integer | No | Number of cases per page (1-100). |
| `page` | integer | No | Page number for pagination. |
| `year` | integer | No | Filter cases by year. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-indocourtatlas-com-api-b7fc5f02/list_cases \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"case_type":"<string>","court_category":"<string>","limit":"<integer>","page":"<integer>","year":"<integer>"}'
```

### search_cases

Full-text search across all Indonesian court cases. Matches case numbers, titles, and party names. Returns summary records ordered by relevance with a subset of case fields (id, registerNumber, title, parties, court, courtCategory, year, verdictDate). Use list_cases for full record detail.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Maximum number of results to return (1-100). |
| `query` | string | Yes | Search text matched against case numbers, titles, and party names. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-indocourtatlas-com-api-b7fc5f02/search_cases \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":"<integer>","query":"<string>"}'
```
