# Betpawa — 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 upcoming, live, and popular sports events from BetPawa Ghana with real-time odds, markets, and detailed match statistics across multiple sports and leagues. Retrieve comprehensive event information including season fixtures, league details, and in-depth match stats.

**Category:** Sports | **Website:** [betpawa.com.gh/](https://betpawa.com.gh/) | **Docs:** [parse.bot/marketplace/c28eb4b6-0ec7-4424-8e87-e46dd11dfe01/betpawa-com-gh-api](https://parse.bot/marketplace/c28eb4b6-0ec7-4424-8e87-e46dd11dfe01/betpawa-com-gh-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/betpawa/`
**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 event detail

Get full market and odds details for a specific event. Returns all available markets (1X2, Double Chance, Both Teams To Score, Over/Under, etc.) with complete odds. The event_id should be obtained from get_upcoming_events, get_live_events, or get_popular_events.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `event_id` | string | Yes | The numeric event ID to retrieve details for. Obtain from get_upcoming_events, get_live_events, or get_popular_events responses. |

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

### Get leagues by sport

Get leagues and competitions for a given sport, grouped by region. Returns competition names, event counts (live and upcoming), and weekly schedule breakdowns. Also includes summary counts for other sports.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `sport_id` | string | No | Sport category ID. Values: '2' (Football), '3' (Basketball), '452' (Tennis), '101' (eFootball). |

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

### Get live events

Get currently live sports events across Football, Basketball, Tennis, and eFootball. Returns events with real-time scores, current period, odds, and market data. May return an empty list if no events are currently live.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/betpawa/get-live-events \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### Get popular events

Get popular/featured upcoming Football events sorted by start time ascending. Returns up to 20 events with 1X2 odds, market counts, and popularity scores.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/betpawa/get-popular-events \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### Get sports categories

Get all available sports categories with event counts (live, upcoming, hot) and weekly schedule. Returns a summary for each sport showing how many events are available.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/betpawa/get-sports-categories \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### Get upcoming events

Get upcoming sports events with odds for a given sport category. Returns a flat array of events including names, participants, start times, 1X2 odds, and market counts. Paginated via skip/take parameters.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `skip` | integer | No | Number of events to skip for pagination. |
| `sport_id` | string | No | Sport category ID. Values: '2' (Football), '3' (Basketball), '452' (Tennis), '101' (eFootball). |
| `take` | integer | No | Number of events to return per request (max 50). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/betpawa/get-upcoming-events \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"skip":"<integer>","sport_id":"<string>","take":"<integer>"}'
```

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