Get Data for Multiple Feeds
Moderators: adafruit_support_bill, adafruit
Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
- mdavey66
- Posts: 5
- Joined: Tue Jan 20, 2015 9:41 pm
Get Data for Multiple Feeds
My cursory searching didn't find an answer. But is it possible to get feed data from multiple feeds with one call? Ideally, also using a time range? Or for a time range is it possible to get data from a group of feeds?
- Franklin97355
- Posts: 23912
- Joined: Mon Apr 21, 2008 2:33 pm
Re: Get Data for Multiple Feeds
What type of data are you trying to collect and how do you want to get it?
- mdavey66
- Posts: 5
- Joined: Tue Jan 20, 2015 9:41 pm
Re: Get Data for Multiple Feeds
I have time series environmental data and am using the API to download the data for post processing. Was wondering if there was a way to download multiple feeds with one call or would need to make one call per feed.
Basing everything off the API documentation example and parsing the JSON response:
Basing everything off the API documentation example and parsing the JSON response:
Code: Select all
"https://io.adafruit.com/api/v2/{username}/feeds/{feed_key}/data?start_time=2019-05-04T00:00Z&end_time=2019-05-05T00:00Z"
- jwcooper
- Posts: 1004
- Joined: Tue May 01, 2012 9:08 pm
Re: Get Data for Multiple Feeds
You can get the data for all the feeds in a group by using the following call:
https://io.adafruit.com/api/docs/#get-d ... -39-s-feed
So you'd create a group, and add feeds to it, that way you can have it all contained and utilize the group functionality in the API.
https://io.adafruit.com/api/docs/#get-d ... -39-s-feed
So you'd create a group, and add feeds to it, that way you can have it all contained and utilize the group functionality in the API.
Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.