New york dialing code
The dialing code for New York is:
1-212 (for Manhattan and the Bronx) 1-718 (for Brooklyn, Queens, and Staten Island) 1-315 (for Upstate New York, including Syracuse and Utica) 1-516 (for Long Island, including Nassau and Suffolk counties) 1-518 (for the Capital District, including Albany and Troy) 1-607 (for Central New York, including Binghamton and Ithaca) 1-631 (for Long Island, including Suffolk County) 1-646 (for Manhattan and the Bronx) 1-716 (for Western New York, including Buffalo and Rochester) 1-845 (for the Hudson Valley, including Poughkeepsie and Newburgh)
Note that these are area codes, not country codes. If you're calling from outside the United States, you'll need to use the country code +1 followed by the area code and phone number.