N.Y. Real Property Actions & Proceedings Law § 797
* § 797. Jurisdiction; courts; venue. 1. Except as prohibited under subdivision three of this section, a special proceeding for judgment directing repairs of conditions and other relief in residential real property constituting violation of applicable local and state housing standards or section two hundred thirty-five-b of the real property law may be maintained in a county court, justice court, district court, city court, or civil court of the city of New York.