---
title: "POST /EXPERIMENTAL_congestion_level"
method: POST
path: "/EXPERIMENTAL_congestion_level"
---

# POST /EXPERIMENTAL_congestion_level

`POST /EXPERIMENTAL_congestion_level`

## Request

- The document declares no server URL.
- Auth: none declared

Queries the congestion level of a shard. More info about congestion [here](https://near.github.io/nearcore/architecture/how/receipt-congestion.html?highlight=congestion#receipt-congestion)

## Request body

- JsonRpcRequestForEXPERIMENTALCongestionLevel
  - `id` string, required
  - `jsonrpc` string, required
  - `method` 'EXPERIMENTAL_congestion_level', required
  - `params` union, required
    - object
      - `block_id` union, required
        - integer
        - string
      - `shard_id` integer, required: The shard identifier. It may be an arbitrary number - it does not need to be a number in the range 0..NUM_SHARDS. The shard ids do not need to be sequential or contiguous. The shard id is wrapped in a new type to prevent the old pattern of using indices in range 0..NUM_SHARDS and casting to ShardId. Once the transition if fully complete it potentially may be simplified to a regular type alias.
    - object
      - `chunk_id` string, required

## Response `200`

- union
  - object
    - `result` RpcCongestionLevelResponse, required
      - `congestion_level` number, double, required
    - `id` string, required
    - `jsonrpc` string, required
  - object
    - `error` union, required
      - object
        - `cause` union, required
          - object
            - `info` object, required
              - …
            - `name` 'METHOD_NOT_FOUND', required
          - object
            - `info` object, required
              - …
            - `name` 'PARSE_ERROR', required
        - `name` 'REQUEST_VALIDATION_ERROR', required
      - object
        - `cause` union, required
          - object
            - `info` object, required
              - …
            - `name` 'INTERNAL_ERROR', required
          - object
            - `info` object, required
            - `name` 'UNKNOWN_BLOCK', required
          - object
            - `info` object, required
              - …
            - `name` 'INVALID_SHARD_ID', required
          - object
            - `info` object, required
              - …
            - `name` 'UNKNOWN_CHUNK', required
        - `name` 'HANDLER_ERROR', required
      - object
        - `cause` InternalError, required
          - `info` object, required
            - `error_message` string, required
          - `name` 'INTERNAL_ERROR', required
        - `name` 'INTERNAL_ERROR', required
    - `id` string, required
    - `jsonrpc` string, required

## Changes

- **2025-11-17** `7a2ca0a8ec29`: 4 breaking, 3 warning, 1 info
  - added `subschema #2, subschema #3` to the `oneOf[subschema #2]/error` response property `oneOf` list for the response status `200`
  - the `oneOf[subschema #2]/error` response's property type changed from `object` to no type for status `200`
  - removed the required property `oneOf[subschema #2]/error/code` from the response with the `200` status
  - removed the required property `oneOf[subschema #2]/error/message` from the response with the `200` status
  - …4 more
- **2025-07-17** `3e2ba6171658`: 1 breaking, 1 info
  - removed `subschema #1, subschema #2` from the `params` request property `anyOf` list
  - added `subschema #1: block_shard_id, subschema #2: chunk_hash` to the `params` request property `anyOf` list

[Operation history](https://skmtc.dev/near/apis/near-protocol-json-rpc-api-3/changes/EXPERIMENTAL_congestion_level/post.md)

---

[API](https://skmtc.dev/near/apis/near-protocol-json-rpc-api-3.md) - [All operations](https://skmtc.dev/near/apis/near-protocol-json-rpc-api-3/llms.txt) - [OpenAPI document](https://skmtc.dev/near/apis/near-protocol-json-rpc-api-3/revisions/961a6d5d2b57?raw)
