---
title: Ping
description: Check the availability of an InfluxDB OSS v2 instance.
url: https://docs.influxdata.com/influxdb/v2/api/ping/
estimated_tokens: 1066
product: InfluxDB OSS v2
version: v2
---

[Download InfluxDB API Spec](/openapi/influxdb-oss-v2-api.yml)

Check the availability of an InfluxDB OSS v2 instance.

GET `/ping`

### Get the status of the instance

Retrieves the status and InfluxDB version of the instance.

Use this endpoint to monitor uptime for the InfluxDB instance. The response returns a HTTP `204` status code to inform you the instance is available.

#### InfluxDB Cloud

-   Isn’t versioned and doesn’t return `X-Influxdb-Version` in the headers.

#### Related guides

-   [Influx ping](/influxdb/v2/reference/cli/influx/ping/)

Example request [Ask AI about this](#)

```sh
curl --request GET \
  "http://localhost:8086/ping" \
  --header "Authorization: Bearer INFLUX_TOKEN"
```

#### Responses

204 Success. Headers contain InfluxDB version information.

HEAD `/ping`

### Get the status of the instance

Returns the status and InfluxDB version of the instance.

Use this endpoint to monitor uptime for the InfluxDB instance. The response returns a HTTP `204` status code to inform you the instance is available.

#### InfluxDB Cloud

-   Isn’t versioned and doesn’t return `X-Influxdb-Version` in the headers.

#### Related guides

-   [Influx ping](/influxdb/v2/reference/cli/influx/ping/)

Example request [Ask AI about this](#)

```sh
curl --request HEAD \
  "http://localhost:8086/ping" \
  --header "Authorization: Bearer INFLUX_TOKEN"
```

#### Responses

204 Success. Headers contain InfluxDB version information.
