As of now, New York state does not license electricians on a state level. Each municipality throughout the state has their own local law governing who can do electrical work in their jurisdiction.
Most municipalities throughout New York state allow for anyone to perform electrical work. Some of the larger cities and towns throughout the state require the person performing electrical work to be licensed. In either case, no matter who will be performing the electrical work and whether they are licensed or not, the electrical work must be inspected by an authorized electrical inspector for compliance.
In areas that require an electrical license, typically there is an exception from the electrical licensing requirement for homeowners. If you are the owner of the residential property and living at the location, you may be able to perform the electrical work yourself, however, you still must receive an electrical inspection from an approved electrical inspector. Call your local electrical inspector or check with your local municipality for further information and requirements.