# Sports Data API � scores, standings, rosters (no key) (`synthetic.ia/sports-data-api`) Actor

Live scores, fixtures, standings, teams, rosters, schedules, players and news across dozens of sports (soccer, NBA, NFL, MLB, NHL…) via ESPN's public API. No API key. Clean HTTP API + MCP. Pay per query.

- **URL**: https://apify.com/synthetic.ia/sports-data-api.md
- **Developed by:** [Synthetic](https://apify.com/synthetic.ia) (community)
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 sports queries

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Sports Data API — scores, standings, rosters (no key)

Get **live sports data over a clean HTTP API** — scores, fixtures, standings, teams, rosters, schedules, player profiles and news — across **dozens of sports and leagues**. Aggregated from a public sports-data source, wrapped so you get clean JSON without an API key, a portal, or the reverse-engineering. Set `sport` + `league` on any call and reuse the same endpoints everywhere. Pay per query.

- ⚽🏀🏈 **Multi-sport** — soccer, basketball (NBA), football (NFL), baseball (MLB), hockey (NHL), tennis, and more
- 🔴 **Live scoreboard** — fixtures & live scores with teams, logos, venue, broadcasts and betting odds
- 📊 **Standings** — full league tables (W/D/L, GF/GA, points, rank, streak)
- 👥 **Teams & rosters** — team profiles, colors/logos, full squads with bios & stats
- 📅 **Schedules** and 🧑 **player profiles** and 📰 **news**
- ⚡ HTTP API (Standby) + usable from AI agents (MCP)

### Sample output (scoreboard)

```json
{
  "ok": true, "sport": "soccer", "league": "eng.1", "count": 1,
  "events": [{
    "id": "704...", "date": "2026-09-17T19:00Z", "status": "Full Time", "completed": true,
    "venue": "Gtech Community Stadium",
    "competitors": [
      { "team": "Brentford", "abbrev": "BRE", "homeAway": "home", "score": "1" },
      { "team": "Chelsea", "abbrev": "CHE", "homeAway": "away", "score": "2", "winner": true }
    ],
    "odds": [{ "provider": "DraftKings", "details": "CHE -1.5", "overUnder": 2.5 }]
  }]
}
```

### How to use

#### HTTP API (Standby — recommended)

Base URL: `https://synthetic-ia--sports-data-api.apify.actor` with header `Authorization: Bearer <APIFY_TOKEN>`.

| Endpoint | Body | Does |
|---|---|---|
| `POST /scoreboard` | `{ sport, league, dates? }` | Fixtures & live scores |
| `POST /summary` | `{ sport, league, event }` | Full match sheet (stats, events, lineups, commentary) |
| `POST /standings` | `{ sport, league, season? }` | League table |
| `POST /teams` | `{ sport, league, teamId? }` | Team list or one team |
| `POST /roster` | `{ sport, league, teamId }` | Squad |
| `POST /schedule` | `{ sport, league, teamId }` | Team fixtures |
| `POST /athlete` | `{ sport, league, athleteId }` | Player profile & stats |
| `POST /news` | `{ sport, league }` | Articles |
| `GET /` | — | Endpoint list & sport/league examples |

`GET /scoreboard?sport=soccer&league=eng.1` also works (query-string form).

```bash
## Today's Premier League scores
curl -X POST ".../scoreboard" -H "Authorization: Bearer $APIFY_TOKEN" \
  -d '{"sport":"soccer","league":"eng.1"}'

## NBA standings
curl -X POST ".../standings" -H "Authorization: Bearer $APIFY_TOKEN" \
  -d '{"sport":"basketball","league":"nba"}'

## A team's roster
curl -X POST ".../roster" -H "Authorization: Bearer $APIFY_TOKEN" \
  -d '{"sport":"football","league":"nfl","teamId":"12"}'
```

### sport / league codes

Same endpoints, just swap the pair:

- **Soccer**: `soccer/esp.1` (LaLiga), `soccer/eng.1` (Premier League), `soccer/ita.1`, `soccer/ger.1`, `soccer/fra.1`, `soccer/uefa.champions`, `soccer/conmebol.libertadores`
- **US**: `basketball/nba`, `football/nfl`, `baseball/mlb`, `hockey/nhl`, `basketball/mens-college-basketball`
- …and many more sports and leagues covered.

### Input (one-shot run)

Set `operation` (scoreboard/summary/standings/teams/roster/schedule/athlete/news), `sport`, `league`, and the id/date the operation needs. The result is saved to the run's key-value store as `OUTPUT` and pushed to the dataset.

### Pricing

**Per query** from **$0.01** (drops to $0.003 on higher tiers). Platform usage included. One `/scoreboard` call returns a whole day's matches for a single query fee.

### Related Actors

- **[Yahoo Finance API](https://apify.com/synthetic.ia/yahoo-finance-api)** — market data, same clean-API approach.
- **[ffmpeg API](https://apify.com/synthetic.ia/ffmpeg-api)** & **[Media Downloader](https://apify.com/synthetic.ia/media-downloader)** — build sports clips & graphics from the data.

### FAQ

**Do I need an API key?** No — we handle the data source for you; you just call this API.

**Which sports?** Dozens — soccer, basketball, football, baseball, hockey, tennis and more. Pass the `sport`/`league` code.

**How current is it?** Live/near-live.

### Legal

This Actor returns data aggregated from a public sports-data source and is **not affiliated with or endorsed by any sports league, team, or data provider**. Field shapes are best-effort and can change. Logos, photos and articles belong to their respective owners and licensors — you are responsible for using them within their rights and for your own use case.

# Changelog

This Actor's version history is a separate document: https://apify.com/synthetic.ia/sports-data-api/changelog.md

# Actor input Schema

## `operation` (type: `string`):

What to fetch.

## `sport` (type: `string`):

e.g. soccer, basketball, football, baseball, hockey, tennis.

## `league` (type: `string`):

e.g. esp.1, eng.1, uefa.champions, nba, nfl, mlb, nhl.

## `dates` (type: `string`):

YYYYMMDD or YYYYMMDD-YYYYMMDD. Empty = current.

## `event` (type: `string`):

The match/event id (from scoreboard events\[].id).

## `teamId` (type: `string`):

Team id (from /teams).

## `athleteId` (type: `string`):

Player id.

## `season` (type: `string`):

4-digit year, e.g. 2026. Empty = current.

## Actor input object example

```json
{
  "operation": "standings",
  "sport": "soccer",
  "league": "esp.1"
}
```

# Actor output Schema

## `result` (type: `string`):

The query result JSON.

## `runs` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "dates": ""
};

// Run the Actor and wait for it to finish
const run = await client.actor("synthetic.ia/sports-data-api").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "dates": "" }

# Run the Actor and wait for it to finish
run = client.actor("synthetic.ia/sports-data-api").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "dates": ""
}' |
apify call synthetic.ia/sports-data-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,synthetic.ia/sports-data-api"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/BsRXGZeWWEUMG6uOe/builds/hBP8lbscL0srRg28U/openapi.json
