# Implement WebSite Search Schema for Sitelinks Searchbox

Add WebSite SearchAction schema to your homepage to enable Google to display a Sitelinks Searchbox in search results, improving click-through rates for brand-aware users. The deliverable is structured data in JSON-LD format within the homepage `<head>`.

**Canonical URL:** https://skillshunter.net/skills/github-thedaviddias-front-end-checklist-skills-website-search-c49ae131e975

**JSON URL:** https://skillshunter.net/api/public/v1/skills/github-thedaviddias-front-end-checklist-skills-website-search-c49ae131e975

**Markdown URL:** https://skillshunter.net/skills/github-thedaviddias-front-end-checklist-skills-website-search-c49ae131e975.md

**Instructions download URL:** https://skillshunter.net/skills/github-thedaviddias-front-end-checklist-skills-website-search-c49ae131e975/download

**Category:** Content & Editorial

**Source URL:** https://github.com/thedaviddias/Front-End-Checklist/blob/e8d14d049010e2ce25afcd5e8609dfcbbe63e47e/skills/website-search/SKILL.md

**Source commit:** e8d14d049010e2ce25afcd5e8609dfcbbe63e47e

**Listing approved at:** 2026-11-24

**Created at:** 2026-11-23T06:15:30.000000Z

**Updated at:** 2026-11-24T07:12:47.000000Z

## Catalog information

The following descriptions are catalog information. Listing approval does not mean the skill has been tested or is safe for every environment.

### Editor's note

The `query-input` property must follow the format `required name=search_term_string` and the `target` URL must include a `{search_term_string}` placeholder. Ensure the homepage URL is set as the canonical URL.

### When to use it

- Optimize branded search result appearance for internal site search functionality
- Add structured data for the first time to enable Sitelinks Searchbox
- Improve click-through rates for brand-aware users searching on Google

## Skill instructions

---
name: website-search
description: "Use when applies to sites with internal site search functionality. Use when optimizing branded search result appearance or adding structured data for the first time."
metadata:
  category: seo
  priority: low
  difficulty: beginner
  estimatedTime: "10"
  source: frontendchecklist.io
  url: https://frontendchecklist.io/rules/seo/website-search
---

# WebSite Search Schema

The Sitelinks Searchbox lets users search your site directly from Google's search results page, reducing friction for brand-aware users and increasing the click-through quality from branded queries.

## Quick Reference

- Add `WebSite` schema with `SearchAction` to signal that your site has search functionality to Google
- This enables Google to show a Sitelinks Searchbox below your brand's search result for branded queries
- The Searchbox only appears at Google's discretion — the schema is a signal, not a guarantee
- The `query-input` property must follow the format `required name=search_term_string`

## Check

Check the homepage (or primary entry URL) for a `<script type='application/ld+json'>` block with `"@type": "WebSite"` and a `potentialAction` of type `SearchAction`. Verify `target` is a valid search URL template and `query-input` is correctly set.

## Fix

Add `WebSite` JSON-LD schema to the homepage `<head>`. Set `url` to the canonical-url homepage URL. Set `potentialAction` with `SearchAction`, `target` pointing to your search results URL with `{search_term_string}` placeholder, and `query-input` as `required name=search_term_string`.

## Explain

Explain how the WebSite SearchAction schema works, what the Sitelinks Searchbox is, why Google may choose not to show it even with valid schema, and how to construct the search URL template.

## Code Review

Review metadata generation, rendered HTML, structured data, and response headers related to WebSite Search Schema. Flag exact routes or templates where search-facing output violates the rule, and describe how to verify the final page output.

---

For full implementation details, code examples, and framework-specific guidance,
see `references/rule.md`.

Rule page: https://frontendchecklist.io/rules/seo/website-search

