Josh Perez was charged with child endangerment and abandonment after his infant daughter was found alone on a subway platform

A New York father has been charged with reckless endangerment for leaving his infant daughter alone on a subway platform early Sunday morning.

Josh Perez, who lives in the Bronx, told police that he boarded an uptown 6 train with his six-month-old daughter and then switched to a number 5 train at 125th Street.

The 26-year-old said the next thing he remembers is waking up at the President Street station in Crown Heights, roughly 12 miles away, without his baby girl.

Perez called police to report the baby missing and had officers pick him up in Brooklyn.

A commuter spotted the infant at the 86th Street and Lexington Avenue station, on the southbound platform where the 4, 5 and 6 trains operate, around 4.20am Eastern, police said.

The good Samaritan alerted MTA officials, who called the police.

Perez, who lives in the Bronx, said he was taking the baby home when he woke up in Crown Heights without the infant

Police said Perez and his girlfriend had gotten into an argument ot the 110th street 6-line station when he left to take the child home

The six-month-old girl was found by a commuter at the 86th street station early Sunday morning

Upon their arrival at the 86th Street station, emergency responders immediately took the baby girl to New York-Presbyterian/Weill Cornell Medical Center for evaluation.

As authorities cared for the infant, they almost simultaneously heard from Perez and his girlfriend, Vanessa Almodovar.

Police said Perez and Almodovar, 27, had been at a friend's house with their daughter and they got into an argument inside the 110th street 6-line station, according to the New York Post.

Almodovar went back to the friend's house and left Perez to take the baby home.

Perez is suspected of being drunk, or high on drugs, or both, at the time, according to police sources cited by the Post.

It's still not clear how the baby ended up abandoned on the subway platform, and police are reviewing footage to check Perez's story.

Police said Almodovar met investigators at the hospital and was reunited with her daughter.

The commuter found the child and alerted MTA officials, who called police. The baby was taken to New York-Presbyterian/Weill Cornell Medical Center for evaluation

It’s not immediately clear how the baby ended up on the 86th Street platform, along the father's route from 110th Street in Manhattan to President Street in Brooklyn

Perez's girlfriend, Vanessa Almodovar (pictured), had been at a friend's house when he went to take the child home

Perez is suspected of being drunk, or high on drugs, or both, at the time, according to police sources

Perez was initially held at the Transit District 4 substation in Union Square following his arrest and was charged with abandonment of a child, acting in a manner injurious to a child and reckless endangerment.

Sources told the Post that Perez has had several run-ins with the law, including 16 prior arrests. The last time he was arrested was in 2016 for a misdemeanor, but the record is sealed.

A rep for the city’s Administration for Children’s Services said the agency is ‘investigating the case with the NYPD’.