Read last entry in channel with HTTP GET
(Required) Channel ID for the channel of interest.
(Required) Format for the HTTP response, specified as
(Required for private channels) Specify Read API Key for this specific channel. The Read API key is found on the API Keys tab of the channel view.
(Optional) Identifier from Time Zones Reference for this request.
(Optional) Timezone offset that results are displayed in. Use the timezone parameter for greater accuracy.
(Optional) Include status updates in feed by setting "status=true".
(Optional) Include latitude, longitude, and elevation in feed by setting "location=true".
You can use your web browser to complete GET HTTP requests to the RESTful API for ThingSpeak™. To see the format for an HTTP response, click the link or copy it to your browser.
Channel 9 contains information from several home environment sensors. You
can read data from this public channel. The format for the response occurs
at the end of the URL, before any query string parameters. This example
returns the last entry from channel 9 in
When you include
location=true, ThingSpeak returns the location information for the last
entry. Entry location information is different from the channel location
information, which is set on the Channel Settings tab.
Append the first parameter after a question mark
request returns the results in
When you request the output in
csv format, the file
returned is a comma-separated variable format. Depending on your computer
configuration, your browser can start additional software to display this
format. Reading from a private channel requires the read API Key. Use the
query string parameter
api_key to specify the API Key.
Each entry also has a status field. In this example,
status=true returns the channel status entry for the
last field along with the feed data. Append the second parameter after the
For the full list, see Error Codes.
If you do not have access to the channel, the response is -1.