# How do I get a list of all the tags in the vault?
To retrieve a list of all the tags referenced in the vault, you can use the `getAllTags()` function exported from the Obsidian API.
## Sample Code
```ts
import { getAllTags } from 'obsidian';
const tags = getAllTags();
```