TenanciTenanci

Help centerSEO

Structured data (schema.org)

Build and validate organization, local business, product, article, FAQ and breadcrumb JSON-LD for Google's rich results, per domain.

Structured data tells Google, in a format it understands, who the business is, where it is, what a product costs or what the frequently asked questions are. That's what powers rich results (stars, prices, opening hours, questions expanded right in the result). On Tenanci you build these blocks with forms, with validation, and each customer domain has its own.

Ready-made types

Type in the dashboard schema.org What for
Organization Organization the company's name, website, logo, contacts and profiles
Local business LocalBusiness and subtypes address, phone, opening hours and map (restaurant, store, dentist, real-estate agent…)
Product Product with Offer price, currency, availability, brand, SKU
Article Article, BlogPosting or NewsArticle headline, author, dates and images of posts
FAQ FAQPage question and answer pairs
Breadcrumb BreadcrumbList the page's trail (Home › Listings › Apartments)

Build and apply a block

  1. Open the Structured data tab.
  2. Pick the Type.
  3. Under Apply to, pick Domain default or one of the path patterns from the Pages tab.
  4. Fill in the form. For Local business, choose the Business type (schema.org) and add Opening hours with Add hours; for FAQ, use Add question; for Breadcrumb, Add item.
  5. Click Build and validate. The result shows the JSON-LD and whether it's valid; missing required fields are errors, missing recommended fields are warnings.
  6. Click Add to page.

Blocks already published show under Current blocks on this page. To take one out, use Remove block.

Fill in with the customer's data

If the domain has customer data (domain → Settings → This domain's customer), click Fill in with the customer's data. The dashboard looks for fields with common names (name, phone, email, address, city, state, zip, logo, description…) and fills only the form fields that are empty.

JSON-LD validator

Already have JSON-LD (from another tool or written by hand)? Paste one block (object) or several (array) into JSON-LD validator and click Validate. The rules are the same ones applied before publishing:

  • @context must be https://schema.org and every block needs an @type;
  • each type's required fields are errors, recommended ones are warnings;
  • each block can be up to 32 KB, and each page can have up to 20 blocks;
  • the content can't contain <script>.

How it's published

The edge inserts each block at the end of the <head> as <script type="application/ld+json">. Blocks the origin already has stay in place.

Through the API

Build and validate with POST /seo/structured-data/build, passing type and data (the accepted types come from GET /seo/structured-data/types):

cURL
curl -X POST https://api.tenanci.com/v2/seo/structured-data/build \
  -H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"type":"FAQPage","data":{"questions":[{"question":"Do you help with mortgages?","answer":"Yes, we work with the major banks."}]}}'
# → { "jsonLd": { "@context": "https://schema.org", "@type": "FAQPage", ... }, "valid": true, "issues": [] }

Then save the result in the page's jsonLd field with PUT /domains/:id/seo or PATCH /domains/:id/seo/pages/:pageId. The field takes the page's whole list of blocks: send the existing ones along with the new one. To check any JSON-LD, use POST /seo/structured-data/validate with {"jsonLd": ...}.