<%= render 'docs/sidebar' %>

Channels

Channels are where your application stores and retrieves any type of data. Each channel has a Private View and a Public View. The Private View is only accessible by signing into your ThingSpeak.com user account. The Public View is what other viewers will see when they visit your ThingSpeak Channel. You can have different info on each view, customize the view with Plugins, and even disable the Public View.



<%= image_tag 'channel_public_view.png', :size => '600x533' %>


Channel Views have the following features:



Channels API

To read and write to a ThingSpeak Channel, your application must make requests to the ThingSpeak API using HTTP requests. Each ThingSpeak Channel allows for 8 fields of data (both numeric and alphanumeric formats), location information, and a status update. Each entry is stored with a date and time stamp and is assigned a unique Entry ID (entry_id). After the data is stored, you can retrieve the data by time selection or by Entry ID. In addition to storing and retrieving numeric and alphanumeric data, the ThingSpeak API allows for numeric data processing such as timescaling, averaging, median, summing, and rounding. The channel feeds supports JSON, XML, and CSV formats for integration into applications.


Keywords

Here are some keywords that are used in the API. An understanding of the terms will make the API documentation easier to understand.




Base URL Addresses and Locations

Regular URL:

http://api.thingspeak.com

Secure URL:

https://api.thingspeak.com

IP Address:

http://184.106.153.149

Cross-domain XML:

http://api.thingspeak.com/crossdomain.xml



API Keys



Private / Public Channels

By default, your channel is private and requires a Read API Key to access its feed. You can make a channel public which gives other users the ability to use your feed without a Read API Key.


Write API Key

In order to update a channel, you need to know your Write API Key. If your Write API Key gets compromised you can generate a new key.

Follow these steps to get your Write API Key:



Read API Key

The Read API Key allows your application to read data from the API. You can generate multiple Read API Keys for different applications.

Follow these steps to get a Read API Key:





Rate Limits

The open service via ThingSpeak.com has a rate limit of an update per channel every 15 seconds. This limit is so that the service can remain free and give everyone a high-level of service. The API source will also be made available on GitHub so that you can run this locally or via a shared web host provider. At that point you will be able to to tweak settings for your application requirements.

Caching

Caching is implemented on JSON and XML formats on feeds. Feeds that return more than 100 entries are cached for 5 minutes. This will allow great performance for popular applications. The Last API call and feeds that specify "results=100" or less are not cached, so that you can produce real-time applications.














<%= render 'docs/channels/update' %>
<%= render 'docs/channels/feed' %>
<%= render 'docs/channels/field' %>
<%= render 'docs/channels/status' %>
<%= render 'docs/channels/public_index' %>


<%= render 'docs/channels/importer' %>