31 lines
1.3 KiB
Markdown
31 lines
1.3 KiB
Markdown
---
|
|
title: InfluxDB v2 API
|
|
description: >
|
|
The InfluxDB v2 API provides a programmatic interface for interactions with InfluxDB.
|
|
Access the InfluxDB API using the `/api/v2/` endpoint.
|
|
menu: influxdb_2_2_ref
|
|
weight: 3
|
|
influxdb/v2.2/tags: [api]
|
|
aliases:
|
|
- /influxdb/v2.2/concepts/api/
|
|
---
|
|
|
|
The InfluxDB v2 API provides a programmatic interface for interactions with InfluxDB.
|
|
Access the InfluxDB API using the `/api/v2/` endpoint.
|
|
|
|
## InfluxDB v2 API documentation
|
|
<a class="btn" href="/influxdb/v2.2/api/">InfluxDB OSS {{< current-version >}} API documentation</a>
|
|
|
|
#### View InfluxDB API documentation locally
|
|
InfluxDB API documentation is built into the `influxd` service and represents
|
|
the API specific to the current version of InfluxDB.
|
|
To view the API documentation locally, [start InfluxDB](/influxdb/v2.2/get-started/#start-influxdb)
|
|
and visit the `/docs` endpoint in a browser ([localhost:8086/docs](http://localhost:8086/docs)).
|
|
|
|
## InfluxDB v1 compatibility API documentation
|
|
The InfluxDB v2 API includes [InfluxDB 1.x compatibility endpoints](/influxdb/v2.2/reference/api/influxdb-1x/)
|
|
that work with InfluxDB 1.x client libraries and third-party integrations like
|
|
[Grafana](https://grafana.com) and others.
|
|
|
|
<a class="btn" href="/influxdb/v2.2/api/v1-compatibility/">View full v1 compatibility API documentation</a>
|