SQL
Execute a read-only SQL query against ClickHouse
post/v0/sql
Request body
Example request
{
"query": "SELECT * FROM markets LIMIT 10"
}Response
Query executed successfully
Example response
{
"data": [
{
"column1": "value1"
}
],
"meta": {
"columns": [
{
"name": "column1",
"type": "String"
}
],
"rows": 1,
"statistics": {
"elapsed": 0.005,
"rows_read": 100,
"bytes_read": 5000
}
}
}