---
title: "Get Sync Weather"
method: GET
path: "/weather/sources/{source_id}/models/{model_id}"
tags: ["sync"]
---

# Get Sync Weather

`GET /weather/sources/{source_id}/models/{model_id}`

Request weather data for a specific Model using the given settings (location, period, weather factors, e.g.).

This data is then formatted as the requested output format (output unit system and file format) before returning the requested data.

(Please note that as some models are predictive or otherwise restricted in the periods available for requests,
that sometimes the 'begin' and 'end' values will be altered to match these restrictions.)
An API function that retrieves specific weather data for a specific Weather Model and returns it as the
requested output format and units.

Args:
    request:        The original request object containing query parameters.
    source_id:      The Source ID of the Source to request the weather data from.
    model_id:       The Model ID for the Model to request the weather data from.
    cleanup_tasks:  A BackgroundTasks object to hold any pending cleanup tasks for when the data request is
                    finished.
    ret_args:       A WeatherContentRequestQuery object holding the parameters for the weather data request to
                    use.
    fmt_args:       A WeatherFormattingRequestQuery object holding the parameters for the output format and
                    units to use.
    accept:         Header type to use for the output file.
                    Rounded to the most likely value using header_accept_type().

Returns:
    The weather data in the requested format for the requested parameters.

## Path parameters

- `source_id` string, required
- `model_id` string, required

## Query parameters

- `begin` string — From date and time
- `end` string — To date and time
- `lat` number, required — GPS Latitude or RD x-coordinate
- `lon` number, required — GPS Longitude or RD y-coordinate
- `factors` string[] — Only return these weather factors (default: all factors)
- `units` 'si' | 'human' | 'original' — Enumeration of valid output unit sets for weather data.
- `response_format` 'netcdf4' | 'netcdf3' | 'json' | 'json_dataset' | 'csv' — Enumeration of valid output file-formats for weather data responses.

## Headers

- `accept` string

## Response `200`

Successful response with the requested weather data.

- string

## Other responses

- `404` — No data was found for the given period or file not found.
- `422` — Invalid or missing query parameters.

## Changes

- **2026-08-12** `3fcf5864fa7e` — 2 breaking, 3 info
  - the response's body type/format changed from ``/`` to `string`/`` for status `200`
  - removed the media type `application/json` for the response with the status `422`
  - `query` request parameter `factors` list-of-types was widened by adding types `null`
  - for the `query` request parameter `factors`, the type/format was generalized from `array`/`` to ``/``
  - …1 more

[Change history](https://skmtc.dev/alliander-opensource/apis/weather-api-v2/changes/weather/sources/:source_id/models/:model_id/get.md)

---

[API](https://skmtc.dev/alliander-opensource/apis/weather-api-v2.md) · [All operations](https://skmtc.dev/alliander-opensource/apis/weather-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/alliander-opensource/weather-api-v2/revisions/3fcf5864fa7e/schema)
