Fixed getApiData() for non-array values.