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

> Get live match results, team standings, and player statistics from Spanish football leagues. View current league tables, upcoming fixtures, and top scorers for LALIGA EA Sports and Segunda División all in one place.

**Category:** Sports | **Website:** [marca.com/](https://marca.com/) | **Docs:** [parse.bot/marketplace/3ce9aa24-793d-4220-bcfa-f6a4d57fb56a/marca-com-api](https://parse.bot/marketplace/3ce9aa24-793d-4220-bcfa-f6a4d57fb56a/marca-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/marca/`
**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 matches

Get matches for a specific date and tournament. Returns an array of match events with team names, scores, venue, TV channels, and match status. Returns an empty matches array when no matches are scheduled for the given date. Dates during the active season (August–May) typically have matches; off-season dates return empty.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `date` | string | No | Date in YYYY-MM-DD format. Defaults to today (UTC). Dates with no scheduled matches return an empty array. |
| `tournament` | string | No | Tournament identifier. |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/marca/get-matches \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"date":"<string>","tournament":"<string>"}'
```

### Get standings

Get league standings/classification for a tournament. Returns the current season classification with full team rankings including points, wins, draws, losses, and goal difference. Each team entry includes position, home/away splits, and team logo URL.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `tournament` | string | No | Tournament identifier. |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/marca/get-standings \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"tournament":"<string>"}'
```

### Get top scorers

Get top scorers (Pichichi) ranking for a tournament. Returns all ranked scorers with goal breakdown by type (foot, header, penalty, free kick). Data is scraped from the Marca Pichichi page and includes the complete ranking table for the current season.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `tournament` | string | No | Tournament identifier. |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/marca/get-top-scorers \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"tournament":"<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.