Skip to content

How websites get stars, prices, and FAQs in Google results

Some search results show stars, prices, or questions underneath them. That is structured data. Here is how it works and how to add it without coding.

By SenangWebsite team4 min read

Search for a recipe, a local shop, or a product, and you will see it: some results carry little extras. Star ratings. Price and stock. A list of questions that expand when you click. Other results sit there as a plain blue link and grey text, no matter how good the page is.

Those extras are not luck, and they are not paid advertising. They come from a thing called structured data, and adding it is more achievable than it looks.

The short answer: structured data is a small block of clearly labelled information added to a page, telling search engines exactly what the page contains. The Schema.org (JSON-LD) Generator on SenangWebsite builds that block for you, and the JSON-LD Validator & Auto-Fixer checks it, all in your browser.

Why some results look richer

A search engine can only show what it can confidently understand. When it reads an ordinary page, it guesses at the meaning: is that number a price or a date? Is this list a review summary or just text?

Structured data removes the guessing. The page states it plainly, in a format machines agree on: "this is a product, it costs this much, these are its ratings". Given that clarity, search engines can present the page with extras, which Google calls rich results.

There is no guarantee, worth saying upfront. Adding structured data makes you eligible for rich results; the search engine decides whether and how to display them. But eligibility is the entry ticket, and pages without the markup cannot have the ticket at all.

What the labels actually look like

The label format used on most modern websites is called JSON-LD. The name sounds heavy, but the thing itself is a short script added to a page, written as a set of named details. There is a shared vocabulary for the names called Schema.org, agreed on by the major search engines, so a label like "price" means the same thing to every crawler.

A simplified product label might read:

{
  "type": "Product",
  "name": "Ceramic mug",
  "price": "25.00",
  "rating": "4.8"
}

Nothing here is visible to visitors. It is a note pinned to the page for machines.

The types worth knowing first

A few Schema.org types cover most small business and content websites:

  • LocalBusiness for shops, cafes, clinics, and studios: address, opening hours, phone.
  • Product for anything you sell, with price and availability.
  • Article for blog posts and news, with headline, author, and dates.
  • FAQ for a page that answers common questions, which can appear as expandable questions in results.
  • Event for workshops, gigs, and launches, with date and venue.

You do not need all of them. One accurate type, on the pages it describes, is the useful move. Stacking irrelevant types in the hope of extras tends to fail, because search engines check that the markup matches what a visitor actually sees.

Adding it to your site

You can write JSON-LD by hand, but the names are fussy and a missing comma breaks everything silently. The generator path is easier:

  1. Open the Schema.org (JSON-LD) Generator and pick the type that matches your page, such as LocalBusiness or Article.
  2. Fill in the details it asks for. You get the finished JSON-LD block to copy.
  3. Paste it into your page's HTML, usually near the top of the page's code, following your platform's instructions for custom code. Many website builders have a settings box for exactly this.
  4. Check the result. Paste the block into the JSON-LD Validator & Auto-Fixer, which flags mistakes and can repair common ones on the spot.

If you inherit a page that already has markup and want to see how its pieces connect, the Schema.org Entity Relationship Visualizer draws the structure as a diagram, which makes odd connections obvious in a way raw text never is. All three tools run locally in your browser; your page details are not uploaded.

A note on honesty

Because the markup is a claim, it must be true. Marking up five-star ratings that no one actually left, or a price you do not charge, risks manual penalties, which means a human at the search engine took a dislike to your site. The reliable strategy is boring: label only what is genuinely on the page.

Done that way, structured data is one of the highest-return small jobs on a website. It takes minutes per page, it makes your results easier to notice and understand, and it costs nothing but care.

Back to all articles