4chan · Capability

4chan Read-Only JSON API — Indexes

Boards — Indexes. 1 operation. Lead operation: 4chan Get Board Index Page. Self-contained Naftiko capability covering one 4chan business surface.

Run with Naftiko 4chanImageboardIndexes

What You Can Do

GET
Getboardindexpage — 4chan Get Board Index Page
/v1/boards/{board}/pages/{page}

MCP Tools

get-board-index-page

4chan Get Board Index Page

read-only idempotent

Capability Spec

4chan-api-indexes.yaml Raw ↑
naftiko: "1.0.0-alpha2"

info:
  label: "4chan Read-Only JSON API — Indexes"
  description: >-
    Boards — Indexes. 1 operation. Lead operation: 4chan Get Board Index Page.
    Self-contained Naftiko capability covering one 4chan business surface.
  tags:
    - 4chan
    - Imageboard
    - Indexes
  created: "2026-05-28"
  modified: "2026-05-28"

binds: []

capability:

  consumes:
    - type: http
      namespace: 4chan-api-indexes
      baseUri: https://a.4cdn.org
      description: "4chan Read-Only JSON API — Indexes business capability. Self-contained, no shared references."
      resources:
        - name: board-index-page-json
          path: /{board}/{page}.json
          operations:
            - name: getboardindexpage
              method: GET
              description: 4chan Get Board Index Page
              inputParameters:
                - name: board
                  in: path
                  type: string
                  required: true
                  description: Board directory short name.
                - name: page
                  in: path
                  type: integer
                  required: true
                  description: Index page number, starting at 1 (max comes from /boards.json pages field).
              outputRawFormat: json
              outputParameters:
                - name: result
                  type: object
                  value: "$."

  exposes:
    - type: rest
      namespace: 4chan-api-indexes-rest
      port: 8080
      description: "REST adapter for 4chan Read-Only JSON API — Indexes."
      resources:
        - path: /v1/boards/{board}/pages/{page}
          name: board-index-page
          description: REST surface for a single board index page.
          operations:
            - method: GET
              name: getboardindexpage
              description: 4chan Get Board Index Page
              call: "4chan-api-indexes.getboardindexpage"
              with:
                board: "rest.board"
                page: "rest.page"
              outputParameters:
                - type: object
                  mapping: "$."

    - type: mcp
      namespace: 4chan-api-indexes-mcp
      port: 9090
      transport: http
      description: "MCP adapter for 4chan Read-Only JSON API — Indexes."
      tools:
        - name: get-board-index-page
          description: 4chan Get Board Index Page
          hints:
            readOnly: true
            destructive: false
            idempotent: true
          call: "4chan-api-indexes.getboardindexpage"
          with:
            board: "tools.board"
            page: "tools.page"
          outputParameters:
            - type: object
              mapping: "$."