There have always been plenty of ways to run afoul of the law in New York, including serious crime. But, in 2015, it’s as likely to involve smoking in a park or renting your studio on Airbnb.
The global sharing economy doesn't extend to real estate here: New York State prohibits rentals in most apartment buildings for stays that are less than 30 days unless the owner or tenant is staying there too.