# GET /v4/roots/

_Merkl API_

Returns the last merkl roots recorded before the provided timestamps. Use chainId and timestamps query parameters to filter results.

### Query parameters

- `page` (string | number)
- `items` (string | number)
- `chainId` (string | number) _(required)_
- `fromTimestamp` (string) _(required)_
- `toTimestamp` (string) _(required)_

## Example request

```bash
curl -X GET "https://api.merkl.xyz//v4/roots/?chainId=<chainId>&fromTimestamp=<fromTimestamp>&toTimestamp=<toTimestamp>" \
  -H "x-api-key: YOUR_API_KEY"
```