# 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 for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/credits/bet365-brazil/`
**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 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/credits/bet365-brazil/get-formula1-events \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/bet365-brazil/get-home-featured-events \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/bet365-brazil/get-live-events \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/bet365-brazil/get-scores-placares \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/bet365-brazil/get-sport-categories \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/bet365-brazil/get-sport-events \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"pd_path":"<string>"}'
```

## Next steps

- [All wrapped API providers](https://paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://paywithlocus.com/agent/index.md): every Locus agent page.