NEAR Protocol Legacy / Search API

Deprecated.

Operations 6

GET /v1/search Search txn by hash, block by height/hash, account by id, receipt by id, tokens… #
GET /v1/search/txns Search txns by hash #
GET /v1/search/blocks Search blocks by hash/height #
GET /v1/search/accounts Search accounts by id #
GET /v1/search/receipts Search receipts by id #
GET /v1/search/tokens Search tokens by hex address #

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/near-legacy-search-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

near-legacy-search-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: NearBlocks REST API for the NEAR Protocol block explorer. Provides endpoints to access blockchain data including accounts, transactions, blocks, tokens, NFTs, and staking.
  title: NearBlocks Explorer Legacy / Search API
  version: 1.0.0
servers:
- description: Mainnet
  url: https://api.nearblocks.io
- description: Testnet
  url: https://api-testnet.nearblocks.io
tags:
- description: Deprecated.
  name: Legacy / Search
paths:
  /v1/search:
    get:
      summary: Search txn by hash, block by height/hash, account by id, receipt by id, tokens…
      tags:
      - Legacy / Search
      parameters:
      - in: query
        name: keyword
        required: true
        description: Transaction hash / block height / account ID / receipt ID / hex address
        schema:
          type: string
      responses:
        '200':
          description: Success response
      operationId: getV1Search
      x-operation-id-source: derived
  /v1/search/txns:
    get:
      summary: Search txns by hash
      tags:
      - Legacy / Search
      parameters:
      - in: query
        name: keyword
        required: true
        description: Transaction hash
        schema:
          type: string
      responses:
        '200':
          description: Success response
      operationId: getV1SearchTxns
      x-operation-id-source: derived
  /v1/search/blocks:
    get:
      summary: Search blocks by hash/height
      tags:
      - Legacy / Search
      parameters:
      - in: query
        name: keyword
        required: true
        description: Block height or hash
        schema:
          type: array
          items:
            type: string
          example:
          - block-height
          - block-hash
      responses:
        '200':
          description: Success response
      operationId: getV1SearchBlocks
      x-operation-id-source: derived
  /v1/search/accounts:
    get:
      summary: Search accounts by id
      tags:
      - Legacy / Search
      parameters:
      - in: query
        name: keyword
        required: true
        description: Account ID
        schema:
          type: string
      responses:
        '200':
          description: Success response
      operationId: getV1SearchAccounts
      x-operation-id-source: derived
  /v1/search/receipts:
    get:
      summary: Search receipts by id
      tags:
      - Legacy / Search
      parameters:
      - in: query
        name: keyword
        required: true
        description: Receipt ID
        schema:
          type: string
      responses:
        '200':
          description: Success response
      operationId: getV1SearchReceipts
      x-operation-id-source: derived
  /v1/search/tokens:
    get:
      summary: Search tokens by hex address
      tags:
      - Legacy / Search
      parameters:
      - in: query
        name: keyword
        required: true
        description: Token hex address
        schema:
          type: string
      responses:
        '200':
          description: Success response
      operationId: getV1SearchTokens
      x-operation-id-source: derived
components:
  securitySchemes:
    BearerAuth:
      scheme: bearer
      type: http