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.
Locked
User avatar
mdavey66
 
Posts: 5
Joined: Tue Jan 20, 2015 9:41 pm

Get Data for Multiple Feeds

Post by mdavey66 »

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?

User avatar
Franklin97355
 
Posts: 23903
Joined: Mon Apr 21, 2008 2:33 pm

Re: Get Data for Multiple Feeds

Post by Franklin97355 »

What type of data are you trying to collect and how do you want to get it?

User avatar
mdavey66
 
Posts: 5
Joined: Tue Jan 20, 2015 9:41 pm

Re: Get Data for Multiple Feeds

Post by mdavey66 »

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:

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"

User avatar
jwcooper
 
Posts: 1003
Joined: Tue May 01, 2012 9:08 pm

Re: Get Data for Multiple Feeds

Post by jwcooper »

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.

Locked
Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.

Return to “Internet of Things: Adafruit IO and Wippersnapper”