---
title: InfluxDB HTTP API
description: >
The InfluxDB HTTP API provides a programmatic interface for interactions with
InfluxDB, such as writing and querying data.
Access the InfluxDB API using the `/api/v2/write` or InfluxDB v1 endpoints.
menu:
influxdb3_clustered:
parent: Reference
name: InfluxDB HTTP API
weight: 127
influxdb3/clustered/tags: [api]
---
The InfluxDB HTTP API provides a programmatic interface for interactions with
{{% product-name %}}, such as writing and querying data.
Access the InfluxDB HTTP API using the `/api/v2/` or InfluxDB v1 endpoints.
## InfluxDB v2 Compatibility API reference documentation
InfluxDB v2 API for {{% product-name %}}
The API reference describes requests and responses for InfluxDB v2-compatible
endpoints that work with {{% product-name %}} and with InfluxDB 2.x client
libraries and third-party integrations.
## InfluxDB v1 Compatibility API reference documentation
InfluxDB v1 API for {{% product-name %}}
The API reference describes requests and responses for InfluxDB v1-compatible `/write` and `/query` endpoints that work with {{% product-name %}} and with InfluxDB 1.x client libraries and third-party integrations.