Main Content

Questa pagina è stata tradotta con la traduzione automatica. Fai clic qui per vedere l’originale in inglese.

Read Settings

Lire les paramètres du canal avec HTTP GET

Requête

Méthode HTTP

GET

URL

https://api.thingspeak.com/channels/<channel_id>.<format>

Paramètres d'URL

NomDescription

<channel_id>

(Required) Channel ID for the channel of interest.

<format>

(Required) Format for the HTTP response, specified as json or xml.

Example: https://api.thingspeak.com/channels/266256.json

Paramètres de chaîne de requête

NomDescriptionType de valeur
api_key

(Obligatoire pour les canaux privés) Spécifiez la clé API utilisateur, que vous pouvez trouver dans votre profile. Cette clé est différente des clés d'API de canal .

chaîne de caractère

Réponse

Succès

Code HTTP status

200 OK

Corps

 Exemple JSON

 Exemple XML

Erreur

For the full list, see Codes d'erreur.

Exemples

Afficher les paramètres du canal

You can use your web browser to complete GET HTTP requests to the RESTful API for ThingSpeak™.

To see the format for an HTTP response, copy the following URL to the address bar of your web browser, changing <channel_ID> to your channel ID and <XXXXXXXXXXXXXXXX> to your User API Key, which is found in Account > My Profile.

https://api.thingspeak.com/channels/<channel_ID>.json?api_key=<XXXXXXXXXXXXXXXX>

La réponse est un objet JSON des paramètres du canal , comme indiqué dans la section réponse.