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

# Referee & Venue Endpoints

> V2 Tennis API: 8 endpoints for umpires and courts/venues

## Base URL

```
https://v2.tennis.sportsapipro.com
```

***

## Referee / Umpire (5 endpoints)

### Umpire Details

```bash theme={null}
GET /api/referee/{id}
```

<ParamField path="id" type="number" required>
  Referee/umpire ID.
</ParamField>

### Umpire Image

```bash theme={null}
GET /api/referee/{id}/image
```

### Umpire Tournament Statistics

```bash theme={null}
GET /api/referee/{id}/tournament/{tid}/season/{sid}/statistics
```

### Umpire Recent Matches

```bash theme={null}
GET /api/referee/{id}/events/last/{page}
```

### Umpire Upcoming Matches

```bash theme={null}
GET /api/referee/{id}/events/next/{page}
```

***

## Venue / Court (3 endpoints)

### Venue Details

```bash theme={null}
GET /api/venue/{id}
```

Returns court/venue details including surface type and capacity.

<ParamField path="id" type="number" required>
  Venue ID.
</ParamField>

### Venue Recent Matches

```bash theme={null}
GET /api/venue/{id}/events/last/{page}
```

### Venue Upcoming Matches

```bash theme={null}
GET /api/venue/{id}/events/next/{page}
```

***

## Example Request

<CodeGroup>
  ```bash cURL theme={null}
  curl -X GET "https://v2.tennis.sportsapipro.com/api/venue/1234" \
    -H "x-api-key: YOUR_API_KEY"
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch(
    'https://v2.tennis.sportsapipro.com/api/venue/1234/events/last/0',
    { headers: { 'x-api-key': 'YOUR_API_KEY' } }
  );
  const recentMatches = await response.json();
  ```
</CodeGroup>
