--- sidebar_label: REST title: REST description: Insert data using REST API --- import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; In this section we will explain how to query data from TDengine cloud service using REST API. ## Config Run this command in your terminal to save the TDengine cloud token and URL as variables: ```bash export TDENGINE_CLOUD_TOKEN="" export TDENGINE_CLOUD_URL="" ``` ```bash set TDENGINE_CLOUD_TOKEN="" set TDENGINE_CLOUD_URL="" ``` ```powershell $env:TDENGINE_CLOUD_TOKEN="" $env:TDENGINE_CLOUD_URL="" ``` ## Query Following command below show how to query data into from table `ins_databases` of the database `information_schema` via the command line utility `curl`. ```bash curl -L \ -d "select name, ntables, status from information_schema.ins_databases;" \ $TDENGINE_CLOUD_URL/rest/sql/test?token=$TDENGINE_CLOUD_TOKEN ``` Please refer to [REST-API](https://docs.tdengine.com/reference/rest-api/) for detailed documentation.