Contents Insurance Quotes

I’m looking for a home Insurance for the flat I am renting.?
I tried to get quotes for a few companies online, but they all consider I want to ensure the whole building and not only my flat… Can you advise on a company which would insure my flat and contents, but not the 30 other flats in the building ?
More precisely, do I need to take building cover or only contents cover, as a tenant ?
If you renting, you only need contents.
Real Insurance- Car Insurance, home Insurance and contents Insurance