# GET /v4/block-timestamp/block

_Merkl API_

Get the closest block number to a given timestamp on a specific chain

### Query parameters

- `chainId` (number) _(required)_
- `timestamp` (number) _(required)_

## Responses

- **200** Response for status 200

## Example request

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