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

> Fetch real-time prematch betting odds across multiple sports, tournaments, and individual matches to compare market prices and make informed wagering decisions. Access comprehensive sports listings, tournament details, and detailed odds data all from a single source.

**Category:** Sports | **Website:** [accessbet.com/](https://accessbet.com/) | **Docs:** [parse.bot/marketplace/ca1abd85-590f-40f1-af23-955cb4484bf7/accessbet-com-api](https://parse.bot/marketplace/ca1abd85-590f-40f1-af23-955cb4484bf7/accessbet-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-accessbet-com-api-ca1abd85/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_match_odds

Fetch all available betting markets and odds for a specific match. Accepts either the internal match ID or the match code. Returns complete market details including market type, special value (e.g. handicap line), and all selections with current odds.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `match_id` | string | Yes | Match ID (numeric string from get_prematch_odds, e.g. '3666429') or match code (e.g. '10174'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-accessbet-com-api-ca1abd85/get_match_odds \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"match_id":"<string>"}'
```

### get_prematch_odds

Fetch all prematch matches and their betting odds for a given tournament ID. Optionally accepts a sport_id to scope the search to a specific sport, improving lookup efficiency. Returns every match in the tournament with all available markets (1X2, Over/Under, Both Teams Score, GG/NG, etc.) and their selections with current odds values.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `sport_id` | string | No | Numeric sport ID from get_sports (e.g. '1' for Football). When provided, narrows the search to that sport only. |
| `tournament_id` | string | Yes | Numeric tournament ID from get_tournaments (e.g. '9258' for World Cup Group A). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-accessbet-com-api-ca1abd85/get_prematch_odds \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"sport_id":"<string>","tournament_id":"<string>"}'
```

### get_sports

Fetch all available sports with their IDs, names, and match counts. Returns the full list of sports offered for prematch betting, sorted by display order. Each sport includes the count of categories and tournaments available.

**Estimated cost:** Metered

_No parameters required._

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

### get_tournaments

Fetch all tournaments (leagues/competitions) for a given sport ID, grouped by category (country/region). Each tournament includes its match count and category metadata.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `sport_id` | string | Yes | Numeric sport ID from get_sports (e.g. '1' for Football, '2' for Basketball, '5' for Tennis). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-accessbet-com-api-ca1abd85/get_tournaments \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"sport_id":"<string>"}'
```
