> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nextsportsapi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Build a Live Match Center

> Combine fixture, event, lineup, and statistics endpoints for live match pages.

A match center usually combines several endpoints. Start with the fixture and load detail endpoints only when the fixture supports that data.

## 1. Get the fixture

```bash theme={"system"}
curl --request GET \
  "https://api.nextsportsapi.com/v1/football/fixtures?id=MBH7KQ2" \
  --header "Authorization: Bearer YOUR_API_KEY"
```

## 2. Add events

```bash theme={"system"}
curl --request GET \
  "https://api.nextsportsapi.com/v1/football/fixtures/events?fixture=MBH7KQ2" \
  --header "Authorization: Bearer YOUR_API_KEY"
```

## 3. Add lineups

```bash theme={"system"}
curl --request GET \
  "https://api.nextsportsapi.com/v1/football/fixtures/lineups?fixture=MBH7KQ2" \
  --header "Authorization: Bearer YOUR_API_KEY"
```

## 4. Add team statistics

```bash theme={"system"}
curl --request GET \
  "https://api.nextsportsapi.com/v1/football/fixtures/statistics?fixture=MBH7KQ2" \
  --header "Authorization: Bearer YOUR_API_KEY"
```

## Polling model

Use a fixture status field to decide polling frequency. Poll active fixtures more frequently, reduce polling at halftime, and stop live polling after final status once post-match statistics are loaded.
