---
title: Execute queries
description: Use tools and libraries to query data stored in an InfluxDB cluster.
url: https://docs.influxdata.com/influxdb3/clustered/query-data/execute-queries/
estimated_tokens: 883
product: InfluxDB Clustered
version: clustered
---

# Execute queries

Use tools and libraries to query data stored in an InfluxDB Clustered database.

InfluxDB client libraries and Flight clients can use the Flight+gRPC protocol to query with SQL or InfluxQL and retrieve data in the [Arrow in-memory format](https://arrow.apache.org/docs/format/Columnar.html). HTTP clients can use the InfluxDB v1 `/query` REST API to query with InfluxQL and retrieve data in JSON format.

Learn how to connect to InfluxDB and query your data using the following tools:

## [Use client libraries](/influxdb3/clustered/query-data/execute-queries/client-libraries/)

Use the InfluxDB 3 client libraries with SQL or InfluxQL to query data stored in InfluxDB. InfluxDB 3 client libraries are language-specific packages that integrate with your application. Execute queries and retrieve data and metadata over the Flight+gRPC protocol, and then process data using tools in the language of your choice.

## [Use the influxctl CLI](/influxdb3/clustered/query-data/execute-queries/influxctl-cli/)

Use the `influxctl query` command to query data in InfluxDB Clustered with SQL.

```sh
influxctl query \
  --token DATABASE_TOKEN \
  --database DATABASE_NAME \
  "SELECT * FROM home"
```

[Read more](/influxdb3/clustered/query-data/execute-queries/influxctl-cli/)

## [Use the v1 query API and InfluxQL](/influxdb3/clustered/query-data/execute-queries/influxdb-v1-api/)

Use the InfluxDB v1 HTTP query API to query data in InfluxDB Clustered with InfluxQL.

```sh
curl --get https://cluster-host.com/query \
  --header "Authorization: Token DATABASE_TOKEN" \
  --data-urlencode "db=DATABASE_NAME" \
  --data-urlencode "q=SELECT * FROM home"
```

[Read more](/influxdb3/clustered/query-data/execute-queries/influxdb-v1-api/)

## [Use visualization tools](/influxdb3/clustered/query-data/execute-queries/visualization-tools/)

Use visualization tools and SQL or InfluxQL to query data stored in InfluxDB.

[query](/influxdb3/clustered/tags/query/) [sql](/influxdb3/clustered/tags/sql/) [influxql](/influxdb3/clustered/tags/influxql/)
