ThingSpeak API CSV returns a fraction of the requested data

1 ビュー (過去 30 日間)
Jacob Mielczarek
Jacob Mielczarek 2021 年 7 月 31 日
回答済み: Kojiro Saito 2021 年 8 月 3 日
Hello. I am trying to read online sensor data using the ThingSpeak API. I format my url in the following way:
https://api.thingspeak.com/channels/{}/feeds.csv?api_key={}&average=60&offset=0&round=2&start=2021-04-01 00:00:00&end=2021-07-31 00:00:00
Where the two '{}' are replaced with the channel ID and read Key respectively. The problem is that the data returned only spans about 10 days which is only a fraction of what the url specified. Is there a way to avoid this limit and retrieve all the data requested in a single call, or do multiple API calls have to be made if the timeframe I need is greater than 10 days? Thank you in advance!

採用された回答

Kojiro Saito
Kojiro Saito 2021 年 8 月 3 日
According to this document, in results query, it says "The maximum number is 8,000."
May your 10 days data is 8,000 records? If so, we cannot increase this maximum number over 8,000, we need to call this API repeatedly.

その他の回答 (0 件)

コミュニティ

その他の回答  ThingSpeak コミュニティ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by