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

# schema.measurements() function

-   Flux 0.88.0+
-   View InfluxDB support

`schema.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

`schema` 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/)
