# Kenpom — 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 comprehensive college basketball analytics and ratings including team efficiency stats, four factors, point distribution, and detailed team statistics from KenPom's renowned basketball evaluation system. Search teams and coaches, retrieve conference-specific ratings, and explore advanced metrics across Division I college basketball.

**Category:** Sports | **Website:** [kenpom.com/](https://kenpom.com/) | **Docs:** [parse.bot/marketplace/53035283-2166-4685-adf8-52258b45eb16/kenpom-com-api](https://parse.bot/marketplace/53035283-2166-4685-adf8-52258b45eb16/kenpom-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-kenpom-com-api-53035283/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_ratings

Fetches the main Pomeroy College Basketball Ratings table for a given season. Returns all Division I teams with their rankings, adjusted efficiency margins, tempo, luck, and strength-of-schedule metrics. Each team includes rank, conference, win-loss record, and 10 paired metric/rank columns. Defaults to the current season when year is omitted.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `year` | string | No | The season year (2002-2026). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-kenpom-com-api-53035283/get_ratings \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"year":"<string>"}'
```

### get_ratings_by_conference

Filters the main ratings table to return only teams belonging to a specific conference. Performs case-insensitive matching on the conference abbreviation. Returns the filtered subset with a count.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `conference` | string | Yes | Conference abbreviation to filter by (e.g. ACC, B12, SEC, B10, BE, AAC, MWC, WCC, A10, MVC, CAA, Ivy, SC, BSky, BW, AE, ASun, BSth, Horz, MAAC, NEC, OVC, Pat, SB, Sum, WAC, SWAC, MEAC). |
| `year` | string | No | The season year (2002-2026). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-kenpom-com-api-53035283/get_ratings_by_conference \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"conference":"<string>","year":"<string>"}'
```

### search_coaches

Searches for Division I coaches by name using case-insensitive substring matching against official full names. Nicknames and aliases are not supported; only literal name substrings match.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | No | Search substring to match against coach full names (e.g. 'Izzo', 'John'). Case-insensitive literal substring match only. Omitting returns all coaches. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-kenpom-com-api-53035283/search_coaches \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```

### search_teams

Searches for Division I teams by name using case-insensitive substring matching against the full list of team names. Returns all matching team names.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | No | Search substring to match against team names. Case-insensitive. Omitting returns all teams. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-kenpom-com-api-53035283/search_teams \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```
