They’re out to gut Airbnb.

A bill being drafted in the City Council could sound a death knell for online home-sharing services in the Big Apple.

The measure would require Airbnb and its competitors to provide the Mayor’s Office of Special Enforcement with the addresses of all their listings.

Hosts would have to hand over their names and addresses, as well as report whether they are renting just a room or the entire unit — information that many tenants would be loathe to share with the government.

A similar law in San Francisco led to an immediate 50 percent drop in Airbnb listings, with 10,000 posted in August 2017 and just 5,500 in January 2018 when the measure took effect, according to the San Francisco Chronicle.

If the proposed New York law has a similar impact, that could mean half the city’s 52,653 active Airbnb listings would disappear in a matter of months.

Councilwoman and bill sponsor Carlina Rivera (D-Manhattan) said the potential purge will leave rules-abiding hosts intact.

“Our number one goal with this legislation is to remove the bad actors that Airbnb has ­already admitted exist in their system today,”she said.

“Since Airbnb appears unable or unwilling to remove these ­users who are illegally taking rent-regulated and stabilized units away from New Yorkers who desperately need them, we must give the Office of Special Enforcement the data that will enable them to complete that ­enforcement.”

State law bars subletting apartments for fewer than 30 days, unless the tenant whose name is on the lease is present in the home.

Additionally, tenants in rent-regulated apartments must obtain written permission from their landlord 30 days prior to the start of the sublet and may not profit off the arrangement, according to the state’s Office of Homes and Community Renewal.

Critics say Airbnb causes higher rents for New Yorkers by removing long-term housing from the market, and also endangers guests because apartments are subject to different safety codes than hotels.

Airbnb official Josh Meltzer said the bill is a gift to the Hotel Trades Council “that solely aims to frighten hardworking New Yorkers.”

Rivera’s campaign received $5,500 from the union in 2017, campaign-finance records show.

Mayor de Blasio’s office said Hizzoner supports the thrust of the proposal.