> For the complete documentation index, see [llms.txt](https://stake-docs.solblaze.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://stake-docs.solblaze.org/developers/other-apis.md).

# Other APIs

## Gets the average APY of BlazeStake over the past few epochs

<mark style="color:blue;">`GET`</mark> `stake.solblaze.org/api/v1/apy`

{% tabs %}
{% tab title="200: OK success - returns APY" %}

```javascript
{
    "success": true,
    "apy": ...
}
```

{% endtab %}
{% endtabs %}

## Gets the number of validators in the BlazeStake standard delegation

<mark style="color:blue;">`GET`</mark> `stake.solblaze.org/api/v1/validator_count`

{% tabs %}
{% tab title="200: OK success - returns count" %}

```javascript
{
    "success": true,
    "total": ...
}
```

{% endtab %}
{% endtabs %}

## Gets the set of validators in the BlazeStake standard delegation

<mark style="color:blue;">`GET`</mark> `stake.solblaze.org/api/v1/validator_set`

{% tabs %}
{% tab title="200: OK success - returns the validators in the standard delegation" %}

```javascript
{
    success: "true",
    "vote_accounts": [...]
}
```

{% endtab %}
{% endtabs %}

## Updates the stake pool at the beginning of the epoch from the TypeScript SDK

<mark style="color:blue;">`GET`</mark> `stake.solblaze.org/api/v1/update_pool`

This API endpoint is a crank that is usually automatically called to update the stake pool if needed at the beginning of every epoch, but it can be called manually just in case.

#### Query Parameters

| Name    | Type   | Description                                              |
| ------- | ------ | -------------------------------------------------------- |
| network | String | The cluster to use when updating the pool (mainnet-beta) |

{% tabs %}
{% tab title="200: OK success - updated the stake pool" %}

```javascript
{
    "success": true
}
```

{% endtab %}

{% tab title="200: OK error - failed to update the stake pool" %}

```javascript
{
    "success": false
}
```

{% endtab %}
{% endtabs %}
