Execute queries
Use tools and libraries to query data from an InfluxDB 3 Core 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 the v3 query API
Use SQL or InfluxQL and the InfluxDB v3 HTTP query API to query data in InfluxDB 3 Core.
curl --get http://localhost:8181/api/v3/query_sql \ --header "Authorization: Token AUTH_TOKEN" \ --data-urlencode "db=DATABASE_NAME" \ --data-urlencode "q=SELECT * FROM home"
Use the influxdb3 CLI
Use the influxdb3 query
command to query data in InfluxDB 3 Core with SQL.
influxdb3 query \ --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 3 Core with InfluxQL.
curl --get http://localhost:8181/query \ --header "Authorization: Token AUTH_TOKEN" \ --data-urlencode "db=DATABASE_NAME" \ --data-urlencode "q=SELECT * FROM home"
Execute SQL queries with ODBC
Use the Arrow Flight SQL ODBC driver to execute SQL queries against InfluxDB 3 Core from ODBC-compatible applications and programming languages.
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 3 Core and this documentation. To find support, use the following resources:
Customers with an annual or support contract can contact InfluxData Support.