Query data
/query endpoint. Use Flight+gRPC for SQL or InfluxQL queries with Arrow format output./queryQuery using the InfluxDB v1 HTTP API
Parameters
Query parameters
u
stringp
stringdb
required
stringrp
stringq
required
string;).epoch
stringns
, u
, ยต
, ms
, s
, m
, hHeader parameters
Zap-Trace-Span
stringAccept
stringapplication/json
, application/csv
, text/csv
, application/x-msgpackapplication/jsonAccept-Encoding
stringgzip
, identityidentityContent-Type
stringapplication/jsoncurl --request GET \
"https://cluster-id.a.influxdb.io/query?db=DB&q=Q" \
--header "Authorization: Bearer INFLUX_TOKEN"Responses
results
object[]A resultset object that contains the statement_id and the series array.
Except for statement_id, all properties are optional and omitted if empty. If a property is not present, it is assumed to be null.
error
stringpartial
booleanseries
object[]An array of series objects–the results of the query. A series of rows shares the same group key returned from the execution of a statement.
If a property is not present, it is assumed to be null.
columns
string[]name
stringpartial
booleantags
objectnull.values
array[]statement_id
integerstatement_id is used to combine statement results.Too many requests.
- Returns this error if a read or write request exceeds rate limits or if queriers or ingesters are resource constrained.
code
required
stringinternal error
, not implemented
, not found
, conflict
, invalid
, unprocessable entity
, empty value
, unavailable
, forbidden
, too many requests
, unauthorized
, method not allowed
, request too large
, unsupported media typeerr
stringmessage
stringop
stringWas 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 Cloud Dedicated and this documentation. To find support, use the following resources:
Customers with an annual or support contract can contact InfluxData Support.