monerometrics-net Reorgs and orphans API

Chain reorganizations and orphan blocks this node observed live.

GitHub OpenAPI

Operations 3

GET /reorgs Detected reorganizations #
GET /reorgs/stats Reorganization statistics #
GET /orphans/recent Orphan blocks #

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-reorgs-and-orphans-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-reorgs-and-orphans-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: monerometrics Reorgs and orphans 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: Reorgs and orphans
  description: Chain reorganizations and orphan blocks this node observed live.
paths:
  /reorgs:
    get:
      summary: Detected reorganizations
      operationId: reorgs_reorgs_get
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 1000
          minimum: 1
          default: 100
          title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReorgsResponse'
          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:
      - Reorgs and orphans
      description: 'Most recent reorganizations, newest first, with depth, fork point and number of displaced transactions.


        ```bash

        curl -s "https://api.monerometrics.net/reorgs?limit=20"

        ```'
      x-codeSamples:
      - lang: Shell
        label: curl
        source: curl -s "https://api.monerometrics.net/reorgs?limit=20"
  /reorgs/stats:
    get:
      summary: Reorganization statistics
      operationId: reorgs_stats_reorgs_stats_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReorgStatsResponse'
          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:
      - Reorgs and orphans
      description: 'Count, average and maximum depth over 24h, 7d, 30d, 90d and everything recorded, with the date watching began.


        ```bash

        curl -s "https://api.monerometrics.net/reorgs/stats"

        ```'
      x-codeSamples:
      - lang: Shell
        label: curl
        source: curl -s "https://api.monerometrics.net/reorgs/stats"
  /orphans/recent:
    get:
      summary: Orphan blocks
      description: 'Orphan blocks over a time window, newest first.


        A window rather than a fixed count: how many orphans appeared in a week is

        a fact about the network, while the last twenty of them covers a period

        that changes with the network''s own behaviour.


        ```bash

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

        ```'
      operationId: orphans_recent_orphans_recent_get
      parameters:
      - name: window
        in: query
        required: false
        schema:
          type: string
          pattern: ^(24h|48h|7d|30d|90d|180d|1y|all)$
          default: 30d
          title: Window
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 500
          minimum: 1
          default: 500
          title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrphansResponse'
          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:
      - Reorgs and orphans
      x-codeSamples:
      - lang: Shell
        label: curl
        source: curl -s "https://api.monerometrics.net/orphans/recent?window=7d"
components:
  schemas:
    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
    ReorgStatsResponse:
      properties:
        windows:
          items:
            $ref: '#/components/schemas/ReorgStatsWindow'
          type: array
          title: Windows
        since:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Since
      type: object
      required:
      - windows
      title: ReorgStatsResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    OrphanBlock:
      properties:
        height:
          type: integer
          title: Height
        orphan_hash:
          type: string
          title: Orphan Hash
        canonical_hash:
          anyOf:
          - type: string
          - type: 'null'
          title: Canonical Hash
        timestamp_human:
          type: string
          format: date-time
          title: Timestamp Human
        miner_pool:
          anyOf:
          - type: string
          - type: 'null'
          title: Miner Pool
        pool_source:
          anyOf:
          - type: string
          - type: 'null'
          title: Pool Source
        merge_mining:
          anyOf:
          - type: integer
          - type: 'null'
          title: Merge Mining
        tx_count:
          type: integer
          title: Tx Count
      type: object
      required:
      - height
      - orphan_hash
      - timestamp_human
      - tx_count
      title: OrphanBlock
    OrphansResponse:
      properties:
        count:
          type: integer
          title: Count
        window:
          type: string
          title: Window
          default: 30d
        orphans:
          items:
            $ref: '#/components/schemas/OrphanBlock'
          type: array
          title: Orphans
      type: object
      required:
      - count
      - orphans
      title: OrphansResponse
    ReorgStatsWindow:
      properties:
        window:
          type: string
          title: Window
        count:
          type: integer
          title: Count
        avg_depth:
          anyOf:
          - type: number
          - type: 'null'
          title: Avg Depth
        max_depth:
          anyOf:
          - type: integer
          - type: 'null'
          title: Max Depth
        total_affected_tx:
          type: integer
          title: Total Affected Tx
          default: 0
      type: object
      required:
      - window
      - count
      title: ReorgStatsWindow
    ReorgsResponse:
      properties:
        count:
          type: integer
          title: Count
        reorgs:
          items:
            $ref: '#/components/schemas/Reorg'
          type: array
          title: Reorgs
      type: object
      required:
      - count
      - reorgs
      title: ReorgsResponse
    Reorg:
      properties:
        id:
          type: integer
          title: Id
        detected_at:
          type: string
          format: date-time
          title: Detected At
        fork_point_height:
          type: integer
          title: Fork Point Height
        depth:
          type: integer
          title: Depth
        old_chain_tip_hash:
          type: string
          title: Old Chain Tip Hash
        new_chain_tip_hash:
          type: string
          title: New Chain Tip Hash
        affected_tx_count:
          anyOf:
          - type: integer
          - type: 'null'
          title: Affected Tx Count
        notes:
          anyOf:
          - type: string
          - type: 'null'
          title: Notes
      type: object
      required:
      - id
      - detected_at
      - fork_point_height
      - depth
      - old_chain_tip_hash
      - new_chain_tip_hash
      title: Reorg
  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