Hi from Onedia County new to this trying to figure out if it's legal to have. Byc in mewhartford NY

Hope you find you can. Check the website for your zoning. You can find it on your town/city website.
Check zoning and codes. Or Village zoning map. Or Codes Department.
It will need your address of course. Unless you have a Village and a Town.
http://villageofnewhartford.com/content/Search/Home?
I wish you well,
Rancher Hicks.