Each layer represents one level of depth in the BFS (breadth-first search) graph traversal. Layer 0 is the root address, layer 1 includes its direct counterparties, layer 2 their counterparties, and so on.
Request
Path parameters
Response — completed layer
Response — pending layer
If the requested layer hasn’t been processed yet:
Response fields
The layer parameter is 0-based. Layer 0 is the root address analysis. If maxDepth is 7, valid layers are 0 through 6.
Caching
Completed layers are immutable. The API returns Cache-Control: public, max-age=3600 for completed layers, so clients can safely cache them. Pending layers return Cache-Control: no-cache.
Pattern diffing
Each layer includes newPatterns and removedPatterns relative to the previous layer. This enables incremental UI updates — you can highlight newly detected patterns without re-processing the entire list.