# Bet365 (Brazil) — 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 betting odds, featured sports events, and real-time scores directly from bet365 Brazil's platform across multiple sports including Formula 1 and in-play markets. Get current match results, browse available betting categories, and view homepage promotions all through structured data endpoints.

**Category:** Sports | **Website:** [bet365.bet.br/](https://bet365.bet.br/) | **Docs:** [parse.bot/marketplace/f3b53456-21c4-4d32-b2a6-e0cd065dbfba/bet365-bet-br-api](https://parse.bot/marketplace/f3b53456-21c4-4d32-b2a6-e0cd065dbfba/bet365-bet-br-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-bet365-bet-br-api-f3b53456/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_formula1_events

Retrieves betting events for Formula 1 motorsport. A convenience endpoint equivalent to calling get_sport_events with the Formula 1 competition path identifier. Returns events when F1 races are scheduled; may return an empty tree during off-season.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-bet365-bet-br-api-f3b53456/get_formula1_events \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_home_featured_events

Extracts featured sports sections, betting markets, promotional banners, and popular bets from the bet365 Brazil homepage. Returns a hierarchical tree structure with classes (CL), events (EV), markets (MA), and selections (PA), plus the raw parsed sections from the proprietary delimited response format. The tree contains sport navigation shortcuts, promotional banners with images and links, and spotlight betting markets with odds.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-bet365-bet-br-api-f3b53456/get_home_featured_events \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_live_events

Extracts currently live (in-play) games including scores and real-time odds.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-bet365-bet-br-api-f3b53456/get_live_events \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_scores_placares

Retrieves live and recently completed match scores from the scores section of the site. Returns an empty tree when no score data is available.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-bet365-bet-br-api-f3b53456/get_scores_placares \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_sport_categories

Returns the full list of available sports, competitions, and categories from the left navigation menu. Each entry includes a display name, internal path identifier (pd) used for site navigation, and a numeric sport ID. Covers trending/promoted items (e.g. Copa do Mundo, NBA Finals), the full A-Z sport list, and sub-categories like motorsport variants.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-bet365-bet-br-api-f3b53456/get_sport_categories \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_sport_events

Retrieves events for a specific sport competition by its path identifier. The pd_path comes from get_sport_categories results and must use the #AC# format (specific competition paths). Returns a tree of event nodes with match fixtures including team names, dates, fixture IDs, and team IDs for the specified competition.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `pd_path` | string | Yes | The sport's internal path identifier in #AC# format (e.g. '#AC#B1#C1#D1002#E88369731#G40#' for Brasileirão Série A). Obtained from get_sport_categories pd field. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-bet365-bet-br-api-f3b53456/get_sport_events \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"pd_path":"<string>"}'
```
