# Espncricinfo — 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 live cricket scores, ball-by-ball commentary, and detailed match scorecards to stay updated on ongoing games. Look up comprehensive player statistics, team information, and historical cricket records all in one place.

**Category:** Sports | **Website:** [espncricinfo.com/](https://espncricinfo.com/) | **Docs:** [parse.bot/marketplace/561edfa7-ccf4-4edd-86de-fb726095f6e1/espncricinfo-com-api](https://parse.bot/marketplace/561edfa7-ccf4-4edd-86de-fb726095f6e1/espncricinfo-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-espncricinfo-com-api-561edfa7/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_global_feed

Get the global news and content feed from ESPN Cricinfo. Returns paginated results with article titles, summaries, and URLs. The feed content varies and may contain a small number of items at any given time.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination. |
| `records` | integer | No | Number of records per page. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-espncricinfo-com-api-561edfa7/get_global_feed \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","records":"<integer>"}'
```

### get_live_scores

Get current live and recent cricket matches with scores, team details, and match statuses. Returns match objectIds and series objectIds that can be used with get_match_details, get_match_scorecard, and get_match_commentary endpoints. The response includes all currently running and recently completed matches across all formats and competitions.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-espncricinfo-com-api-561edfa7/get_live_scores \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_match_commentary

Get ball-by-ball commentary for a specific match. Use objectId values from the get_live_scores response. Returns commentary entries with ball details, runs, wickets, and over summaries. Only available for matches with commentary coverage enabled.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `match_id` | string | Yes | Match objectId from get_live_scores or get_series_fixtures response. |
| `series_id` | string | Yes | Series objectId from get_live_scores or get_series_fixtures response. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-espncricinfo-com-api-561edfa7/get_match_commentary \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"match_id":"<string>","series_id":"<string>"}'
```

### get_match_details

Get comprehensive match details including players, squads, head-to-head history, and match summaries. Use objectId values from the get_live_scores response or get_series_fixtures response. Returns match metadata, team compositions, recent form, and series context.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `match_id` | string | Yes | Match objectId from get_live_scores or get_series_fixtures response. |
| `series_id` | string | Yes | Series objectId from get_live_scores or get_series_fixtures response. |

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

### get_match_scorecard

Get the full scorecard for a specific match including batting and bowling statistics per innings. Use objectId values from the get_live_scores response. Returns detailed innings data with individual batting and bowling performance lines.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `match_id` | string | Yes | Match objectId from get_live_scores or get_series_fixtures response. |
| `series_id` | string | Yes | Series objectId from get_live_scores or get_series_fixtures response. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-espncricinfo-com-api-561edfa7/get_match_scorecard \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"match_id":"<string>","series_id":"<string>"}'
```

### get_series_fixtures

Get featured series fixtures grouped by category (Current Cricket, Future Series/Tournaments, Recently Concluded) with series details, team images, and objectIds usable with match endpoints. Provides a comprehensive overview of the cricket calendar.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-espncricinfo-com-api-561edfa7/get_series_fixtures \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```
