getting channel out put as a single value | ThingSpeak API | Forum

Avatar

Please consider registering
Guest

Search

— Forum Scope —






— Match —





— Forum Options —





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

Register Lost password?
sp_Feed sp_TopicIcon
getting channel out put as a single value
Avatar
maneesh.marian
New Member
Forum Posts: 1
sp_UserOfflineSmall Offline
1
August 9, 2017 - 12:31 am
sp_Permalink sp_Print

I was trying to get my channel field using 

https://api.thingspeak.com/channels/xxxxx/fields/1.json?api_key=xxxxxxxxxxxxx&results=1
but i got out put as 
{"channel":{"id":313504,"name":"ab","latitude":"0.0","longitude":"0.0","field1":"led","created_at":"2017-08-06T06:00:05Z",
"updated_at":"2017-08-09T03:40:53Z","last_entry_id":343},"feeds":[{"created_at":"2017-08-08T16:08:54Z","entry_id":342,"field1":"100"},
{"created_at":"2017-08-09T03:40:53Z","entry_id":343,"field1":"500"}]}

I want the output as 500 only printed in my screen 
I am a beginner in app development using mit app inventor and i wanted this printed in my app using this address 
Avatar
cstapels

Gold
Forum Posts: 126
sp_UserOnlineSmall Online
2
August 9, 2017 - 9:25 am
sp_Permalink sp_Print

If you just want the last entry, you can use the instructions here.  

For example, use the format 

https://api.thingspeak.com/channels/12397/fields/1/last.txt

If you don't want the last entry, you can use the entry id:

https://api.thingspeak.com/channels/9/fields/1/6061519.txt

Forum Timezone: America/New_York

Most Users Ever Online: 114

Currently Online: cstapels, jacktheripper125
22 Guest(s)

Currently Browsing this Page:
2 Guest(s)

Top Posters:

rw950431: 252

Vinod: 164

cstapels: 96

piajola: 75

vespapierre: 63

Adarsh_Murthy: 59

Newest Members:

Nsneilotof

angieus2

goldiepw11

BinanceoSt

gnarender123@gmail.com

edenderest

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

 

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Administrators: Hans, lee