# ATG Swedish Horse Racing API

> Swedish trotting and gallop racing from ATG: daily race calendar and race cards with starters

- Vendor: `atgswedishhorseracingapi` · version 1.0 · category Sports · tags horse racing api, trotting api, atg api, swedish racing api, race card api, harness racing api
- Datasource: custom HTTP routes
- Marketplace page: https://apiclay.com/api/atgswedishhorseracingapi
- This document: https://apiclay.com/docs/atgswedishhorseracingapi.md
- OpenAPI 3.1: https://apiclay.com/api/atgswedishhorseracingapi/openapi.json
- MCP: connect https://api.apiclay.com/v1/mcp (see https://apiclay.com/llms.txt), then `apiclay_describe_api` with vendor `atgswedishhorseracingapi`
- Updated: 2026-11-18

## About

## ATG Swedish Horse Racing API

Racing information from ATG, Sweden's horse racing operator: every track racing on a day with its races, start times, status and pools, and the full card for one race with distance, start method, prize money, horses, drivers, trainers and results once the race is run.

Data comes from **atg.se** (https://www.atg.se). Every route calls the source's own public API and returns it unchanged.

Typical flow: `/calendar?date=2026-11-11` to get a race id such as `2026-11-11_5_1`, then `/race?race_id=2026-11-11_5_1`.

### Routes

#### GET `/calendar` - Racing calendar
| Param | In | Type | Required | Description |
|---|---|---|---|---|
| date | path | string | yes | Day `YYYY-MM-DD`. |

Returns: `date`, `tracks[]` (`id`, `name`, `startTime`, `races[]` with `id`, `number`, `status`, `startTime`, `mergedPools`), `games` by bet type.

#### GET `/race` - Race card
| Param | In | Type | Required | Description |
|---|---|---|---|---|
| race_id | path | string | yes | `date_track_race`, e.g. `2026-11-11_5_1`. |

Returns: `distance`, `startMethod`, `startTime`, `prize`, `track`, `starts[]` (`number`, `horse`, `driver`, `trainer`, `postPosition`, `result` when finished).

### Caveats

- Racing data from a licensed betting operator; check ATG's terms before commercial use.
- Upstream responses can change over time. Verify fields before relying on them.
- Not affiliated with or endorsed by atg.se.

## Pricing

- Pay as you go: 0.0012 credits/request
- Trial: 1 free requests per buyer
- Billing order: trial requests -> subscribed plan requests -> pay as you go. 1 credit's USD value is shown on the marketplace page.

## HTTP routes

Only the public, buyer-facing parts of each route are listed; vendor-side credentials stay on the gateway.

### GET /calendar — Racing calendar
- Gateway: `GET https://api.apiclay.com/v1/api/atgswedishhorseracingapi/calendar`
- Public query params: `date` (string, required)
- Upstream proxy: ApiClay proxy paid by the vendor (data cap 2 MB per call). Fetched through an ApiClay proxy paid by the vendor; a response larger than the route's data cap fails with 502 and is refunded in full.

### GET /race — Race card
- Gateway: `GET https://api.apiclay.com/v1/api/atgswedishhorseracingapi/race`
- Public query params: `race_id` (string, required)
- Upstream proxy: ApiClay proxy paid by the vendor (data cap 2 MB per call). Fetched through an ApiClay proxy paid by the vendor; a response larger than the route's data cap fails with 502 and is refunded in full.

## Call example

```bash
curl -X GET "https://api.apiclay.com/v1/api/atgswedishhorseracingapi/calendar?date=<date>" \
  -H "token: <YOUR_APICLAY_TOKEN>"
```

Index of every published API: https://apiclay.com/llms.txt
