# Lolpros — 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 discover professional League of Legends players while exploring detailed profiles, ladder rankings, and competitive statistics from the pro scene. Track player performance metrics, find competitors by name, and monitor where top players stand in the rankings.

**Category:** Sports | **Website:** [lolpros.gg/](https://lolpros.gg/) | **Docs:** [parse.bot/marketplace/f3537c41-6552-4f35-86a4-7f0446f7b44c/lolpros-gg-api](https://parse.bot/marketplace/f3537c41-6552-4f35-86a4-7f0446f7b44c/lolpros-gg-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-lolpros-gg-api-f3537c41/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_ladder

Fetch the top 10 professional players on a region's solo queue ladder, ranked by composite score. Each entry includes the player's identity, team, position, and their primary account's rank and winrate. Defaults to EUW.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `server` | string | No | Region server code for the ladder. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-lolpros-gg-api-f3537c41/get_ladder \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"server":"<string>"}'
```

### get_player_profile

Retrieve the full profile for a professional player by their slug. Includes all linked accounts with current and peak ranks, social media links, league participation, and team history. Returns input_not_found when the slug does not match any known player.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `slug` | string | Yes | Player's unique slug identifier, obtainable from search_players results or get_ladder results (e.g., 'caps', 'faker', 'agurin'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-lolpros-gg-api-f3537c41/get_player_profile \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"slug":"<string>"}'
```

### search_players

Full-text search across professional player accounts by name. Returns all accounts from every matching player profile, each with current rank, LP, win/loss record, peak rank, and the player's slug for follow-up profile lookups. A single player may contribute multiple accounts. No pagination — the server returns all matches in one response.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `name` | string | Yes | Player name to search for. Matches against player display names and account names. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-lolpros-gg-api-f3537c41/search_players \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"<string>"}'
```
