if i had kids with my ex and we were not married how to i get custody
Hire an attorney to evaluate whether you have a chance is what I would say. Don't try to do it yourself.