API to return block data.