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

> Track NWSL match results, news, and advanced statistics including expected goals (xG) data in real time. Get detailed player performance metrics and comprehensive event-level match information to stay informed on the National Women's Soccer League.

**Category:** Sports | **Website:** [nwslsoccer.com/](https://nwslsoccer.com/) | **Docs:** [parse.bot/marketplace/18e72dce-fcb3-438a-a811-23b7f3e55113/nwslsoccer-com-api](https://parse.bot/marketplace/18e72dce-fcb3-438a-a811-23b7f3e55113/nwslsoccer-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-nwslsoccer-com-api-18e72dce/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_match_details

Extract match event data (goals, cards, substitutions) and expected goals (xG) team statistics for a specific match. Events include type, description, and label. The time and xg fields on individual events may be null.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `match_id` | string | Yes | The unique match identifier (e.g. 'nwsl::Football_Match::15fab6c3d4934435b04ea0ad02308c55'). Obtainable from list_matches results. |
| `season_id` | string | No | The unique season identifier (e.g. 'nwsl::Football_Season::0b6761e4701749f593690c0f338da74c'). Defaults to the current 2026 season if omitted. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-nwslsoccer-com-api-18e72dce/get_match_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"match_id":"<string>","season_id":"<string>"}'
```

### get_news

Extract latest news articles from the NWSL website. Returns article titles and URLs. Fields such as description, image_link, and date may be null depending on upstream data availability.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Number of news articles to retrieve. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-nwslsoccer-com-api-18e72dce/get_news \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":"<integer>"}'
```

### get_player_stats

Get detailed player statistics for a season, including goals, assists, xG, passing accuracy, tackles, and more. Returns paginated results from the NWSL stats API.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Maximum number of players to retrieve. |
| `season_id` | string | No | The unique season identifier (e.g. 'nwsl::Football_Season::0b6761e4701749f593690c0f338da74c'). Defaults to the current 2026 season if omitted. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-nwslsoccer-com-api-18e72dce/get_player_stats \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":"<integer>","season_id":"<string>"}'
```

### list_matches

List all matches for a specific NWSL season. Returns competition metadata and an array of match objects with scores, teams, dates, and status. An invalid season_id will result in an upstream error from the API.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `season_id` | string | No | The unique season identifier (e.g. 'nwsl::Football_Season::0b6761e4701749f593690c0f338da74c'). Defaults to the current 2026 season if omitted. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-nwslsoccer-com-api-18e72dce/list_matches \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"season_id":"<string>"}'
```
