feeds.json vs status.json

Alberto Maccioni el 14 de Mzo. de 2022
Actividad más reciente Respuesta de Alberto Maccioni a las el 14 de Mzo. de 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 el 14 de Mzo. de 2022

You're right, thanks for pointing out.

Christopher Stapels
Christopher Stapels el 14 de Mzo. de 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.

Alberto Maccioni
1
Publicación
1
Responder

Etiquetas

Aún no se han introducido etiquetas.