Bitview Fees API

Fee estimation and projected mempool blocks. *[Mempool.space](https://mempool.space/docs/api/rest) compatible.*

GitHub OpenAPI

Operations 3

GET /api/v1/fees/mempool-blocks Projected mempool blocks #
GET /api/v1/fees/precise Recommended fee rates (precise) #

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/bitview-space:bitview-space-fees-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

bitview-space-fees-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Bitview Fees API
  description: 'Bitview is a free, open-source Bitcoin data server: on-chain metrics, blocks, mempool and mining data, with charts and an API, at bitview.space or beside your own Bitcoin Core node.


    API for querying Bitcoin blockchain data, mempool state, and on-chain series.


    ### Features


    - **Mempool.space compatible**: Blocks, transactions, addresses, mining, fees, and mempool endpoints match the mempool.space REST API

    - **Series**: Thousands of on-chain time-series across multiple indexes (date, block height, etc.)

    - **Multiple formats**: JSON and CSV output

    - **For LLMs**: `/llms.txt` for discovery, `/api.json` a compact custom summary of this spec for reading (not OpenAPI); build tools from `/openapi.json`

    - **MCP**: Stateless, read-only access to these operations at mcp.bitview.space, with no authentication required


    ### Quick start


    ```bash

    curl -s https://bitview.space/api/blocks/tip/height

    curl -s https://bitview.space/api/v1/fees/recommended

    curl -s https://bitview.space/api/mempool

    curl -s https://bitview.space/api/series/search?q=price

    ```


    ### Errors


    Errors use `application/problem+json`:


    ```json

    {

    "error": {

    "type": "not_found",

    "code": "series_not_found",

    "message": "''foo'' not found, did you mean ''bar''? What became of it: /changes/?id=foo",

    "doc_url": "/api"

    }

    }

    ```


    - **`type`**: Error category, following the status — `invalid_request` (4xx other than 404), `not_found` (404), `unavailable` (503), `timeout` (504), or `internal` (other 5xx); see the `ErrorType` schema

    - **`code`**: Machine-readable error code (e.g. `invalid_address`, `series_not_found`, `weight_exceeded`); see the `ErrorCode` schema


    ### Client Libraries


    - JavaScript

    - Python

    - Rust

    - MCP


    ### Links


    - GitHub

    - Bitview Studio - Charts of any series, built on this API'
  termsOfService: https://bitview.space/terms/
  contact:
    name: Bitview
    url: https://bitview.space/support/
    email: support@bitview.space
  license:
    name: MIT
    url: https://github.com/bitcoinresearchkit/mono/blob/main/LICENSE
  version: v0.13.0
  x-privacy-policy: https://bitview.space/privacy/
tags:
- name: Fees
  description: 'Fee estimation and projected mempool blocks.


    *Mempool.space compatible.*'
paths:
  /api/v1/fees/mempool-blocks:
    get:
      tags:
      - Fees
      summary: Projected mempool blocks
      description: 'Projected blocks for fee estimation, up to eight as mempool.space''s. Every block, block 0 the next, is packed as Core''s block assembler packs (whole CPFP chunks by feerate, in dependency order, within Core''s default weight and sigop budgets), ranked by the node''s signed modified fees (including `prioritisetransaction`), with paid fees in the statistics. The last holds whatever is left: more than a block when the mempool is busy. `GET /api/mempool-blocks/{index}` serves each with its transactions, except such a last one.


        *Mempool.space docs*'
      operationId: get_mempool_blocks
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/MempoolBlock'
        '304':
          description: 'Not modified: the request''s validator matches the current representation'
        '400':
          description: Invalid request parameters
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '500':
          description: Internal server error
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '503':
          description: Service temporarily unavailable
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '504':
          description: Request deadline exceeded
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
  /api/v1/fees/recommended:
    get:
      tags:
      - Fees
      summary: Recommended fees
      description: 'Recommended fee rates by confirmation target, in whole sat/vB.


        *Mempool.space docs*'
      operationId: get_recommended_fees
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecommendedFees'
        '304':
          description: 'Not modified: the request''s validator matches the current representation'
        '400':
          description: Invalid request parameters
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '500':
          description: Internal server error
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '503':
          description: Service temporarily unavailable
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '504':
          description: Request deadline exceeded
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
      x-mcp-ignore: true
  /api/v1/fees/precise:
    get:
      tags:
      - Fees
      summary: Recommended fee rates (precise)
      description: 'Recommended fee rates by confirmation target, with up to three decimal places and support for sub-sat/vB rates.


        *Mempool.space docs*'
      operationId: get_precise_fees
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PreciseRecommendedFees'
        '304':
          description: 'Not modified: the request''s validator matches the current representation'
        '400':
          description: Invalid request parameters
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '500':
          description: Internal server error
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '503':
          description: Service temporarily unavailable
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
        '504':
          description: Request deadline exceeded
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
components:
  schemas:
    Sats:
      description: An amount in satoshis (100,000,000 to a bitcoin).
      type: integer
      format: uint64
      minimum: 0
      examples:
      - 0
      - 546
      - 10000
      - 100000000
      - 2100000000000000
    ErrorDetail:
      type: object
      properties:
        type:
          description: Error category, following the HTTP status
          allOf:
          - $ref: '#/components/schemas/ErrorType'
        code:
          description: Machine-readable error code
          allOf:
          - $ref: '#/components/schemas/ErrorCode'
        message:
          description: Human-readable description
          type: string
        doc_url:
          description: Link to API documentation
          type: string
          format: uri-reference
      required:
      - type
      - code
      - message
      - doc_url
    RecommendedFees:
      description: Recommended fee rates in whole sat/vB (`/api/v1/fees/recommended`)
      type: object
      properties:
        fastestFee:
          description: Fee rate for fastest confirmation (next block)
          type: integer
          format: uint64
          minimum: 0
        halfHourFee:
          description: Fee rate for confirmation within ~30 minutes (second projected block)
          type: integer
          format: uint64
          minimum: 0
        hourFee:
          description: Fee rate for confirmation within ~1 hour (third projected block)
          type: integer
          format: uint64
          minimum: 0
        economyFee:
          description: 'Smoothed, fullness-adjusted third-block fee estimate, bounded by `minimumFee` and twice

            it; `minimumFee` when no third projected block exists'
          type: integer
          format: uint64
          minimum: 0
        minimumFee:
          description: The node's current mempool minimum fee rate, rounded up to a whole sat/vB (at least 1)
          type: integer
          format: uint64
          minimum: 0
      required:
      - fastestFee
      - halfHourFee
      - hourFee
      - economyFee
      - minimumFee
    MempoolBlock:
      description: Block info in a mempool.space like format for fee estimation.
      type: object
      properties:
        blockSize:
          description: 'Sum of the transactions'' serialized sizes in bytes (witness + non-witness), without header

            or coinbase.'
          type: integer
          format: uint64
          minimum: 0
          examples:
          - 1604417
        blockVSize:
          description: 'The transactions'' weight over 4, unrounded (mempool.space''s): the block''s virtual size'
          type: number
          format: double
          examples:
          - 998368.25
        nTx:
          description: Number of transactions in the projected block
          type: integer
          format: uint32
          minimum: 0
          examples:
          - 863
        totalFees:
          description: Total fees in satoshis
          examples:
          - 8875608
          allOf:
          - $ref: '#/components/schemas/Sats'
        medianFee:
          description: Median fee rate in sat/vB
          examples:
          - 10.5
          allOf:
          - $ref: '#/components/schemas/FeeRate'
        feeRange:
          description: 'Vsize-weighted percentiles of the transactions'' CPFP chunk fee rates, in sat/vB:

            [0, 10, 25, 50, 75, 90, 100] for the first block, [5, 10, 25, 50, 75, 90, 95] for the

            later projected ones'
          type: array
          items:
            $ref: '#/components/schemas/FeeRate'
          minItems: 7
          maxItems: 7
          examples:
          - - 1.0
            - 2.42
            - 8.1
            - 10.14
            - 11.05
            - 12.04
            - 302.11
      required:
      - blockSize
      - blockVSize
      - nTx
      - totalFees
      - medianFee
      - feeRange
    ErrorCode:
      type: string
      enum:
      - not_found
      - invalid_address
      - invalid_network
      - unsupported_type
      - no_series
      - series_unsupported_index
      - weight_exceeded
      - too_many_utxos
      - limit_exceeded
      - unknown_after_txid
      - unknown_address
      - unknown_txid
      - unknown_pool
      - out_of_range
      - unindexable_date
      - no_data
      - series_not_found
      - mempool_not_available
      - state_updating
      - internal_error
      - bad_request
      - overloaded
      - timeout
      - method_not_allowed
    FeeRate:
      description: Fee rate stored in milli-sat/vB and exposed as sat/vB.
      type: number
      format: double
      examples:
      - 0.1
      - 1.0
      - 2.5
      - 10.14
      - 25.0
      - 302.11
    ErrorType:
      description: 'Error category, following the HTTP status: `invalid_request` (4xx other than 404),

        `not_found` (404), `unavailable` (503; `Retry-After` when transient), `timeout` (504), `internal`

        (other 5xx).'
      type: string
      enum:
      - invalid_request
      - not_found
      - unavailable
      - timeout
      - internal
    PreciseRecommendedFees:
      description: Recommended fee rates in sat/vB, to the thousandth (`/api/v1/fees/precise`)
      type: object
      properties:
        fastestFee:
          description: Fee rate for fastest confirmation (next block)
          allOf:
          - $ref: '#/components/schemas/FeeRate'
        halfHourFee:
          description: Fee rate for confirmation within ~30 minutes (second projected block)
          allOf:
          - $ref: '#/components/schemas/FeeRate'
        hourFee:
          description: Fee rate for confirmation within ~1 hour (third projected block)
          allOf:
          - $ref: '#/components/schemas/FeeRate'
        economyFee:
          description: 'Smoothed, fullness-adjusted third-block fee estimate, bounded by `minimumFee` and twice

            it; `minimumFee` when no third projected block exists'
          allOf:
          - $ref: '#/components/schemas/FeeRate'
        minimumFee:
          description: The node's current mempool minimum fee rate, rounded up to 0.001 sat/vB (at least 0.001)
          allOf:
          - $ref: '#/components/schemas/FeeRate'
      required:
      - fastestFee
      - halfHourFee
      - hourFee
      - economyFee
      - minimumFee
    ErrorBody:
      description: The JSON body of every API error (`application/problem+json`).
      type: object
      properties:
        error:
          $ref: '#/components/schemas/ErrorDetail'
      required:
      - error