Minecraft wiki entry for data, associated text: /data ...
... get
... (block <targetPos> entity <target> storage <target>) [<path>] [<scale>]
Read off the entire NBT data or the subsection of the NBT data from the targeted block position or entity to the executor with syntax highlighting, scaled by <scale> if specified.