# Federated time series data for a station?

**URL:** <https://community.tempest.earth/t/federated-time-series-data-for-a-station/5716>\
**Category:** Developers\
**Created:** [April 9, 2020, 1:55pm UTC](https://community.tempest.earth/t/federated-time-series-data-for-a-station/5716 "2020-04-09T13:55:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![drmrbrewer](https://avatars.discourse-cdn.com/v4/letter/d/ebca7d/32.png) [@drmrbrewer](https://community.tempest.earth/u/drmrbrewer)\
**Post date:** [April 9, 2020, 1:55pm UTC](https://community.tempest.earth/t/federated-time-series-data-for-a-station/5716/1 "2020-04-09T13:55:12Z")

</div>

I note that it is possible to request a time series of data (rather than just the latest observation) from a particular device, as for example in the following request:

[https://swd.weatherflow.com/swd/rest/observations/?device\_id=1110&day\_offset=0&api\_key=20c70eae-e62f-4d3b-b3a4-8586e90f3ac8](https://swd.weatherflow.com/swd/rest/observations/?device_id=1110&day_offset=0&api_key=20c70eae-e62f-4d3b-b3a4-8586e90f3ac8)

Not being too knowledgeable (yet) of weatherflow products, my understanding is that this is for a specific _device_, and that each _station_ can have a number of _devices_.

It also appears that for a _station_ you can requested a _federated_ set of _current_ observations covering all _devices_ for that station (there may be some overlap):

[https://swd.weatherflow.com/swd/rest/observations/station/690?api\_key=20c70eae-e62f-4d3b-b3a4-8586e90f3ac8](https://swd.weatherflow.com/swd/rest/observations/station/690?api_key=20c70eae-e62f-4d3b-b3a4-8586e90f3ac8)

Question:

Is it possible to request a _time series_ of _federated_ data for a _station_, like you can for a _device_? Or do you have to first look up the devices associated with a station, then fetch the time series for each device, and then perform the merging (to eliminate duplicated data) manually… possibly quite tricky without detailed knowledge of what each parameter means?

---

<div class="post-metadata">

**Author:** ![peter](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/peter/32/1365_2.png) [@peter](https://community.tempest.earth/u/peter)\
**Post date:** [April 9, 2020, 4:01pm UTC](https://community.tempest.earth/t/federated-time-series-data-for-a-station/5716/2 "2020-04-09T16:01:40Z")

</div>

> [@drmrbrewer](#):
>
> Is it possible to request a _time series_ of _federated_ data for a _station_ , like you can for a _device_ ?

As far as I am aware this is not currently possible. The API end point for the _latest federated observation for a Station_ cannot take the time\_start/time\_end/day\_offset parameter in order to generate a time series. As you mentioned, you will need to first fetch historical observations using the device API endpoint, and then you can switch to the station endpoint for all new observations.

---

<div class="post-metadata">

**Author:** ![btst.online](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/btst.online/32/16538_2.png) [@btst.online](https://community.tempest.earth/u/btst.online)\
**Post date:** [April 9, 2020, 4:06pm UTC](https://community.tempest.earth/t/federated-time-series-data-for-a-station/5716/3 "2020-04-09T16:06:14Z")

</div>

IIRC… WF stated a while back that Federated API data is on the near horizon…
