Skip to content

Schema markup for farm stays

Farm stay schema markup for working farms with guests

Use LodgingBusiness for a farm with cottages or rooms, list each one in containsPlace, and describe the farm activities guests can join as amenities, with dates on the seasonal ones such as lambing. Add a pet rule that mentions the stock, check-in times and coordinates for the farm gate.

The type to use

LodgingBusiness

There's no farm-stay type, so LodgingBusiness fits a farm with a mix of cottages and rooms. Use BedAndBreakfast if guests only stay in the farmhouse with breakfast, or VacationRental on the page of a cottage let on its own.

LodgingBusiness on schema.org

What to include

The properties that matter for farm stays

Most important first. Fill in what's true for you and leave out the rest; every value must also be on the page.

amenityFeature
The farm activities guests can join (feeding the animals, collecting eggs), each with validFrom and validThrough when it only happens in a season. Families book on these.
containsPlace
Each cottage or room with its occupancy, bedrooms and beds, so a family of five can see which one fits.
petsAllowed
On a working farm the rule comes with conditions: which cottage, and leads near stock. Put them in the note.
geo
The farm gate, not the middle of a property that may run to hundreds of hectares. Guests following a map otherwise end up at the wrong boundary.
checkinTime
Many farms ask guests to arrive before dusk, when the drive is easier to follow and the evening feed is on. Give the time and the reason on the page.
telephone
The number answered during the day, when you're likely out in a paddock rather than in the house.
address
The farm's postal address, rural road number and all, written the same way it appears on your other listings.

Example

Copy, then make it yours

This is the markup for a made-up business. Replace every value with your own before you use it.

  1. Change every name, address, number and link to your own, and delete lines that don't apply.
  2. Paste it into your site's header code (website builders call it “code injection” or “custom code”), or let HotelCited add it for you.
  3. Check it with Google's Rich Results Test or the Schema Markup Validator.

LodgingBusiness JSON-LD

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "LodgingBusiness",
  "name": "Wattle Creek Farm Stay",
  "url": "https://www.example.com/",
  "image": [
    "https://www.example.com/images/shearers-cottage.jpg",
    "https://www.example.com/images/lamb-feeding.jpg"
  ],
  "telephone": "+61 2 5550 6218",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "2215 Cudgegong Valley Road",
    "addressLocality": "Mudgee",
    "addressRegion": "NSW",
    "postalCode": "2850",
    "addressCountry": "AU"
  },
  "geo": {
    "@type": "GeoCoordinates",
    "latitude": -32.53614,
    "longitude": 149.51283
  },
  "checkinTime": "14:00:00",
  "checkoutTime": "10:00:00",
  "petsAllowed": "Dogs in the Shearers' Cottage only, kept on a lead near stock",
  "amenityFeature": [
    {
      "@type": "LocationFeatureSpecification",
      "name": "Help feed the animals, most mornings at 8.30",
      "value": true
    },
    {
      "@type": "LocationFeatureSpecification",
      "name": "Bottle-feeding lambs",
      "value": true,
      "validFrom": "2027-08-01",
      "validThrough": "2027-10-31"
    },
    {
      "@type": "LocationFeatureSpecification",
      "name": "Egg collecting",
      "value": true
    },
    {
      "@type": "LocationFeatureSpecification",
      "name": "Horse riding",
      "value": false
    }
  ],
  "containsPlace": [
    {
      "@type": "House",
      "name": "Shearers' Cottage",
      "occupancy": {
        "@type": "QuantitativeValue",
        "value": 6
      },
      "numberOfBedrooms": 3,
      "bed": [
        {
          "@type": "BedDetails",
          "numberOfBeds": 1,
          "typeOfBed": "Queen"
        },
        {
          "@type": "BedDetails",
          "numberOfBeds": 4,
          "typeOfBed": "Single"
        }
      ]
    },
    {
      "@type": "Accommodation",
      "name": "Garden Room in the homestead",
      "occupancy": {
        "@type": "QuantitativeValue",
        "value": 2
      },
      "bed": {
        "@type": "BedDetails",
        "numberOfBeds": 1,
        "typeOfBed": "King"
      }
    }
  ]
}
</script>

Watch out

Mistakes farm stays make with markup

  • Lambs listed in every month

    A bottle-feeding amenity with no dates says there are lambs in March too. Add validFrom and validThrough, and move them forward each year.

  • A Farm type that doesn't exist

    “Farm” and “FarmStay” aren't schema.org types, so validators flag them and search engines can't use them. Use LodgingBusiness and put “working sheep farm” in the name or description.

  • Daily in the code, most mornings on the page

    If the markup says “Feed the animals daily” and the page says “most mornings, depending on the flock”, they disagree. Use the page's wording in the amenity's name.

Also worth adding

  • Store: If the farm shop keeps its own hours, a Store block on its page with those hours and what you sell: eggs, lamb boxes, honey.
  • Event: For dated farm days open to the public, such as a shearing demonstration or a harvest weekend.

FAQ

Farm stays: markup questions

Type to search these questions, or ask anything about getting found on Google and AI.

Lambing moves by a few weeks each year. What dates go in validFrom?

The dates you'd give a guest on the phone, usually a little wider than the flock's own timetable, and the same ones as the page. Update them when you set next year's calendar.

Our cellar door or farm shop sells to the public too. Is that a second block?

Yes, if it has its own name, hours and page. Guests booking a stay only need the lodging block; the shop's block helps people who come just to buy.

Where do age limits for farm activities go?

In the amenity's name or on the activities page (“bottle-feeding lambs, ages 3 and up with an adult”). An amenity has no age field, so the words have to carry it.

Someone is asking AI where to stay tonight.

Check your site free, then press Optimize. Back to your guests.