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.
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
Use the InfluxDB v3 client libraries with SQL or InfluxQL to query data stored in InfluxDB. InfluxDB v3 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
Use the influxctl query
command to query data in InfluxDB Clustered with SQL.
influxctl query \
--token DATABASE_TOKEN \
--database DATABASE_NAME \
"SELECT * FROM home"
Use the v1 query API and InfluxQL
Use the InfluxDB v1 HTTP query API to query data in InfluxDB Clustered with InfluxQL.
curl --get https://cluster-host.com/query \
--header "Authorization: Token DATABASE_TOKEN" \
--data-urlencode "db=DATABASE_NAME" \
--data-urlencode "q=SELECT * FROM home"
Use visualization tools
Use visualization tools and SQL or InfluxQL to query data stored in InfluxDB.
Was this page helpful?
Thank you for your feedback!
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for InfluxDB and this documentation. To find support, use the following resources:
Customers with an annual or support contract can contact InfluxData Support.