# Rocketleague Tracker — 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 Rocket League player profiles, historical season statistics, playlist rankings, and recent match session data from Tracker Network. Search for players across platforms and compare performance metrics, rank ratings, and progression across seasons.

**Category:** Sports | **Website:** [rocketleague.tracker.network/](https://rocketleague.tracker.network/) | **Docs:** [parse.bot/marketplace/8fa5144b-63d0-47d4-85ce-970501f93841/rocketleague-tracker-network-api](https://parse.bot/marketplace/8fa5144b-63d0-47d4-85ce-970501f93841/rocketleague-tracker-network-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-rocketleague-tracker-network-api-8fa5144b/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_historical_season_data

Retrieve detailed player statistics and rankings for a specific previous season. Returns playlist segment data showing rank, rating, and performance in each playlist for the requested season. Available season numbers can be found in the get_player_profile response's availableSegments field.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `platform` | string | Yes | Platform identifier. Accepted values: epic, steam, xbox, psn. |
| `season` | integer | Yes | Season number to retrieve data for. Available seasons can be found in get_player_profile's availableSegments field. |
| `username` | string | Yes | Player username or platform-specific identifier. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-rocketleague-tracker-network-api-8fa5144b/get_historical_season_data \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"platform":"<string>","season":"<integer>","username":"<string>"}'
```

### get_player_profile

Retrieve a player's full profile including lifetime stats, current season playlist rankings, and best 2v2 MMR. The profile contains an overview segment with aggregate stats, per-playlist segments for the current season with rank/division/rating, and a list of available historical seasons.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `platform` | string | Yes | Platform identifier. Accepted values: epic, steam, xbox, psn. |
| `username` | string | Yes | Player username or platform-specific identifier. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-rocketleague-tracker-network-api-8fa5144b/get_player_profile \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"platform":"<string>","username":"<string>"}'
```

### get_player_sessions

Retrieve match results and performance metrics for a player's recent sessions. Each session contains individual match data with results, playlists, and rating changes. May return an empty items array when the player has no recent session data available.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `platform` | string | Yes | Platform identifier. Accepted values: epic, steam, xbox, psn. |
| `username` | string | Yes | Player username or platform-specific identifier. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-rocketleague-tracker-network-api-8fa5144b/get_player_sessions \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"platform":"<string>","username":"<string>"}'
```

### search_players

Search for players by username on a given platform. Returns a list of matching player handles with their platform identifiers. Useful for discovering exact usernames before calling profile or session endpoints.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `platform` | string | No | Platform to search on. Accepted values: epic, steam, xbox, psn. |
| `query` | string | Yes | Username to search for. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-rocketleague-tracker-network-api-8fa5144b/search_players \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"platform":"<string>","query":"<string>"}'
```
