Home > Tools > Free Schema Markup Generator

Official Schema Type Support

Free Apartment Schema Markup Generator (JSON-LD)

An apartment (in American English) or flat (in British English) is a self-contained housing unit (a type of residential real estate) that occupies only part of a building (source: Wikipedia, the free encyclopedia, see http://en.wikipedia.org/wiki/... Configure verified Apartment properties in real time, copy clean straight-quote JSON-LD code, and validate rich snippet eligibility in seconds.

Apartment
Official Schema.org Class • Google Rich Results Eligible
Content
About Apartment: An apartment (in American English) or flat (in British English) is a self-contained housing unit (a type of residential real estate) that occupies only part of a building (source: Wikipedia, the free encyclopedia, see http://en.wikipedia.org/wiki/... Official Schema Type Support
Fill required fields (Apartment)
JSON-LD
// Generating live JSON-LD...
✓ Copied to clipboard!

Official Schema Type Support

What Is Apartment Schema Markup and When Should You Use It?

Official Definition: An apartment (in American English) or flat (in British English) is a self-contained housing unit (a type of residential real estate) that occupies only part of a building (source: Wikipedia, the free encyclopedia, see http://en.wikipedia.org/wiki/... Implementing valid Apartment JSON-LD structured data gives search engines and AI systems clear entity classification aligned with the visible information on your page.

Websites operating in semantic entity classification and structured data modeling benefit from marking up pages with the exact Apartment type rather than relying on overly broad labels. Designed for website owners, technical SEOs, developers, and structured content teams, this markup pattern helps your site define exact entity attributes and relationships so search engines interpret page content unambiguously.

Primary Use Cases and Page Eligibility for Apartment

Use Apartment JSON-LD on any canonical landing page whose primary topic directly represents this entity. Every property declared inside your structured data block—such as titles, identifiers, URLs, schedules, prices, or contact fields—should match what human visitors see on that page. Publishing accurate Apartment markup reduces entity ambiguity for web crawlers, strengthens Knowledge Graph reconciliation, and improves machine readability across both traditional organic results and modern AI search experiences.

In the Schema.org taxonomy, Apartment inherits properties downward from Accommodation and root ancestors. That inheritance model allows your JSON-LD payload to combine specialized Apartment attributes with foundational fields like name, description, url, and sameAs:

Explore closely related Schema.org classes if your page represents a narrower specialization or sibling entity:

Search Visibility Analysis

Google Rich Results Eligibility and SEO Impact for Apartment

Search Engine Signal Role: While Apartment does not trigger a standalone Google rich snippet badge by itself, it acts as a core semantic and entity-disambiguation class within official Schema.org standards and nested Knowledge Graph structures.

Many high-authority sites use Apartment either as the primary subject of dedicated pages or nested inside parent entities such as WebPage, Organization, or ItemList. Even without a visual SERP badge, explicit JSON-LD helps search crawlers, voice assistants, and AI answer engines classify your content accurately and verify relationships with your brand.

Official Vocabulary Reference

Complete Official Apartment Properties Reference

The reference table below documents key official properties available for Apartment (including 2 direct properties defined specifically on this class and inherited attributes from Accommodation up to Thing). Use the Additional Properties search bar inside the generator above to insert any of these fields into your live JSON-LD script.

Direct and Inherited Apartment Properties Table

Property NameDefined OnExpected Value TypePractical Usage Guidance
numberOfRoomsApartmentText or Nested TypeDefines the number of rooms attribute associated with this Apartment structured data entity when explicitly shown on the page.
occupancyApartmentText or Nested TypeDefines the occupancy attribute associated with this Apartment structured data entity when explicitly shown on the page.
accommodationCategoryAccommodationText or Nested TypeDefines the accommodation category attribute associated with this Apartment structured data entity when explicitly shown on the page.
accommodationFloorPlanAccommodationText or Nested TypeDefines the accommodation floor plan attribute associated with this Apartment structured data entity when explicitly shown on the page.
amenityFeatureAccommodationText or Nested TypeDefines the amenity feature attribute associated with this Apartment structured data entity when explicitly shown on the page.
bedAccommodationText or Nested TypeDefines the bed attribute associated with this Apartment structured data entity when explicitly shown on the page.
floorLevelAccommodationText or Nested TypeDefines the floor level attribute associated with this Apartment structured data entity when explicitly shown on the page.
floorSizeAccommodationText or Nested TypeDefines the floor size attribute associated with this Apartment structured data entity when explicitly shown on the page.
leaseLengthAccommodationText or Nested TypeDefines the lease length attribute associated with this Apartment structured data entity when explicitly shown on the page.
numberOfBathroomsTotalAccommodationText or Nested TypeDefines the number of bathrooms total attribute associated with this Apartment structured data entity when explicitly shown on the page.
numberOfBedroomsAccommodationText or Nested TypeDefines the number of bedrooms attribute associated with this Apartment structured data entity when explicitly shown on the page.
numberOfFullBathroomsAccommodationText or Nested TypeDefines the number of full bathrooms attribute associated with this Apartment structured data entity when explicitly shown on the page.
numberOfPartialBathroomsAccommodationText or Nested TypeDefines the number of partial bathrooms attribute associated with this Apartment structured data entity when explicitly shown on the page.
permittedUsageAccommodationText or Nested TypeDefines the permitted usage attribute associated with this Apartment structured data entity when explicitly shown on the page.
petsAllowedAccommodationText or Nested TypeDefines the pets allowed attribute associated with this Apartment structured data entity when explicitly shown on the page.
tourBookingPageAccommodationText or Nested TypeDefines the tour booking page attribute associated with this Apartment structured data entity when explicitly shown on the page.
yearBuiltAccommodationText or Nested TypeDefines the year built attribute associated with this Apartment structured data entity when explicitly shown on the page.
additionalPropertyPlaceText or Nested TypeDefines the additional property attribute associated with this Apartment structured data entity when explicitly shown on the page.
addressPlacePostalAddress or PlaceProvide a structured PostalAddress object with streetAddress, addressLocality, addressRegion, postalCode, and addressCountry.
aggregateRatingPlaceAggregateRating / RatingOnly include verified rating values visible to users on the page, accompanied by ratingValue and reviewCount.
branchCodePlaceText or Nested TypeDefines the branch code attribute associated with this Apartment structured data entity when explicitly shown on the page.
containedInPlacePlaceText or Nested TypeDefines the contained in place attribute associated with this Apartment structured data entity when explicitly shown on the page.
containsPlacePlaceText or Nested TypeDefines the contains place attribute associated with this Apartment structured data entity when explicitly shown on the page.
eventPlaceText or Nested TypeDefines the event attribute associated with this Apartment structured data entity when explicitly shown on the page.
faxNumberPlaceText (E.164 Phone)Include an international-format phone number (for example +1-555-010-2040) matching the visible page contact details.
geoPlaceText or Nested TypeDefines the geo attribute associated with this Apartment structured data entity when explicitly shown on the page.
geoContainsPlaceText or Nested TypeDefines the geo contains attribute associated with this Apartment structured data entity when explicitly shown on the page.
geoCoveredByPlaceText or Nested TypeDefines the geo covered by attribute associated with this Apartment structured data entity when explicitly shown on the page.
geoCoversPlaceText or Nested TypeDefines the geo covers attribute associated with this Apartment structured data entity when explicitly shown on the page.
geoCrossesPlaceText or Nested TypeDefines the geo crosses attribute associated with this Apartment structured data entity when explicitly shown on the page.
geoDisjointPlaceText or Nested TypeDefines the geo disjoint attribute associated with this Apartment structured data entity when explicitly shown on the page.
geoEqualsPlaceText or Nested TypeDefines the geo equals attribute associated with this Apartment structured data entity when explicitly shown on the page.
geoIntersectsPlaceText or Nested TypeDefines the geo intersects attribute associated with this Apartment structured data entity when explicitly shown on the page.
geoOverlapsPlaceText or Nested TypeDefines the geo overlaps attribute associated with this Apartment structured data entity when explicitly shown on the page.
geoTouchesPlaceText or Nested TypeDefines the geo touches attribute associated with this Apartment structured data entity when explicitly shown on the page.
geoWithinPlaceText or Nested TypeDefines the geo within attribute associated with this Apartment structured data entity when explicitly shown on the page.
globalLocationNumberPlaceText or Nested TypeDefines the global location number attribute associated with this Apartment structured data entity when explicitly shown on the page.
hasCertificationPlaceText or Nested TypeDefines the has certification attribute associated with this Apartment structured data entity when explicitly shown on the page.
hasDriveThroughServicePlaceText or Nested TypeDefines the has drive through service attribute associated with this Apartment structured data entity when explicitly shown on the page.
hasGS1DigitalLinkPlaceText or Nested TypeDefines the has gs1digital link attribute associated with this Apartment structured data entity when explicitly shown on the page.
hasMapPlaceText or Nested TypeDefines the has map attribute associated with this Apartment structured data entity when explicitly shown on the page.
isAccessibleForFreePlaceText or Nested TypeDefines the is accessible for free attribute associated with this Apartment structured data entity when explicitly shown on the page.

Ready-to-Use Markup

Valid Apartment JSON-LD Code Example

Below is a clean starting template for Apartment structured data formatted with strict straight double quotes ("). When deploying Apartment on a production page, you can either publish it as the top-level entity on dedicated pages or reference it inside parent properties such as mainEntity, about, or mentions. Replace the placeholder values inside the interactive generator above with your verified live business, content, or specification details before copying to your site.

<script type="application/ld+json">
{
    "@context": "https://schema.org",
    "@type": "Apartment",
    "name": "Example Apartment",
    "description": "An apartment (in American English) or flat (in British English) is a self-contained housing unit (a type of residential real estate) that occupies only part of a building (source: Wikipedia, the free encyclopedia, see http://en.wikipedia.org/wiki/...",
    "url": "https://example.com/apartment/"
}
</script>

Before pushing live updates across templates or CMS posts, verify that every URL inside the JSON-LD snippet resolves with HTTP 200 status and that numeric units, ISO dates, and entity titles match the visible copy visitors read in the browser.

Implementation Guide

How to Add Apartment Schema Markup to WordPress and HTML

1

Adding Apartment Schema in WordPress or Elementor

Configure your fields in the generator above and click Copy JSON-LD. Open your target WordPress post or Elementor page, insert a Custom HTML widget (or page header script manager), paste the complete <script type="application/ld+json"> block, and save your changes.

2

Validating Apartment Structured Data

For static HTML websites, place the script inside the <head> or before the closing </body> tag. Immediately run your live URL or pasted code through Schema Markup Validator and Google Rich Results Test to verify zero syntax errors or missing required fields.

Quality Checklist

Common Apartment Schema Mistakes to Avoid

Hidden or Mismatched Data

Every property in your Apartment JSON-LD must correspond directly to information visible on the page. Hidden metadata or synthetic ratings violate search guidelines.

Incorrect ISO Formats and URLs

Dates must follow YYYY-MM-DD, durations must use ISO 8601 strings, and URLs in url, image, and sameAs should use absolute HTTPS links.

Empty Fields or Curly Quotes

Never publish empty property placeholders or smart typography curly quotes inside JSON-LD. Always inspect copied code or generate directly through the live studio above.

Frequently Asked Questions

Apartment Schema Markup FAQs

What is Apartment Schema markup used for?

Apartment is an official Schema.org entity type used in semantic entity classification and structured data modeling. Adding it in JSON-LD helps search engines and AI systems identify key attributes accurately from your page content.

Does Apartment inherit properties from Accommodation?

Yes. In the official hierarchy (Thing > Place > Accommodation > Apartment), Apartment inherits standard properties from Accommodation and foundational attributes from Thing, all accessible in our Additional Properties picker.

Does Apartment qualify for Google Rich Results?

Apartment serves primarily as a semantic entity and Knowledge Graph clarity signal rather than a standalone SERP rich badge, making it valuable for structured entity understanding and nested graphs.

How many properties should I include in Apartment JSON-LD?

Only populate properties that accurately reflect verified details visible on the page—typically core identifiers such as name, description, and url plus specific attributes from the Apartment properties table above. Quality and accuracy matter far more than stuffing unnecessary empty keys.

Should I use JSON-LD instead of Microdata for Apartment?

Yes. Google recommends JSON-LD because you can manage, edit, and validate the complete Apartment script block without modifying theme HTML tags or risking layout regressions.

Official Schema Type Support

Explore All 760+ Schema.org Types

Select any Schema.org class below to open its dedicated JSON-LD generator, official properties table, and code example.

0-9 Schema Types (1)

Z Schema Types (1)

Technical SEO Support

Need Help Deploying Structured Data Across Your Website?

SHIED WORLD helps businesses implement entity-driven Technical SEO, dynamic schema graphs, and AI search optimization built for measurable organic growth.