In New York, emergency custody is usually granted when there is an imminent threat of harm to the child. This could be due to abuse, neglect, or abandonment by the parents. Emergency custody can also be granted if the child is in danger of being removed from the country by one parent. In order to get emergency custody, the petitioner must show that there is a significant risk of harm to the child if they are not placed in protective custody immediately. The court will then decide whether or not to grant emergency custody based on the evidence presented.