Is it possible to get block URLs?

I know you can right click a block to “Copy Block URL”, but can this be done through the API?

As you can see a URI for a block is made by current graph name plus the block id, that is stored as the value of id:: property (it’s hidden in the UI but it’s visible in Markdown files for the blocks that have been referenced and for whose the ID has been generated).

So if you have the block ID you can compose the URI, to get current graph name there is an API and there is one to get current block ID (the block where the cursor is placed).

1 Like