added data api to npmtest example