Main Content

Esta página se ha traducido mediante traducción automática. Haga clic aquí para ver la última versión en inglés.

API REST

Utilice llamadas a la API REST para crear y actualizar ThingSpeak™ canales y gráficos

La transferencia de estado representacional (REST) ​​es un estilo arquitectónico diseñado como un modelo de solicitud-respuesta que se comunica a través de HTTP. ThingSpeak, una plataforma IoT, utiliza las llamadas REST API GET, POST, PUT y DELETE para crear y eliminar canales, leer y escribir datos de canales y borrar los datos en un canal. Un navegador web o cliente envía una solicitud al servidor, que responde con datos en el formato solicitado. Los navegadores web utilizan esta interfaz para recuperar páginas web o enviar datos a servidores remotos.

También puede usar llamadas API REST con Actuar sobre los datos que le permiten interactuar con redes sociales, servicios web y dispositivos.

Referencia de API REST

expandir todo

Read DataRead data from all fields in channel with HTTP GET
Read FieldRead data from single field of channel with HTTP GET
Read StatusRead status field of channel with HTTP GET
Read Last EntryRead last entry in channel with HTTP GET
Read Last Field EntryRead last entry in channel field with HTTP GET
Read Last StatusRead last status of channel with HTTP GET
Write DataUpdate channel data with HTTP GET or POST
Bulk Write JSON DataWrite many entries to channel in JSON format with single HTTP POST
Bulk Write CSV DataWrite many entries to channel in CSV format with single HTTP POST
Write ImageWrite channel image with HTTP POST
Delete ImageDelete image from channel with HTTP DELETE
Read Status of Image RequestRead status of image request with HTTP GET
List Your Public ChannelsList channels for username with HTTP GET
List Your ChannelsList your channels with HTTP GET
List ChannelsList public channels with HTTP GET
Read SettingsRead channel settings with HTTP GET
Write SettingsUpdate channel settings with HTTP PUT
Create ChannelCreate new channel with HTTP POST
Clear ChannelClear all data from channel with HTTP DELETE
Delete ChannelDelete channel with HTTP DELETE
Read Last Entry AgeRead number of seconds since last entry in channel with HTTP GET
Read Last Field Entry AgeRead number of seconds since last entry in field with HTTP GET
Create ChartGenerate chart with HTTP GET
Show Channel MapShow channel location on map
Add CommandAdd TalkBack command to TalkBack queue
Get CommandGet TalkBack command from TalkBack queue
Get All CommandsGet all TalkBack commands from TalkBack queue
Get Last CommandGet last executed TalkBack command from TalkBack queue
Update CommandUpdate command in TalkBack queue
Execute CommandExecute next TalkBack command in TalkBack queue
Write Data and Execute TalkBack CommandUpdate channel data with HTTP GET or POST and execute TalkBack command
Delete CommandDelete TalkBack command from TalkBack queue
Delete All CommandsDelete all TalkBack commands in TalkBack queue
Send AlertCreate email alert with HTTP POST
Get Alert HistoryGet alerts history with HTTP GET

Temas

Solución de problemas

Error Codes

See the details of ThingSpeak REST API error messages and corresponding HTTP status codes.