Create a free App Id at https://openweathermap.org/appid.
Search for any city on https://openweathermap.org and take the last part from the URL.
Example: https://openweathermap.org/city/5128581 5128581 is the City id of New York.