# Kenpom — Wrapped API

> **You are on:** `https://api.beta.paywithlocus.com/api` | [llms.txt](https://beta.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 for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.beta.paywithlocus.com/api/wrapped/credits/kenpom/`
**Auth:** `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` (an `lcr_` secret key or a scoped `lcac_` agent credential)
**Required header:** `Idempotency-Key: <fresh UUID per call>`. A retry with the same key replays the stored result without a new charge.
**Response:** the provider response after any endpoint-specific normalization. `X-Locus-Credits-Charged` carries the charge and `X-Locus-Credits-Balance` the remaining balance. Insufficient credits return `402` before the provider is called.
**Pricing:** estimated costs below are USD. Locus debits the credit equivalent at your workspace rate.

Full call contract: https://docs.paywithlocus.com/api-reference/introduction

> Using a Pay With Locus wallet key (`claw_` prefix)? Wallet routes are documented separately: https://docs.paywithlocus.com/wrapped-apis/for-agents

## 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.beta.paywithlocus.com/api/wrapped/credits/kenpom/get-ratings \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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.beta.paywithlocus.com/api/wrapped/credits/kenpom/get-ratings-by-conference \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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.beta.paywithlocus.com/api/wrapped/credits/kenpom/search-coaches \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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.beta.paywithlocus.com/api/wrapped/credits/kenpom/search-teams \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```

## Next steps

- [All wrapped API providers](https://beta.paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://beta.paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://beta.paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://beta.paywithlocus.com/agent/index.md): every Locus agent page.