Read Last Field Entry Age

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

Request

HTTP Method

GET

URL

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

URL Parameters

NameDescription

<channel_id>

(Required) Channel ID for the channel of interest.

<field_id>

(Required) Field ID for the field of interest.

<format>

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

Example: https://api.thingspeak.com/channels/266256/fields/2/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.