Structured Data & Semantic Web

리치 결과 테스트

The free Rich Results Test at search.google.com/test/rich-results accepts a URL or code and reports recognized rich-result types, syntax problems and missing required properties. A valid result does not guarantee that Google will display a rich result, because quality and policy assessments also apply. Include structured-data checks in pre-release validation and automate suitable local syntax and property checks in CI; do not assume the public tool provides an official general-purpose automation API.

Business applications and impact#

Detects markup errors and missing required fields before deployment.

Implementation guidance and considerations#

Test page URLs or code snippets as part of release validation and supplement them with automated local checks.

Code example#

# 배포 전 로컬 검증: 페이지에서 JSON-LD를 추출해 문법 오류만 1차 점검
import requests, re, json

html = requests.get("https://example.com/product/123").text
for block in re.findall(r'<script type="application/ld\+json">(.*?)</script>', html, re.S):
    try:
        json.loads(block)
    except json.JSONDecodeError as e:
        print("문법 오류:", e)
# 최종 확인은 https://search.google.com/test/rich-results 에서 URL 직접 검사

Rich Results

리치 결과

An enhanced search result with additional elements such as ratings, prices, images or supported expandable information.

Snippet

스니펫

The brief descriptive preview shown beneath a search-result title and URL.

FAQPage Schema

FAQ 구조화 데이터

Markup that describes a set of frequently asked questions and answers, eligible in supported cases for expanded search presentations.

Google Discover

Google Discover

Google's personalized content feed, which recommends material based on interests and activity without requiring a search query.

JSON-LD

JSON-LD 구조화 데이터

A structured-data format that expresses linked data as JSON in a script element, commonly used in an HTML head.

QAPage Schema

Q&A 구조화 데이터

Structured data for a page containing one question with multiple answers contributed by users.