Data query API for tidepool