Add data.shown API and modify data API interface - #626