A city by ordinance may provide that prior to the sale or exchange of any residential building, the owner or his authorized agent shall obtain from the city a report of the residential building record showing the regularly authorized use, occupancy, and zoning classifications of such property.