ThingSpeak

This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

REST API

Use REST API calls to create and update ThingSpeak™ channels and charts

Representational state transfer (REST) is an architectural style designed as a request/response model that communicates over HTTP. ThingSpeak, an IoT platform, uses REST API calls such as GET, POST, PUT and DELETE to create a channel and update a channel feed, update an existing channel, clear a channel feed and delete a channel. A web browser or client requests the server using a REST call and the server sends back with a response. Web browsers use this interface to retrieve web pages or to send data to remote servers.

You can also use REST API calls with ThingSpeak Apps which let you interact with social media, web services, and devices.

Concepts

Channels

Create a Channel

Send an HTTP request to create a new channel.

Get Status Updates

Send an HTTP request to view channel status updates.

List Public Channels

Send an HTTP request to view a list of public channels.

List All Channels of a User

Send an HTTP request to list all channels of a user.

List All Your Public Channels

Send an HTTP request to list all your public channels.

View a Channel

Send an HTTP request to view a specific channel.

Update a Channel

Send an HTTP request to update information in an existing channel.

Clear a Channel

Send an HTTP request to clear all feed data from a channel.

Delete a Channel

Send an HTTP request to delete a channel.

Channel Feeds

Bulk-Update a Channel Feed

Send an HTTP request to bulk-update a channel feed.

Update a Channel Feed

Send an HTTP request to update channel feed data or channel status message, or send a tweet.

Get a Channel Feed

Send an HTTP request to view channel feed data.

Get a Channel Field Feed

Send an HTTP request to view channel field feed data.

Charts

Create a Chart

Send an HTTP request to create a chart.

Embed a Chart

Embed ThingSpeak charts on a custom web page.

Channel Configurations

Channel Configurations

ThingSpeak stores data in channels. Learn how to configure a channel to control access, secure data, and import data.

Examples and How To

Continuously Collect Data and Bulk-Update a ThingSpeak Channel Using an Arduino MKR1000 Board or an ESP8266 Board

Collect Wi-Fi® signal strength in JSON format every 15 seconds and update channel once every 2 minutes using relative time stamps.

Continuously Collect Data and Bulk-Update a ThingSpeak Channel Using a Particle Photon Board

Collect data in CSV format every 15 seconds, and update channel once every 2 minutes using absolute timestamps.

Continuously Collect Data and Bulk-Update a ThingSpeak Channel Using a Raspberry Pi Board

Collect CPU temperature and utilization data in JSON format every 15 seconds and update the channel once every 2 minutes using Raspberry Pi™ board running Python® 2.7.

Troubleshooting

Error Codes

List of HTTP status codes and their corresponding error codes along with the messages.

Was this topic helpful?