Add API timeout of 2 seconds to avoid blocking