Read Last Entry Age

Read the number of seconds since the last entry in a channel with HTTP GET

Request

HTTP Method

GET

URL

https://api.thingspeak.com/channels/<channel_id>/feeds/last_data_age.<format>

URL Parameters

NameDescription

<channel_id>

(Required) Channel ID for the channel of interest.

<format>

(Required) Format for the HTTP response, specified as json, xml, csv, or txt.

Example URL: https://api.thingspeak.com/channels/266256/feeds/last_data_age.json

Query String Parameters

There are no available parameters for this request.

Response

Success

HTTP Status Code

200 OK

Body

 JSON Example

 XML Example

 CSV Example

 Text Example

Error

For the full list, see Error Codes.

If you do not have access to the channel, the response is -1.