network.bsky.jetstream.getBlock

bsky-lexicons.bsky.social

Documentation

Download a single block within a sealed segment file by index. Returns the raw zstd-compressed block frame exactly as stored on disk.

main query

Download a single block within a sealed segment file by index. Returns the raw zstd-compressed block frame exactly as stored on disk.

Parameters

blockIndex integer Required

Zero-based block index within the segment. Must be < the segment's block_count.

segment string Required

The sealed segment filename, e.g. seg_000000002a.jss.

Output

Encodingapplication/octet-stream

Errors

SegmentNotFound No sealed segment exists for the given name.
BlockNotFound blockIndex is >= the segment's block_count.
Try It

Requests are sent directly from your browser. Some servers may block requests due to CORS.

Base URL for XRPC calls (e.g., https://api.bsky.social)
Parameters
Zero-based block index within the segment. Must be < the segment's block_count.
The sealed segment filename, e.g. seg_000000002a.jss.
View raw schema
{
  "type": "query",
  "errors": [
    {
      "name": "SegmentNotFound",
      "description": "No sealed segment exists for the given name."
    },
    {
      "name": "BlockNotFound",
      "description": "blockIndex is >= the segment's block_count."
    }
  ],
  "output": {
    "encoding": "application/octet-stream"
  },
  "parameters": {
    "type": "params",
    "required": [
      "segment",
      "blockIndex"
    ],
    "properties": {
      "segment": {
        "type": "string",
        "description": "The sealed segment filename, e.g. seg_000000002a.jss."
      },
      "blockIndex": {
        "type": "integer",
        "minimum": 0,
        "description": "Zero-based block index within the segment. Must be < the segment's block_count."
      }
    }
  },
  "description": "Download a single block within a sealed segment file by index. Returns the raw zstd-compressed block frame exactly as stored on disk."
}

Lexicon Garden

@