Polkadot Log API

The Log API from Polkadot — 2 operation(s) for log.

Operations 2

POST /api/scan/log Get block log by index
POST /api/v2/scan/logs List block logs

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/polkadot-log-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

polkadot-log-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  contact:
    email: bruce.sun@itering.io
    name: API Support
    url: http://www.swagger.io/support
  description: This is a subscan API server.
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  termsOfService: http://swagger.io/terms/
  title: Subscan Log API
  version: '1.0'
servers:
- url: https://https://www.subscan.io/
tags:
- name: Log
paths:
  /api/scan/log:
    post:
      description: Returns a block log record by log index.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/internal_server_http.J'
                - properties:
                    data:
                      $ref: '#/components/schemas/subscan_internal_model.ChainLogJson'
                  type: object
      summary: Get block log by index
      tags:
      - Log
      x-synonyms:
      - block
      - log
      - index
      - scan
      - block height
      - block number
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/internal_server_http.logInfoParam'
        description: params
        required: true
  /api/v2/scan/logs:
    post:
      description: Returns paginated block logs filtered by block range, engine ID, and log type.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/internal_server_http.J'
                - properties:
                    data:
                      properties:
                        count:
                          type: integer
                        logs:
                          items:
                            $ref: '#/components/schemas/subscan_internal_model.ChainLogJson'
                          type: array
                      type: object
                  type: object
      summary: List block logs
      tags:
      - Log
      x-synonyms:
      - block
      - logs
      - log
      - scan
      - block height
      - block number
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/internal_server_http.logsParams'
        description: params
        required: true
components:
  schemas:
    subscan_internal_model.ChainLogJson:
      properties:
        block_num:
          type: integer
        data:
          type: string
        engine:
          type: string
        id:
          type: integer
        log_index:
          type: string
        log_type:
          type: string
      type: object
    internal_server_http.logsParams:
      properties:
        after_id:
          type: integer
        block_num:
          minimum: 0
          type: integer
        block_range:
          type: string
        engine:
          type: string
        page:
          description: Page number, starting from 0
          example: 0
          minimum: 0
          type: integer
        row:
          description: Data size per page
          example: 10
          maximum: 100
          minimum: 1
          type: integer
        type:
          type: string
      type: object
    internal_server_http.logInfoParam:
      properties:
        log_index:
          type: string
      required:
      - log_index
      type: object
    internal_server_http.J:
      properties:
        code:
          example: 0
          type: integer
        data: {}
        generated_at:
          example: 1699600641
          type: integer
        message:
          example: Success
          type: string
      type: object