Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Read Data from Channel

Use the REST and MQTT APIs to read channels using software or devices

ThingSpeak™ is an IoT platform that uses channels to store data sent from apps or devices. You can read data from your ThingSpeak channels using the HTTP calls and the REST API. You can use the MQTT subscribe method to receive messages whenever the channel is updated. And you can use thingSpeakRead to read data from your channel in desktop MATLAB. Learn more about when to Choose Between REST API and MQTT API to update a channel.

expand all

Read DataRead data from all fields in a channel with HTTP GET
Read FieldRead data from a single field of a channel with HTTP GET
Read StatusRead status field of a channel with HTTP GET
Read Last EntryRead the last entry in a channel with HTTP GET
Read Last Field EntryRead the last entry in a field of a channel with HTTP GET
Read Last StatusRead the last status of a channel with HTTP GET
Read Last Entry AgeRead the number of seconds since the last entry in a channel with HTTP GET
Read Last Field Entry AgeRead the number of seconds since the last entry in a field with HTTP GET
Subscribe to a Channel FeedSubscribe to updates from a channel feed with MQTT
Subscribe to a Channel Field FeedSubscribe to channel updates from a particular field of a channel with MQTT
thingSpeakReadRead data stored in ThingSpeak channel

Topics

Choose Between REST API and MQTT API

Learn when to use REST and MQTT to update a channel.

Prototyping with Sonar Proximity Sensor

Use ThingSpeak to prototype Arduino® based development.

Moisture Sensor with HTTP POST to Channel

Wake from deep sleep to post to ThingSpeak using a wireless client library and the POST HTTP command.

Subscribe to Channel Updates Using Desktop MQTT Client

Subscribe to channel updates from a ThingSpeak channel using desktop MQTT.

Subscribe to Channel Updates Using Particle Photon Client

Subscribe to a ThingSpeak channel using a Particle Photon device.

Related Information

Troubleshooting

Error Codes

See the details of ThingSpeakREST API error messages and corresponding HTTP status codes.

Troubleshoot MQTT Subscribe

Common mistakes and problem resolution for subscribing to ThingSpeak