> For the complete documentation index, see [llms.txt](https://docs.pokeb.ag/data-sdk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pokeb.ag/data-sdk/low-level-api/getpatches.md).

# getPatches

`getPatches` is the starting point for discovering what patches the dataset currently supports. It will return an array of all currently supported patch versions.

```javascript
import { getPatches } from '@pokebag/data-sdk'

async function list1XPatches() {
  const PATCHES = await getPatches()

  console.log(PATCHES.filter(patch => patch.startsWith('1.')))
}

list1XPatches()
// Logs an array of patch versions:
// ['1.1.1.1', '1.1.1.2', '1.1.1.3', etc.]
```
