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

> 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. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-marca-com-api-3ce9aa24/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## 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.paywithlocus.com/api/wrapped/parse-marca-com-api-3ce9aa24/get_matches \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-marca-com-api-3ce9aa24/get_standings \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-marca-com-api-3ce9aa24/get_top_scorers \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tournament":"<string>"}'
```
