What is InfluxDB API?
The InfluxDB API provides a simple way to interact with the database. It uses HTTP response codes, HTTP authentication, JWT Tokens, and basic authentication, and responses are returned in JSON. The following sections assume your InfluxDB instance is running on localhost port 8086 and HTTPS is not enabled.
How do I query data from InfluxDB?
To perform an InfluxQL query, send a GET request to the /query endpoint, set the URL parameter db as the target database, and set the URL parameter q as your query. You can also use a POST request by sending the same parameters either as URL parameters or as part of the body with application/x-www-form-urlencoded .