REST API
Representational state transfer (REST) is an architectural style designed as a request-response model that communicates over HTTP. ThingSpeak, an IoT platform, uses the REST API calls GET, POST, PUT, and DELETE to create and delete channels, read and write channel data, and clear the data in a channel. A web browser or client sends a request to the server, which responds with data in the requested format. Web browsers use this interface to retrieve web pages or to send data to remote servers.
You can also use REST API calls with Act on Data which let you interact with social media, web services, and devices.
REST API Reference
Topics
- Choose Between REST API and MQTT API
Learn when to use REST and MQTT to update a channel.
- Bulk-Update Using an Arduino or an ESP8266
This example shows how to use either an Arduino® MKR1000 board or an ESP8266 board connected to a Wi-Fi® network to continuously collect Wi-Fi signal strength and bulk-update a ThingSpeak™ channel.
- Bulk-Update a ThingSpeak Channel Using a Particle Photon Board
This example shows how to use a Particle Photon board connected to a Wi-Fi® network to bulk-update a ThingSpeak™ channel.
- Bulk-Update Using a Raspberry Pi Board
This example shows how to collect data using a Wi-Fi-connected Raspberry Pi board running Python 2.7.
- Time Zones Reference
Add time zone parameter to your HTTP request.
Troubleshooting
See the details of ThingSpeak REST API error messages and corresponding HTTP status codes.