New York is not the capital city of any country.
New York is a city, and also a state. New York City is part of New York State. New York State is number 11 of the 50 States of the United States of America. The U.S.A. is a country that is located on the continent of North America.
The capital of the U.S.A. is Washington, D.C.