Execute queries
Use tools and libraries to query data stored in an InfluxDB Cloud Serverless bucket.
InfluxDB v3 supports the following APIs and languages for querying data:
- Flight+RPC with SQL or InfluxQL. Use InfluxDB client libraries and Flight+RPC clients to query with SQL or InfluxQL and retrieve data in Arrow in-memory format.
- Flight SQL with SQL or InfluxQL. Use Flight SQL clients to query with SQL or InfluxQL and retrieve data in Arrow in-memory format.
- HTTP
/query
endpoint for InfluxDB v1 compatibility when you bring workloads and code from v1.x to v3. Use the/query
endpoint with InfluxQL and tools such as Telegraf, HTTP clients, and InfluxDB v1 client libraries to query and retrieve data in JSON or CSV format.
/api/v2/query endpoint can’t query InfluxDB v3
InfluxDB Cloud Serverless doesn’t support the InfluxDB v2 HTTP /api/v2/query
endpoint and isn’t optimized for the Flux query language.
Use SQL or InfluxQL to query data stored in InfluxDB v3.
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 InfluxDB Data Explorer to query data
Query your data in the InfluxDB user interface (UI) Data Explorer.
Use the v1 query API and InfluxQL
Use the InfluxDB v1 HTTP query API to query data in InfluxDB Cloud Serverless with InfluxQL.
curl https://cloud2.influxdata.com/query \
--header "Authorization: Token API_TOKEN" \
--data-urlencode "db=BUCKET_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.