monerometrics-net Mining pools API

Pool shares, and the pool APIs the attribution relies on.

GitHub OpenAPI

Operations 3

GET /pools/distribution Pool shares #
GET /pools/latency Pool declaration delay #
GET /pools/sources Pool API reachability #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/monerometrics-net:monerometrics-net-mining-pools-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

monerometrics-net-mining-pools-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: monerometrics Mining pools API
  description: 'Free, read-only JSON API over a reorg-aware Monero index: chain reorganizations, orphan blocks, mining-pool shares with the evidence behind each attribution, network series and the Haveno market. No key, no account.


    ## Quick start


    ```bash

    curl -s https://api.monerometrics.net/status

    curl -s "https://api.monerometrics.net/pools/distribution?window=24h"

    ```


    Every endpoint below comes with a command that runs as is.


    ## Rate limit


    300 requests per minute per IP address, over a sliding window. Every response says where you stand:


    | Header | Meaning |

    |---|---|

    | `RateLimit-Limit` | requests allowed per minute |

    | `RateLimit-Remaining` | requests left in the current window |

    | `RateLimit-Reset` | seconds until a slot frees up |


    Past the limit the API answers `429` with a `Retry-After` header, in seconds.


    ## Caching


    Aggregates are recomputed once per period, so polling faster returns the same bytes. Responses carry `Cache-Control` and an `ETag`: send it back in `If-None-Match` and an unchanged answer costs an empty `304`.


    ## Errors


    Errors are JSON with a `detail` field. `400` for a range the endpoint refuses, `404` for a block or hash that is not known, `422` for a malformed parameter, `429` past the rate limit.


    ## Reading the data


    - A block''s pool is labelled by evidence: `viewkey_proof`, `pool_api`, `coinbase_heuristic` or none. A claimed attribution is not a proven one.

    - Full indexing coverage starts at height 3490000. Below it only the canonical chain is known and pool attribution is mostly absent.

    - Reorganizations and orphans only cover what this node observed live.


    ## Other interfaces


    - Changelog

    - OpenAPI schema, ReDoc

    - Model Context Protocol server: `https://api.monerometrics.net/mcp`

    - llms.txt

    - Source: github.com/nowi333/monerometrics'
  contact:
    name: monerometrics
    url: https://monerometrics.net/
    email: contact@monerometrics.net
  license:
    name: MIT
    url: https://github.com/nowi333/monerometrics/blob/main/LICENSE
  version: 0.31.8
servers:
- url: https://api.monerometrics.net
tags:
- name: Mining pools
  description: Pool shares, and the pool APIs the attribution relies on.
paths:
  /pools/distribution:
    get:
      summary: Pool shares
      operationId: pools_distribution_pools_distribution_get
      parameters:
      - name: window
        in: query
        required: false
        schema:
          type: string
          pattern: ^(1h|6h|24h|48h|7d)$
          default: 24h
          title: Window
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PoolDistributionResponse'
          headers:
            RateLimit-Limit:
              description: Requests allowed per minute for this client.
              schema:
                type: integer
            RateLimit-Remaining:
              description: Requests left in the current window.
              schema:
                type: integer
            RateLimit-Reset:
              description: Seconds until the window frees a slot.
              schema:
                type: integer
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '429':
          $ref: '#/components/responses/RateLimited'
      tags:
      - Mining pools
      description: 'Share of canonical blocks per mining pool over the window, with the Nakamoto coefficient.


        ```bash

        curl -s "https://api.monerometrics.net/pools/distribution?window=24h"

        ```'
      x-codeSamples:
      - lang: Shell
        label: curl
        source: curl -s "https://api.monerometrics.net/pools/distribution?window=24h"
  /pools/latency:
    get:
      summary: Pool declaration delay
      description: 'How long each pool takes to publicly claim a block it mined.


        Pools report their own hashrate share from these announcements. A pool that

        announces late looks smaller than it is over a short window; this says by

        how much. Resolution is bounded by our own polling interval.


        ```bash

        curl -s "https://api.monerometrics.net/pools/latency?window=7d"

        ```'
      operationId: pools_latency_pools_latency_get
      parameters:
      - name: window
        in: query
        required: false
        schema:
          type: string
          pattern: ^(24h|48h|7d|30d)$
          default: 7d
          title: Window
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PoolLatencyResponse'
          headers:
            RateLimit-Limit:
              description: Requests allowed per minute for this client.
              schema:
                type: integer
            RateLimit-Remaining:
              description: Requests left in the current window.
              schema:
                type: integer
            RateLimit-Reset:
              description: Seconds until the window frees a slot.
              schema:
                type: integer
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '429':
          $ref: '#/components/responses/RateLimited'
      tags:
      - Mining pools
      x-codeSamples:
      - lang: Shell
        label: curl
        source: curl -s "https://api.monerometrics.net/pools/latency?window=7d"
  /pools/sources:
    get:
      summary: Pool API reachability
      operationId: pools_sources_pools_sources_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PoolSourcesResponse'
          headers:
            RateLimit-Limit:
              description: Requests allowed per minute for this client.
              schema:
                type: integer
            RateLimit-Remaining:
              description: Requests left in the current window.
              schema:
                type: integer
            RateLimit-Reset:
              description: Seconds until the window frees a slot.
              schema:
                type: integer
        '429':
          $ref: '#/components/responses/RateLimited'
      tags:
      - Mining pools
      description: 'Reachability of the pool APIs used for block attribution.


        ```bash

        curl -s "https://api.monerometrics.net/pools/sources"

        ```'
      x-codeSamples:
      - lang: Shell
        label: curl
        source: curl -s "https://api.monerometrics.net/pools/sources"
components:
  schemas:
    SeriesStats:
      properties:
        samples:
          type: integer
          title: Samples
        span_days:
          anyOf:
          - type: number
          - type: 'null'
          title: Span Days
        current:
          anyOf:
          - type: number
          - type: 'null'
          title: Current
        percentile:
          anyOf:
          - type: integer
          - type: 'null'
          title: Percentile
        median:
          anyOf:
          - type: number
          - type: 'null'
          title: Median
        z_robust:
          anyOf:
          - type: number
          - type: 'null'
          title: Z Robust
        minimum:
          anyOf:
          - type: number
          - type: 'null'
          title: Minimum
        maximum:
          anyOf:
          - type: number
          - type: 'null'
          title: Maximum
        change_pct:
          anyOf:
          - type: number
          - type: 'null'
          title: Change Pct
      type: object
      required:
      - samples
      title: SeriesStats
      description: 'Where the latest value sits inside the window being displayed.


        A number on its own cannot be read: 161 XMR of resting liquidity is neither

        good nor bad until you know that four fifths of the year sat higher. Every

        field here is computed over the same window the caller asked for, so a wider

        window means a longer baseline and never a hidden one.


        `z_robust` uses the median absolute deviation rather than the standard

        deviation. These series carry occasional spikes an order of magnitude above

        the median, and a classical standard deviation would be inflated by them to

        the point of calling everything normal.'
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    PoolSource:
      properties:
        pool:
          type: string
          title: Pool
        url:
          type: string
          title: Url
        ok:
          type: boolean
          title: Ok
        blocks:
          type: integer
          title: Blocks
        checked_at:
          anyOf:
          - type: string
          - type: 'null'
          title: Checked At
      type: object
      required:
      - pool
      - url
      - ok
      - blocks
      title: PoolSource
    PoolShare:
      properties:
        pool:
          type: string
          title: Pool
        block_count:
          type: integer
          title: Block Count
        percentage:
          type: number
          title: Percentage
      type: object
      required:
      - pool
      - block_count
      - percentage
      title: PoolShare
    PoolSourcesResponse:
      properties:
        sources:
          items:
            $ref: '#/components/schemas/PoolSource'
          type: array
          title: Sources
      type: object
      required:
      - sources
      title: PoolSourcesResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PoolDistributionResponse:
      properties:
        window:
          type: string
          title: Window
        total_blocks:
          type: integer
          title: Total Blocks
        top_pool:
          anyOf:
          - type: string
          - type: 'null'
          title: Top Pool
        top_pool_share:
          type: number
          title: Top Pool Share
          default: 0.0
        nakamoto_coefficient:
          type: integer
          title: Nakamoto Coefficient
          default: 0
        distribution:
          items:
            $ref: '#/components/schemas/PoolShare'
          type: array
          title: Distribution
        stats:
          anyOf:
          - $ref: '#/components/schemas/SeriesStats'
          - type: 'null'
      type: object
      required:
      - window
      - total_blocks
      - distribution
      title: PoolDistributionResponse
    PoolLatency:
      properties:
        pool:
          type: string
          title: Pool
        blocks:
          type: integer
          title: Blocks
        median_seconds:
          type: number
          title: Median Seconds
        p90_seconds:
          type: number
          title: P90 Seconds
      type: object
      required:
      - pool
      - blocks
      - median_seconds
      - p90_seconds
      title: PoolLatency
      description: 'Retard entre l''arrivee d''un bloc sur la chaine et le moment ou son pool

        le revendique publiquement.'
    PoolLatencyResponse:
      properties:
        window:
          type: string
          title: Window
        resolution_seconds:
          type: integer
          title: Resolution Seconds
        pools:
          items:
            $ref: '#/components/schemas/PoolLatency'
          type: array
          title: Pools
          default: []
      type: object
      required:
      - window
      - resolution_seconds
      title: PoolLatencyResponse
      description: 'Delai de declaration des pools, mesure et non declare.


        Les parts de hashrate que publient les pools reposent sur leurs propres

        annonces. Celles-ci n''arrivent pas toutes a la meme vitesse : un pool lent

        parait plus petit qu''il n''est sur une fenetre courte. Cette mesure dit de

        combien, pool par pool.


        La resolution est bornee par notre propre cadence de releve, annoncee dans

        `resolution_seconds` : une valeur inferieure a ce pas ne veut rien dire.'
  responses:
    RateLimited:
      description: Rate limit exceeded. Wait `Retry-After` seconds.
      headers:
        RateLimit-Limit:
          description: Requests allowed per minute for this client.
          schema:
            type: integer
        RateLimit-Remaining:
          description: Requests left in the current window.
          schema:
            type: integer
        RateLimit-Reset:
          description: Seconds until the window frees a slot.
          schema:
            type: integer
        Retry-After:
          description: Seconds to wait before retrying.
          schema:
            type: integer
      content:
        application/json:
          example:
            detail: Too many requests