---
title: Execute queries
description: There are multiple ways to query data from InfluxDB including the InfluxDB UI, CLI, and API.
url: https://docs.influxdata.com/influxdb/v2/query-data/execute-queries/
estimated_tokens: 566
product: InfluxDB OSS v2
version: v2
---

# Execute queries

This page documents an earlier version of InfluxDB OSS. [InfluxDB 3 Core](/influxdb3/core/) is the latest stable version.

#### API token hashing is enabled by default in InfluxDB OSS 2.9.0

Stronger token security: tokens are stored as hashes on disk, so a copy of the database file doesn’t expose usable tokens. Existing tokens are hashed on first startup and the original strings can’t be recovered afterward — **capture any plaintext tokens you still need before you upgrade**.

For more information, see [Token hashing](/influxdb/v2/admin/tokens/#token-hashing).

There are multiple ways to execute queries with InfluxDB. Choose from the following options:

### [Query in Data Explorer](/influxdb/v2/query-data/execute-queries/data-explorer/)

Query InfluxDB using the InfluxDB user interface (UI) Data Explorer. Discover how to query data in InfluxDB 2.1 using the InfluxDB UI.

### [Query with the InfluxDB API](/influxdb/v2/query-data/execute-queries/influx-api/)

Query InfluxDB with the InfluxDB API. Discover how to query data in InfluxDB 2.1 using the InfluxDB API.

### [Query in the Flux REPL](/influxdb/v2/query-data/execute-queries/flux-repl/)

Query InfluxDB using the Flux REPL. Discover how to query data in InfluxDB 2.5 using the Flux REPL.

### [Use the influx query command](/influxdb/v2/query-data/execute-queries/influx-query/)

Query InfluxDB using the influx CLI. Discover how to query data in InfluxDB 2.1 using `influx query`.

### [Query sample data](/influxdb/v2/query-data/execute-queries/query-sample-data/)

Explore InfluxDB OSS with our sample data buckets.

[query](/influxdb/v2/tags/query/)
