Skip to content

Get Block Number over Interval

GET /api/block/interval/v1
NameInTypeRequiredDescription
timestamp_startqueryintegerStart of timestamp range in Unix timestamp (seconds since 1970-01-01) (inclusive)
timestamp_endqueryintegerEnd of timestamp range in Unix timestamp (seconds since 1970-01-01) (inclusive)
frequencyqueryDefault by_day
pagequeryintegerThe page number of the response.
limitqueryintegerThe number of responses. max is 200,
orderquery

Media: application/json

Schema
{
"type": "object",
"required": [
"pagination",
"data"
],
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"block_number",
"timestamp"
],
"properties": {
"block_number": {
"type": "integer",
"format": "int32"
},
"timestamp": {
"type": "string",
"format": "date-time"
}
}
}
},
"pagination": {
"type": "object",
"required": [
"current_page",
"per_page",
"total_items",
"total_pages"
],
"properties": {
"current_page": {
"type": "integer",
"format": "int32"
},
"next_page": {
"type": "integer",
"format": "int32",
"nullable": true
},
"per_page": {
"type": "integer",
"format": "int32"
},
"prev_page": {
"type": "integer",
"format": "int32",
"nullable": true
},
"total_items": {
"type": "integer",
"format": "int32"
},
"total_pages": {
"type": "integer",
"format": "int32"
}
}
}
}
}
Examples
{
"Result": {
"value": "{\n \"pagination\": {\n \"current_page\": 1,\n \"per_page\": 50,\n \"total_items\": 5,\n \"total_pages\": 1,\n \"next_page\": null,\n \"prev_page\": null\n },\n \"data\": [\n {\n \"block_number\": 5007431,\n \"timestamp\": \"2025-02-25T23:59:48Z\"\n },\n {\n \"block_number\": 5000231,\n \"timestamp\": \"2025-02-24T23:59:48.001Z\"\n },\n {\n \"block_number\": 4993036,\n \"timestamp\": \"2025-02-23T23:59:48Z\"\n },\n {\n \"block_number\": 4985836,\n \"timestamp\": \"2025-02-22T23:59:48Z\"\n },\n {\n \"block_number\": 4978636,\n \"timestamp\": \"2025-02-21T23:59:48Z\"\n }\n ]\n}"
}
}

Interactive request console coming soon. In the meantime you can use the OpenAPI spec with any client (Insomnia, Bruno, Scalar, curl).

All Taostats API requests require an Authorization header containing your API key. See Getting Started.