API working now