nodes

Get paginated nodes for infinite scroll

Changed on

Pages are sized by a byte budget, not a node count, so their length varies with the book's node sizes.

get/api/books/{slug}/nodes

Request

  • The document declares no server URL.
  • Auth
    none declared

Path parameters

slug, string required

Book slug

Query parameters

after, integer nullable

sort_order cursor — fetch nodes after this value

before, integer nullable

sort_order cursor — fetch nodes before this value

original, boolean nullable

include original_text/original_html fields

source_nodes, string nullable

Comma-separated source node UUIDs — fetch nodes whose source_node_id matches

node_ids, string nullable

Comma-separated node UUIDs — fetch nodes by their own ID

at, string nullable

Anchor node slug — return the anchor and what follows, with no nodes before it

Response

Page of nodes with content

NodePage required
has_more, boolean required
has_previous, boolean required
nodes, NodeDetail[] required

Changes

    • warning

      deleted the query request parameter back

    • warning

      deleted the query request parameter limit

    • info

      added the optional property nodes/items/blocks/items/sentences/items/margin_notes to the response with the status