Blocks by Timestamp

Fetches the first block before or after a given timestamp. Returns the block’s number and on-chain timestamp.

Authentication

Authorizationstring
An API key that will be supplied in a named header.

Path parameters

apiKeystringRequiredDefaults to docs-demo
For higher throughput, [create your own API key](https://dashboard.alchemy.com/signup)

Query parameters

networkslist of stringsRequired
Array of networks to query on. The response will be an array with one block per network. Find network enums [here](https://dashboard.alchemy.com/chains)
timestampstringRequiredDefaults to 2025-02-28T19:38:57Z
Unix or ISO timestamp
directionenumRequiredDefaults to AFTER
Return the first block "BEFORE" or "AFTER" the provided timestamp
Allowed values:

Response

Successful response
datalist of objects
List of blocks

Errors