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

> Get comprehensive fantasy football insights by accessing redraft and dynasty rankings, player projections, injury histories, team depth charts, and strength-of-schedule analysis. Search player profiles and stay updated with the latest news articles to optimize your draft strategy and roster decisions.

**Category:** Sports | **Website:** [draftsharks.com/](https://draftsharks.com/) | **Docs:** [parse.bot/marketplace/1dcfd02c-80d3-4335-9609-5000b549d49b/draftsharks-com-api](https://parse.bot/marketplace/1dcfd02c-80d3-4335-9609-5000b549d49b/draftsharks-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-draftsharks-com-api-1dcfd02c/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_depth_charts

Fetch team depth charts showing player positions and depth order for offense, defense, and special teams. Each position lists players from starter to backup in order.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `team_slug` | string | No | Team URL slug (e.g. 'buffalo-bills', 'kansas-city-chiefs'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-draftsharks-com-api-1dcfd02c/get_depth_charts \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"team_slug":"<string>"}'
```

### get_news_articles

Fetch recent fantasy football news articles with summaries and related player information from DraftSharks. Returns the latest articles available on the news page, typically 20 items.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-draftsharks-com-api-1dcfd02c/get_news_articles \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_player_profile

Fetch full player profile details including bio, weekly projections, season projections, consensus projections, scoring configurations, and dynasty trade values. Requires the player's numeric ID.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `player_id` | string | Yes | The player's numeric ID (e.g. '9962' for Josh Allen). |
| `player_name` | string | No | Player name slug used in URL (e.g. 'josh-allen'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-draftsharks-com-api-1dcfd02c/get_player_profile \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"player_id":"<string>","player_name":"<string>"}'
```

### get_rankings

Fetch the player rankings table for a given scoring format and league type. Returns up to 500 players with projections, ADP, injury risk, and tier information. Paginates as a single page. Some parameter combinations (e.g. dynasty + analysis + non-ppr) may not be supported upstream and will return an upstream error.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `depth` | string | No | Research depth. |
| `is_dynasty` | string | No | Set to 'true' for dynasty rankings, 'false' for redraft. |
| `league_type` | string | No | League type. |
| `position` | string | No | Filter by position: 'QB', 'RB', 'WR', 'TE', or empty string for all positions. |
| `scoring` | string | No | Scoring format. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-draftsharks-com-api-1dcfd02c/get_rankings \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"depth":"<string>","is_dynasty":"<string>","league_type":"<string>","position":"<string>","scoring":"<string>"}'
```

### get_strength_of_schedule

Fetch strength-of-schedule data for a given position, including weekly matchups, projected stats, and opponent details for all 32 NFL teams. Returns the current NFL week and full season schedule data.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `position` | string | No | Position to get SOS for. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-draftsharks-com-api-1dcfd02c/get_strength_of_schedule \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"position":"<string>"}'
```
