General API simulator