---
title: buckets() function
description: The `buckets()` function returns a list of buckets in the organization.
aliases:
  - /v2.0/reference/flux/functions/inputs/buckets
menu:
  v2_0_ref:
    name: buckets
    parent: built-in-inputs
weight: 401
---

The `buckets()` function returns a list of buckets in the organization.

_**Function type:** Input_

```js
buckets()
```

<hr style="margin-top:4rem"/>

##### Related InfluxQL functions and statements:
[SHOW DATABASES](https://docs.influxdata.com/influxdb/latest/query_language/schema_exploration/#show-databases)
