# Cdep — 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 legislative initiatives from the Romanian Chamber of Deputies, including searching the complete list of proposed bills and retrieving detailed information about specific initiatives. Track parliamentary legislative activity even when the official site experiences downtime, thanks to reliable retry mechanisms.

**Category:** Government & Public Data | **Website:** [cdep.ro/](https://cdep.ro/) | **Docs:** [parse.bot/marketplace/879c5e9a-a567-432d-ac9a-48ccf9774152/cdep-ro-api](https://parse.bot/marketplace/879c5e9a-a567-432d-ac9a-48ccf9774152/cdep-ro-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-cdep-ro-api-879c5e9a/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_initiative_details

Get detailed information for a specific legislative initiative.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `idp` | string | Yes | Internal identifier of the project (extracted from the list view). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-cdep-ro-api-879c5e9a/get_initiative_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"idp":"<string>"}'
```

### list_initiatives

List legislative initiatives for a specific year and chamber.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `chamber` | string | No | Legislative chamber (1 = Senate, 2 = Chamber of Deputies) |
| `year` | string | No | Year of registration |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-cdep-ro-api-879c5e9a/list_initiatives \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"chamber":"<string>","year":"<string>"}'
```
