parse data only on successful api requests