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.

Channels and Charts API

Use the REST API to create ThingSpeak channels and to chart numeric data stored in channels

ThingSpeak channels store data sent to them from apps or devices. With the settings described in Channel Configurations, you can create a channel, then send and retrieve data to and from the channel. You can make your channels public to share data.

MATLAB® analysis and visualization apps enable you to explore and view your channel data. ThingSpeak Apps let you to interact with social media, web services, and devices.

Examples and How To

Channels

Create a Channel

To create a new channel, send an HTTP POST to https://api.thingspeak.com/channels.

Get Status Updates

To view a channel's status updates, send an HTTP GET, replacing CHANNEL_ID with the ID of your channel.

List Public Channels

To view a list of public channels, send an HTTP GET to https://api.thingspeak.com/channels/public.

View a Channel

To view a specific channel, send an HTTP GET to https://api.thingspeak.com/channels/CHANNEL_ID, replacing CHANNEL_ID with the ID of the channel.

Update a Channel

To update a channel, send an HTTP PUT to https://api.thingspeak.com/channels/CHANNEL_ID, replacing CHANNEL_ID with the ID of the channel.

Clear a Channel

To clear all feed data from a channel, send an HTTP DELETE to https://api.thingspeak.com/channels/CHANNEL_ID/feeds, replacing CHANNEL_ID with the ID of the channel.

Delete a Channel

To delete a channel, send an HTTP DELETE to https://api.thingspeak.com/channels/CHANNEL_ID, replacing CHANNEL_ID with the ID of your channel.

Channel Feeds

Update a Channel Feed

To update a channel feed, send an HTTP GET or POST to https://api.thingspeak.com/update.

Get a Channel Feed

To view a channel feed, send an HTTP GET to https://api.thingspeak.com/channels/CHANNEL_ID/feeds, replacing CHANNEL_ID with the ID of your channel.

Get a Channel Field Feed

To view a channel's field feed, send an HTTP GET, replacing CHANNEL_ID with the ID of your channel and FIELD_ID with the ID of your field.

Charts

Create a Chart

To create a chart, go to the following URL, replacing CHANNEL_ID and FIELD_ID with values from one of your Channels.

Embed a Chart

Use the chart API as an iframe to embed ThingSpeak charts on your web page.

Concepts

Channel Configurations

To read and write to a ThingSpeak channel, your application sends requests to the ThingSpeak server, either by issuing HTTP requests or using MATLAB functions.

Was this topic helpful?