---
title: v1.measurements() function
description: v1.measurements() returns a list of measurements in a specific bucket.
url: https://docs.influxdata.com/flux/v0/stdlib/influxdata/influxdb/v1/measurements/
estimated_tokens: 877
product: InfluxDB OSS v1
version: v1
---

# v1.measurements() function

-   Flux 0.16.0 – 0.88.0
-   View InfluxDB support

#### Deprecated

`v1.measurements()` was deprecated in **Flux v0.88.0** in favor of [`schema.measurements()`](/flux/v0/stdlib/influxdata/influxdb/schema/measurements/).

`v1.measurements()` returns a list of measurements in a specific bucket.

Results include a single table with a single column, `_value`.

##### Function type signature

```js
(bucket: string, ?start: A, ?stop: B) => stream[C] where C: Record
```

For more information, see [Function type signatures](/flux/v0/function-type-signatures/).

## Parameters

### bucket

(Required) Bucket to retrieve measurements from.

### start

Oldest time to include in results. Default is `-30d`.

### stop

Newest time include in results. The stop time is exclusive, meaning values with a time equal to stop time are excluded from the results. Default is `now()`.

## Examples

### Return a list of measurements in an InfluxDB bucket

```js
import "influxdata/influxdb/schema"

schema.measurements(bucket: "example-bucket")
```

#### Not supported in the Flux REPL

`v1` functions can retrieve schema information when executed within the context of InfluxDB, but not from the [Flux REPL](/influxdb/cloud/tools/repl/).

#### Related

-   [Explore your data schema with Flux](/influxdb/v2/query-data/flux/explore-schema/)
-   [SHOW MEASUREMENTS in InfluxQL](/influxdb/v1/query_language/explore-schema#show-measurements)

[metadata](/flux/v0/tags/metadata/)
