ThingSpeak

App · 9 actions

Read sensor feeds and status messages, write measurements, and watch for new ThingSpeak entries.

Actions

ActionWhat it does
Get age of latest entryGet age of latest entry.
Get age of latest field entryGet age of latest field entry.
Get latest channel entryGet latest channel entry.
Get latest channel field entryGet latest channel field entry.
Get latest channel statusGet latest channel status.
List channel feed entriesList channel feed entries.
List channel field entriesList channel field entries.
List channel status messagesList channel status messages.
Write channel entryWrite channel entry.

Get age of latest entry

Get age of latest entry.

Inputs

None.

Outputs

dataobject
The response from ThingSpeak.
Example output
{
  "data": {
    "last_data_age": "example",
    "last_data_age_units": "example"
  }
}

Get age of latest field entry

Get age of latest field entry.

Inputs

Field numberfield_numbertextRequired
Channel field to read.One of: 1, 2, 3, 4, 5, 6, 7, 8.

Outputs

dataobject
The response from ThingSpeak.
Example output
{
  "data": {
    "last_data_age": "example",
    "last_data_age_units": "example"
  }
}

Get latest channel entry

Get latest channel entry.

Inputs

None.

Outputs

dataobject
The response from ThingSpeak.
Example output
{
  "data": {
    "created_at": "example",
    "entry_id": 1,
    "field1": "example",
    "field2": "example",
    "field3": "example",
    "field4": "example",
    "field5": "example",
    "field6": "example",
    "field7": "example",
    "field8": "example",
    "status": "example"
  }
}

Get latest channel field entry

Get latest channel field entry.

Inputs

Field numberfield_numbertextRequired
Channel field to read.One of: 1, 2, 3, 4, 5, 6, 7, 8.

Outputs

dataobject
The response from ThingSpeak.
Example output
{
  "data": {
    "created_at": "example",
    "entry_id": 1,
    "field1": "example",
    "field2": "example",
    "field3": "example",
    "field4": "example",
    "field5": "example",
    "field6": "example",
    "field7": "example",
    "field8": "example",
    "status": "example"
  }
}

Get latest channel status

Get latest channel status.

Inputs

None.

Outputs

dataobject
The response from ThingSpeak.
Example output
{
  "data": {
    "created_at": "example",
    "entry_id": 1,
    "field1": "example",
    "field2": "example",
    "field3": "example",
    "field4": "example",
    "field5": "example",
    "field6": "example",
    "field7": "example",
    "field8": "example",
    "status": "example"
  }
}

List channel feed entries

List channel feed entries.

Inputs

Resultsresultsnumber
Number of recent entries to return.From 1 to 8000.
Start timestart_timedate and time
Only entries added on or after this UTC time.
End timeend_timedate and time
Only entries added on or before this UTC time.

Outputs

dataobject
The response from ThingSpeak.
Example output
{
  "data": {
    "channel": {
      "created_at": "example",
      "description": "example",
      "id": 1,
      "last_entry_id": 1,
      "name": "example",
      "updated_at": "example"
    },
    "feeds": [
      {
        "created_at": "example",
        "entry_id": 1,
        "field1": "example",
        "field2": "example",
        "field3": "example",
        "field4": "example",
        "field5": "example",
        "field6": "example",
        "field7": "example",
        "field8": "example",
        "status": "example"
      }
    ]
  }
}

List channel field entries

List channel field entries.

Inputs

Field numberfield_numbertextRequired
Channel field to read.One of: 1, 2, 3, 4, 5, 6, 7, 8.
Resultsresultsnumber
Number of recent entries to return.From 1 to 8000.
Start timestart_timedate and time
Only entries added on or after this UTC time.
End timeend_timedate and time
Only entries added on or before this UTC time.

Outputs

dataobject
The response from ThingSpeak.
Example output
{
  "data": {
    "channel": {
      "created_at": "example",
      "description": "example",
      "id": 1,
      "last_entry_id": 1,
      "name": "example",
      "updated_at": "example"
    },
    "feeds": [
      {
        "created_at": "example",
        "entry_id": 1,
        "field1": "example",
        "field2": "example",
        "field3": "example",
        "field4": "example",
        "field5": "example",
        "field6": "example",
        "field7": "example",
        "field8": "example",
        "status": "example"
      }
    ]
  }
}

List channel status messages

List channel status messages.

Inputs

Resultsresultsnumber
Number of recent entries to return.From 1 to 8000.
Start timestart_timedate and time
Only entries added on or after this UTC time.
End timeend_timedate and time
Only entries added on or before this UTC time.

Outputs

dataobject
The response from ThingSpeak.
Example output
{
  "data": {
    "channel": {
      "created_at": "example",
      "description": "example",
      "id": 1,
      "last_entry_id": 1,
      "name": "example",
      "updated_at": "example"
    },
    "feeds": [
      {
        "created_at": "example",
        "entry_id": 1,
        "field1": "example",
        "field2": "example",
        "field3": "example",
        "field4": "example",
        "field5": "example",
        "field6": "example",
        "field7": "example",
        "field8": "example",
        "status": "example"
      }
    ]
  }
}

Write channel entry

Write channel entry.

Inputs

Field1field1text
Value to store in channel field 1.
Field2field2text
Value to store in channel field 2.
Field3field3text
Value to store in channel field 3.
Field4field4text
Value to store in channel field 4.
Field5field5text
Value to store in channel field 5.
Field6field6text
Value to store in channel field 6.
Field7field7text
Value to store in channel field 7.
Field8field8text
Value to store in channel field 8.
Statusstatustext
Status message to attach to the entry.
Created atcreated_atdate and time
Measurement time. Leave empty to use the current time.

Outputs

dataobject
The response from ThingSpeak.
Example output
{
  "data": {
    "created_at": "example",
    "entry_id": 1,
    "field1": "example",
    "field2": "example",
    "field3": "example",
    "field4": "example",
    "field5": "example",
    "field6": "example",
    "field7": "example",
    "field8": "example",
    "status": "example"
  }
}

On this page