feeds.json vs status.json

Alberto Maccioni on 14 Mar 2022
Latest activity Reply by Alberto Maccioni on 14 Mar 2022

Hello, I see a difference in the number of elements returned by: https://api.thingspeak.com/channels/1389063/status.json?offset=0&results=2500&api_key=XXXXXXXXXXXXXX and https://api.thingspeak.com/channels/1389063/feeds.json?offset=0&results=2500&status=true&api_key=XXXXXXXX The first returns only 271 elements, the second 2500 as requested. Why is that?

Alberto Maccioni
Alberto Maccioni on 14 Mar 2022

You're right, thanks for pointing out.

Christopher Stapels
Christopher Stapels on 14 Mar 2022

Have a look at the tip in the doc for the status endpoint .

The results parameter determines the maximum number of entries to be retrieved for a query, up to 8000. The default time span is limited to 1 day (24 hours). To get results from more than 1 day and limit the entries, use both the results and days parameters together.

Tags

No tags entered yet.