# GET /v2/fixtures/{id}/weather

Group: Fixtures

Baseball only: ballpark weather in metric units (°C, %, km/h), with the observed conditions listed before the forecast.

Plans: Every plan, Free included.

Note: For any other sport the response is 200 with an empty array. forecast is true on forecast rows and false on observed ones; condition is one of a fixed list (clear, cloudy, fog, rain, snow, storm, other); the source’s own wording stays in description.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `id` | path | yes | fixture id issued by DataSportsAPI, a positive integer |

## Response

- `data`: `WeatherObservation[]`
- `meta`: count
- Objects: WeatherObservation (https://datasportsapi.com/markdown/reference.md#weatherobservation)

## Errors

- 403 history_not_in_plan — the fixture predates the history your plan covers

Plus the common errors (https://datasportsapi.com/markdown/docs.md#errors).

## Request

cURL:

```bash
curl -H "Authorization: Bearer sk_live_…" \
    "https://api.datasportsapi.com/v2/fixtures/{id}/weather"
```

TypeScript:

```ts
const { data, meta } = await client.fixtures.weather(id);
```

Python:

```python
res = client.fixtures.weather(id)
```

Go:

```go
res, err := client.Fixtures.Weather(ctx, id)
```

CLI:

```bash
$ dsa fixtures weather <id>
```

## Example response

```json
{ "data": [ { "at": "2026-10-24T01:02:50.000Z", "forecast": false, "condition": "cloudy", "description": "Overcast",
    "temperatureC": 14.44, "dewPointC": 7.22, "humidityPercent": 60, "cloudCoverPercent": 99,
    "windSpeedKmh": 8.05, "windDirection": "SE" }, { "forecast": true, … } ],
  "meta": { "count": 2 } }
```

---

Base URL: https://api.datasportsapi.com. Authenticate each /v2 call with the header `Authorization: Bearer <key>` (secret keys begin with `sk_live_`).
HTML: https://datasportsapi.com/docs/fixtures/weather/ · All docs: https://datasportsapi.com/markdown/docs.md · Data reference: https://datasportsapi.com/markdown/reference.md
