json schema example

#1008125
  • Gus
    Rank Math free

    Hi Rank Math Support,

    I’m using the Rank Math SEO plugin with Local SEO enabled across the site, so the LocalBusiness schema is already applied globally.

    For individual landing pages like:

    mysite.com/transfer-restaurante-barcelona

    I understand that I should not repeat the LocalBusiness schema to avoid duplication. I would like to know if you could provide a complete JSON-LD schema example that includes both the WebPage types — specifically tailored for a real estate agency offering transfer services for restaurants.

    Since I don’t have much technical experience, a sample JSON I can use as a base would be extremely helpful to ensure it’s implemented correctly and follows Google’s guidelines.

    Thank you for your support!

    Best regards,

Viewing 1 replies (of 1 total)
  • Hello,

    We apologize for the issue you are facing. Thank you for raising your concern regarding the JSON-LD schema for your landing pages.

    Since you are using Rank Math with Local SEO enabled, you are correct that you should avoid duplicating the LocalBusiness schema. Below is a sample JSON-LD schema that includes both the WebPage and LocalBusiness types tailored for a real estate agency offering transfer services for restaurants:

    {
      "@context": "https://img.youtube.com/vi/-VwqOHPxi4M/maxresdefault.jpg",
      "@type": "WebPage",
      "name": "Transfer Services for Restaurants in Barcelona",
      "description": "Offering reliable transfer services for restaurants in Barcelona.",
      "url": "https://img.youtube.com/vi/-VwqOHPxi4M/maxresdefault.jpg",
      "mainEntity": {
        "@type": "LocalBusiness",
        "@id": "https://img.youtube.com/vi/-VwqOHPxi4M/maxresdefault.jpg",
        "name": "Real Estate Agency Name",
        "image": "https://img.youtube.com/vi/-VwqOHPxi4M/maxresdefault.jpg",
        "address": {
          "@type": "PostalAddress",
          "streetAddress": "123 Main St",
          "addressLocality": "Barcelona",
          "addressRegion": "Catalonia",
          "postalCode": "08001",
          "addressCountry": "ES"
        },
        "telephone": "+34-123-456-789",
        "openingHours": "Mo-Fr 09:00-17:00",
        "priceRange": "$",
        "servesCuisine": ["Spanish", "Mediterranean"],
        "url": "https://img.youtube.com/vi/-VwqOHPxi4M/maxresdefault.jpg"
      }
    }

    Explanation of the Schema:

    • @context: Defines the context of the schema, which is Schema.org.
    • @type: Specifies the type of the schema, in this case, WebPage and LocalBusiness.
    • name: The title of your landing page.
    • description: A brief description of the services offered.
    • url: The URL of your landing page.
    • mainEntity: This contains the details of your local business, including name, address, telephone, and other relevant information.

    Make sure to replace placeholders like Real Estate Agency Name, address details, and URLs with your actual information. You can validate this JSON-LD using Google’s Rich Results Test to ensure it meets their guidelines.

    If you have any further questions or need additional assistance, please reply to this ticket, and a human agent from our support team will be happy to help you further!

    Sources:
    How to Use Schema Templates in Rank Math PRO » Rank Math
    How to Import JSON-LD Schema Markup With Rank Math » Rank Math

    This is an automated reply from Rank Math Support Bot. If you need further assistance, please reply to this topic and a human support agent will reply to you shortly.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this ticket.