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

> Retrieve cryptocurrency wallet balances and DeFi positions across multiple protocols on DeBank. Access complete portfolio overviews including protocol-level breakdowns, idle token balances, asset exposure buckets, and wallet profile information.

**Category:** Web3 & Onchain | **Website:** [debank.com/](https://debank.com/) | **Docs:** [parse.bot/marketplace/0f8ca9ee-158e-4d52-b190-fbe5d6b18b6f/debank-com-api](https://parse.bot/marketplace/0f8ca9ee-158e-4d52-b190-fbe5d6b18b6f/debank-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-debank-com-api-0f8ca9ee/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_full_portfolio_json

Returns the full portfolio JSON for a wallet address, including wallet profile, DeFi protocol positions, asset exposure buckets, and idle token balances.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `address` | string | Yes | Wallet address to retrieve portfolio data for. |
| `min_position_usd` | number | No | Exclude positions below this USD value |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-debank-com-api-0f8ca9ee/get_full_portfolio_json \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"address":"<string>","min_position_usd":"<number>"}'
```

### get_wallet_profile

Returns basic profile information for a wallet address.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `address` | string | Yes | Wallet address to retrieve profile data for. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-debank-com-api-0f8ca9ee/get_wallet_profile \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"address":"<string>"}'
```
