Get Last Update Time | ThingSpeak API | Forum

Avatar

Please consider registering
Guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —






— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed sp_TopicIcon
Get Last Update Time
No permission to create posts
April 14, 2020
6:19 pm
Avatar
alanm
New Member
Members
Forum Posts: 1
Member Since:
April 14, 2020
sp_UserOfflineSmall Offline

I am using the below URL to get the last result from a channel:

https://api.thingspeak.com/channels/999999/fields/field1/last.txt?api_key=XXXXXXXXXXXXX

I would also like to include the date/time of this result. Any ideas how to get the last update time?

Thanks!

April 15, 2020
12:39 am
Avatar
Vinod

MathWorks
Members
Forum Posts: 339
Member Since:
May 1, 2016
sp_UserOfflineSmall Offline

Use

https://api.thingspeak.com/channels/CHANNEL_ID/fields/FIELD_ID/last.json?api_key=CHANNEL_API_KEY

to get the result in JSON format. This contains the timestamp the measurement was made.

MATLAB answers is the preferred location for ThingSpeak Community support.

Forum Timezone: America/New_York

Most Users Ever Online: 166

Currently Online:
21 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 272

Vinod: 240

piajola: 95

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 8665

Moderators: 1

Admins: 2

Forum Stats:

Groups: 3

Forums: 14

Topics: 1600

Posts: 5760

Newest Members:

briskpanda, Dejw0089, Yassine Ben Salah, anis, 43994554AKS, suda

Moderators: cstapels: 460

Administrators: Hans: 405, lee: 457