Website-level Microdata

Sam Marsden
Sam Marsden

4 min read

The last section focused on the basics of microdata and different ways of implementing markup across a site. Now that we’ve got a broad understanding of microdata, let’s look at some specific examples of markup you might want to apply at a site level.

Brand microdata

Implementing structured data around an organization’s details, brand image/logo and social links can lead to the knowledge graph appearing for branded searches on Google, emphasizing your brand.

A search for the retailer Currys returns the following Knowledge Graph:

Knowledge Graph

The snippet on the Curry’s website that provides this information looks like this using microdata:

<script type=”application/ld+json”>
“@context”: “”,
“@type”: “Organization”,
“url”: “”,
“logo”: “”,
“contactPoint”: [{
“@type”: “ContactPoint”,
“telephone”: “+44800456567”,
“contactType”: “customer service”

<span itemscope itemtype=””>
<link itemprop=”url” href=””>
<a itemprop=”sameAs” href=””>FB</a>
<a itemprop=”sameAs” href=””>Twitter</a>

The same information, as above, can be provided using JSON-LD as follows:

<script type=”application/ld+json”>
{ “@context” : “”,
“@type” : “Organization”,
“name” : “Example Industries”,
“logo” : “”,
“url” : “”,
“sameAs” : [


Sitelinks search box microdata

By marking up your site with sitelinks search box structured data, you can have Google and Bing show a search bar against your brand’s search results which is linked to your internal site search.

Here’s how the search box appears in the Bing search results.

Bing sitelinks

By carrying out a search for ‘cheap laptop’ using this search box, the following query is shown in Bing.

Bing site: search

Here’s how the same search facility appeared in the Google search results.

Google search sitelinks

Since competitors can bid for advertising against these search queries it is more valuable to keep visitors on your own website by implementing sitelinks search box schema.

You can get this search facility for a site by using the following microdata:

<div itemscope itemtype=””>
<meta itemprop=”url” content=””/>
<form itemprop=”potentialAction” itemscope itemtype=””>
<meta itemprop=”target” content=”{search_term_string}”/>
<input itemprop=”query-input” type=”text” name=”search_term_string” required/>
<input type=”submit”/>

Alternatively, you can use the following JSON-LD snippet to achieve the same effect:

<script type=”application/ld+json”>
“@context”: “”,
“@type”: “WebSite”,
“url”: “”,
“potentialAction”: {
“@type”: “SearchAction”,
“target”: “{search_term_string}”,
“query-input”: “required name=search_term_string”

It is important to note that there are instances of Google showing sitelinks search boxes in their search results without any structured data in place. If you’d like to block Google from showing the search box you can add the following code to a site:

<meta name=”google” content=”nositelinkssearchbox” />

Next: Product Microdata


Sam Marsden
Sam Marsden

Sam Marsden is Deepcrawl's Former SEO & Content Manager. Sam speaks regularly at marketing conferences, like SMX and BrightonSEO, and is a contributor to industry publications such as Search Engine Journal and State of Digital.

Choose a better way to grow

With tools that will help you realize your website’s true potential, and support to help you get there, growing your enterprise business online has never been so simple.

Book a Demo