Specific epoch details
curl --request GET \
--url https://mainnet.gomaestro-api.org/v1/epochs/{epoch_no} \
--header 'api-key: <api-key>'import requests
url = "https://mainnet.gomaestro-api.org/v1/epochs/{epoch_no}"
headers = {"api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'api-key': '<api-key>'}};
fetch('https://mainnet.gomaestro-api.org/v1/epochs/{epoch_no}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://mainnet.gomaestro-api.org/v1/epochs/{epoch_no}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://mainnet.gomaestro-api.org/v1/epochs/{epoch_no}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://mainnet.gomaestro-api.org/v1/epochs/{epoch_no}")
.header("api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://mainnet.gomaestro-api.org/v1/epochs/{epoch_no}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"epoch_no": 448,
"fees": "102017010232",
"tx_count": 293800,
"blk_count": 21133,
"start_time": 1699739174,
"end_time": 1700171024,
"active_stake": "22973647279096705",
"total_rewards": "10027944051413",
"average_reward": "474515878"
},
"last_updated": {
"timestamp": "2023-11-23 13:42:12",
"block_hash": "89e2f22f2441e7545bfd7b6f01a23be3b804c7cad4eea7dd2c989a679fa0138a",
"block_slot": 109180641
}
}Epochs
Specific epoch details
Get detailed information about a specific Cardano epoch including parameters, statistics, and block count.
GET
/
epochs
/
{epoch_no}
Specific epoch details
curl --request GET \
--url https://mainnet.gomaestro-api.org/v1/epochs/{epoch_no} \
--header 'api-key: <api-key>'import requests
url = "https://mainnet.gomaestro-api.org/v1/epochs/{epoch_no}"
headers = {"api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'api-key': '<api-key>'}};
fetch('https://mainnet.gomaestro-api.org/v1/epochs/{epoch_no}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://mainnet.gomaestro-api.org/v1/epochs/{epoch_no}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://mainnet.gomaestro-api.org/v1/epochs/{epoch_no}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://mainnet.gomaestro-api.org/v1/epochs/{epoch_no}")
.header("api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://mainnet.gomaestro-api.org/v1/epochs/{epoch_no}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"epoch_no": 448,
"fees": "102017010232",
"tx_count": 293800,
"blk_count": 21133,
"start_time": 1699739174,
"end_time": 1700171024,
"active_stake": "22973647279096705",
"total_rewards": "10027944051413",
"average_reward": "474515878"
},
"last_updated": {
"timestamp": "2023-11-23 13:42:12",
"block_hash": "89e2f22f2441e7545bfd7b6f01a23be3b804c7cad4eea7dd2c989a679fa0138a",
"block_slot": 109180641
}
}Authorizations
Project API Key
Path Parameters
Epoch number to return information about
Response
Information about the requested epoch
Timestamped response. Returns the endpoint response data along with the chain-tip of the indexer, which details at which point in the chain's history the data was correct as-of.
Was this page helpful?

