---
updatedAt: 2025-12-22T07:05:30.000Z
agentTools:
  projectIndex: https://docs.stake.fish/llms.txt
---

# Get a global snapshot of APR for both delegators and the stake.fish validator.

Returns a breakdown of the APR's earned by delegators and the stake.fish validator. Including MEV, Inflationary and Block Production.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Solana API",
    "version": "1.0.0",
    "description": "This API facilitates the management of non-custodial Solana validators hosted by Stakefish. It equips users with essential tools and datapoints to manage a seamless staking experience at scale. Additionally, it provides historical rewards data for stake authorities."
  },
  "components": {
    "securitySchemes": {
      "apiKeyAuth": {
        "type": "apiKey",
        "name": "Authorization",
        "in": "header",
        "description": "API key required to authenticate the request, provided on the header in the format of `Authorization: <API key>`."
      }
    }
  },
  "paths": {
    "/rewards/summary": {
      "get": {
        "summary": "Get a global snapshot of APR for both delegators and the stakefish validator.",
        "tags": [
          "Rewards"
        ],
        "description": "Returns a breakdown of the APR's earned by delegators and the stakefish validator. Including MEV, Inflationary and Block Production.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "enum": [
                "7d",
                "30d"
              ],
              "default": "7d"
            },
            "in": "query",
            "name": "window"
          }
        ],
        "security": [
          {
            "apiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Staking rewards stats for all delegators and validators.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "activeDelegationsCount": {
                      "type": "number",
                      "description": "Number of active stake accounts delegated to this validator",
                      "example": 1000
                    },
                    "activeStake": {
                      "type": "string",
                      "description": "Total SOL delegated to validator (lamports)",
                      "example": "550841247156543"
                    },
                    "mevCommissionPercentage": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Validator's commission rate on MEV rewards (%)",
                      "example": "10.00"
                    },
                    "inflationCommissionPercentage": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Validator's commission rate on inflation rewards (%)",
                      "example": "5.00"
                    },
                    "stats": {
                      "type": "object",
                      "properties": {
                        "delegators": {
                          "type": "object",
                          "properties": {
                            "percentageTotal": {
                              "type": "string",
                              "description": "Total APR combining inflation reward and MEV reward after commission (%)",
                              "example": "8.77"
                            },
                            "percentageInflation": {
                              "type": "string",
                              "description": "APR from inflation rewards after commission (%)",
                              "example": "6.76"
                            },
                            "percentageMev": {
                              "type": "string",
                              "description": "APR from MEV rewards after commission (%)",
                              "example": "2.01"
                            }
                          },
                          "required": [
                            "percentageTotal",
                            "percentageInflation",
                            "percentageMev"
                          ],
                          "description": "APR earned by delegators (after commission)"
                        },
                        "validator": {
                          "type": "object",
                          "properties": {
                            "percentageTotal": {
                              "type": "string",
                              "description": "Total APR combining inflation, MEV, and block production rewards (%). Commission does not apply.",
                              "example": "11.83"
                            },
                            "percentageInflation": {
                              "type": "string",
                              "description": "APR from inflation rewards (%). Commission does not apply.",
                              "example": "6.76"
                            },
                            "percentageMev": {
                              "type": "string",
                              "description": "APR from MEV rewards (%). Commission does not apply.",
                              "example": "2.01"
                            },
                            "percentageBlockProduction": {
                              "type": "string",
                              "description": "APR from block production rewards (%). Commission does not apply.",
                              "example": "3.06"
                            }
                          },
                          "required": [
                            "percentageTotal",
                            "percentageInflation",
                            "percentageMev",
                            "percentageBlockProduction"
                          ],
                          "description": "APR earned by validator (commission does not apply)"
                        },
                        "aprType": {
                          "type": "string",
                          "enum": [
                            "backward"
                          ],
                          "description": "Calculation method: \"backward\" (historical)",
                          "example": "backward"
                        },
                        "timeWindow": {
                          "type": "string",
                          "enum": [
                            "7d",
                            "30d"
                          ],
                          "default": "7d",
                          "description": "Period used for APR calculation (e.g., \"7d\", \"30d\")",
                          "example": "7d"
                        }
                      },
                      "required": [
                        "delegators",
                        "validator",
                        "aprType",
                        "timeWindow"
                      ],
                      "description": "APR statistics object"
                    }
                  },
                  "required": [
                    "activeDelegationsCount",
                    "activeStake",
                    "mevCommissionPercentage",
                    "inflationCommissionPercentage",
                    "stats"
                  ],
                  "example": {
                    "activeDelegationsCount": 1000,
                    "activeStake": "550841247156543",
                    "mevCommissionPercentage": "10.00",
                    "inflationCommissionPercentage": "5.00",
                    "stats": {
                      "delegators": {
                        "percentageTotal": "8.77",
                        "percentageInflation": "6.76",
                        "percentageMev": "2.01"
                      },
                      "validator": {
                        "percentageTotal": "11.83",
                        "percentageInflation": "6.76",
                        "percentageMev": "2.01",
                        "percentageBlockProduction": "3.06"
                      },
                      "aprType": "backward",
                      "timeWindow": "7d"
                    }
                  },
                  "description": "Staking rewards stats for all delegators and validators."
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "example": "Invalid Base58 encoded Solana address"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "No stats found for the given stake authority"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.staging.stake.fish/v1/solana"
    },
    {
      "url": "https://api.stake.fish/v1/solana"
    }
  ],
  "tags": [
    {
      "name": "Rewards",
      "description": "Endpoints related to rewards - APR, rewards per epoch, etc."
    }
  ]
}
```