AltSportsData

Credentials and Testing

Learn how ALT Sports Data issues credentials and how to use them in the API, SDKs, MCP server, and interactive docs.

Credentials and Testing

ALT Sports Data issues you an API credential directly. Once you have it, you can use that same credential across the public API, official SDKs, and MCP workflows.

One credential, multiple interfaces

The same ALT Sports Data credential can be used to test routes in the interactive docs, authenticate SDK requests, and configure the MCP server.

How you receive access

  1. You contact ALT Sports Data for access.
  2. We issue your ALT Sports Data API credential.
  3. You use that credential in the docs, your code, or your AI tooling.

Where you can use it

  • Interactive API Reference: open a route and test it from the right-side panel
  • Direct HTTP requests: call the public API yourself
  • SDKs: pass the credential into the TypeScript or Python client
  • MCP Server: set the credential as ALTSPORTSDATA_API_KEY

Testing inside the docs

The pure API Reference is the fastest place to confirm access.

  1. Open the route you want to test.
  2. Enter your credential in the interactive reference UI.
  3. Send the request from the right-side panel.
  4. Confirm the response shape and example payload before you write code.

Example usage

curl -X GET "https://api.altsportsdata.com/api/v1/public/sports" \
  -H "X-API-KEY: YOUR_API_KEY"
import { AltSportsData } from 'altsportsdata';

const client = new AltSportsData({
  apiKey: process.env.ALTSPORTSDATA_API_KEY,
});
import os
from altsportsdata import AltSportsData

client = AltSportsData(
    api_key=os.getenv("ALTSPORTSDATA_API_KEY")
)
ALTSPORTSDATA_API_KEY=your_api_key altsportsdata-mcp

Next steps

On this page