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.

View a Channel

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

Sample GET request:

The response is a web page that shows the channel 9.

View Metadata of a Channel

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

Valid parameters:

  • api_key (string) - User’s API key. This key is different from a channel write or read API key, and can be found in your profile page. The private details of a channel such as, write or read API keys of the channel and license ID associated with the channel, are shown if you provide this key. While this key is optional for a public channel, you have to provide this key if your channel is private.

JSON

Sample GET request to view metadata of a specific public channel as a JSON object:

The response is a JSON object of the public channel 9.

{
  "id": 9,
  "name": "my_house",
  "description": "Netduino Plus connected to sensors around the house",
  "latitude": "40.44",
  "longitude": "-79.9965",
  "created_at": "2010-12-14T01:20:06Z",
  "elevation": "",
  "last_entry_id": 11684395,
  "public_flag': true
  "url": ""
  "ranking": 100,
  "tags": [
    {
      "id": 9,
      "name": "temp"
    },
    {
      "id": 25,
      "name": "light"
    },
    {
      "id": 3,
      "name": "sensor"
    }
  ]
}

XML

Sample GET request to view metadata of a specific public channel as an XML object:

The response is an XML object of the public channel 9.

<?xml version="1.0" encoding="UTF-8"?>
<channel>
    <id type="integer">9</id>
    <name>my_house</name>
    <description> Netduino Plus connected to sensors around the house.</description>
    <latitude type="decimal">40.5</latitude>
    <longitude type="decimal">-79.9965</longitude>
    <created-at type="dateTime">2010-12-14T01:20:06Z</created-at>
    <elevation></elevation>
    <last-entry-id type="integer">11684395</last-entry-id>
    <public_flag>true</public_flag>
    <url></url>
    <ranking type="integer">100</ranking>
    <tags type="array">
       <tag>
          <id type="integer">9</id>
          <name>temp</name>
      </tag>
      <tag>
         <id type="integer">25</id>
         <name>light</name>
      </tag>
      <tag>
         <id type="integer">3</id>
         <name>sensor<name>
      </tag>
    </tags>
</channel>

Related Topics

Was this topic helpful?