# Get Block by Height

Returns block metadata (hash, timestamp, tx count, etc.) for a specific height.

## GET /v1/block/height/{height}

> Get information about a specific block by height

```json
{"openapi":"3.0.3","info":{"title":"SecretKeyLabs API","version":"1.0.0"},"tags":[{"name":"Bitcoin"}],"servers":[{"url":"https://api.secretkeylabs.io"}],"security":[{"apiKey":[]}],"components":{"securitySchemes":{"apiKey":{"type":"apiKey","name":"x-api-key","in":"header"}}},"paths":{"/v1/block/height/{height}":{"get":{"tags":["Bitcoin"],"description":"Get information about a specific block by height","parameters":[{"schema":{"minimum":0,"type":"number"},"in":"path","name":"height","required":true}],"responses":{"200":{"description":"Block information","content":{"application/json":{"schema":{"description":"Block information","type":"object","properties":{"block":{"type":"object","properties":{"height":{"type":"number"},"hash":{"type":"string"},"previousHash":{"type":"string"},"timestamp":{"type":"string"}},"required":["height","hash"]}},"required":["block"]}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"description":"Invalid input","type":"string"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"description":"Unauthorized","type":"string"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"description":"Not found","type":"string"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"description":"Rate limit exceeded","type":"string"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"description":"Internal server error","type":"string"}}}}}}}}}
```
