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

> Betsapi provides 1 callable API endpoint through the Parse marketplace.

**Category:** Sports | **Website:** [betsapi.com/basketball/le/25067/ebasketball-h2h-gg-league--4x5mins](https://betsapi.com/basketball/le/25067/ebasketball-h2h-gg-league--4x5mins) | **Docs:** [parse.bot/marketplace/91b85ad4-6840-48d4-b9e7-52e0c82f6cd8/betsapi-com-api](https://parse.bot/marketplace/91b85ad4-6840-48d4-b9e7-52e0c82f6cd8/betsapi-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-betsapi-com-api-91b85ad4/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_results

Retrieve completed match results for the eBasketball H2H GG League (4x5mins). Returns matches in reverse chronological order with date/time, home team, away team, and final score. Results are auto-iterated across pages of 30 matches each.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination (1-based). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-betsapi-com-api-91b85ad4/get_results \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>"}'
```
