ASD Platform
Odds & Markets API

Odds & Markets API

Authentication

How the Odds & Markets API key works, how to get and rotate one, and how it differs from platform keys.

Send the key in X-API-Key

Every request to https://api.altsportsdata.com/api/v1/public carries your key in the X-API-Key header. Header names are case-insensitive, so X-API-KEY (the spelling in the OpenAPI spec) works the same way.

curl -s "https://api.altsportsdata.com/api/v1/public/sports" \
  -H "X-API-Key: $ALTSPORTSDATA_API_KEY"

The spec declares this one scheme and no other. Do not send the key as a Bearer token or a query parameter.

Get a key

Keys are issued by the ALT Sports Data account team. There is no self-serve sign-up or key page for this API. The account team also books the coverage for your account, which decides which competitions and events your key returns.

Rotate or revoke a key

Ask your account team for a new key, deploy it, then ask them to retire the old one. If a key leaks, contact the account team straight away so it can be revoked.

Keep the key on your server

  • Call the API from your backend. It sends no CORS headers for other websites, so a browser page cannot call it directly, and a key shipped in a web or mobile app can be read by anyone.
  • Keep the key in a secret manager or environment variable, never in source control.
  • Use a separate key per environment if your account team can issue one, so one leak does not affect the rest.

When the key is missing or wrong

A missing or invalid key returns 403 with the standard error body. Captured from the live API with no key (timestamp is UTC):

{
  "statusCode": 403,
  "message": "Forbidden",
  "data": null,
  "metadata": null,
  "stack": null,
  "timestamp": "2026-10-09T06:17:53.603Z"
}

A missing key and a wrong key look the same. See Errors and limits for the other status codes.

Platform keys do not work here

ALT Sports Data has two key types:

KeyHeaderWorks on
Odds & Markets key (from the account team)X-API-Key: <key>api.altsportsdata.com (this API)
Platform key (asd_live_…)Authorization: Bearer asd_live_…platform-api.altsportsleagues.ai (Sport Data and Streaming)

A platform key sent to this API is rejected with 403. Platform keys are created on the platform; see Managing API keys. The Platform API offers a basic odds pass-through at /v1/odds/* on a platform key, without SGP pricing or the league-specific routes.

Health check

GET https://api.altsportsdata.com/api/v1/health needs no key. Use it to tell an outage apart from a key problem. It is outside the /public base path and is not in the OpenAPI spec. Captured on 2026-10-08:

{
  "status": 200,
  "message": "Success",
  "data": {
    "status": "ok",
    "error": {},
    "version": "release-329022b-2026-10-08T15:06:21-release",
    "redis": { "connected": true, "latency": 2 }
  },
  "stack": null
}

Public spec

The OpenAPI spec is public at https://api.altsportsdata.com/public/docs/swagger-json. Reading it needs no key.

On this page