lottery api works