API getter fix for datapoints