Software App

Mark up software application information in the body of a web page to better display your app details in Google Search results.

Screenshot of rich result for a software application in search results

如何添加结构化数据

结构化数据是一种提供网页相关信息并对网页内容进行分类的标准化格式。如果您不熟悉结构化数据,可以详细了解结构化数据的运作方式

下面概述了如何构建、测试和发布结构化数据。如需获得向网页添加结构化数据的分步指南,请查看结构化数据 Codelab

  1. 添加必要属性。根据您使用的格式,了解在网页上的什么位置插入结构化数据
  2. 遵循指南
  3. 使用富媒体搜索结果测试验证您的代码。
  4. 部署一些包含结构化数据的网页,然后使用网址检查工具测试 Google 看到的网页样貌。请确保您的网页可供 Google 访问,不会因 robots.txt 文件、noindex 标记或登录要求而被屏蔽。如果网页看起来没有问题,您可以请求 Google 重新抓取您的网址
  5. 为了让 Google 随时了解日后发生的更改,我们建议您提交站点地图Search Console Sitemap API 可以帮助您自动执行此操作。

Examples

JSON-LD

Here's an example of a software app in JSON-LD:


<html>
  <head>
    <title>Angry Birds</title>
    <script type="application/ld+json">
    {
      "@context": "https://schema.org",
      "@type": "SoftwareApplication",
      "name": "Angry Birds",
      "operatingSystem": "ANDROID",
      "applicationCategory": "GameApplication",
      "aggregateRating": {
        "@type": "AggregateRating",
        "ratingValue": "4.6",
        "ratingCount": "8864"
      },
      "offers": {
        "@type": "Offer",
        "price": "1.00",
        "priceCurrency": "USD"
      }
    }
    </script>
  </head>
  <body>
  </body>
</html>
RDFa

Here's an example of a software app in RDFa:


<div vocab="https://schema.org/" typeof="SoftwareApplication">
  <span property="name">Angry Birds</span> -

  REQUIRES <span property="operatingSystem">ANDROID</span>
  TYPE: <span property="applicationCategory" content="GameApplication">Game</span>

  RATING:
  <div property="aggregateRating" typeof="AggregateRating">
    <span property="ratingValue">4.6</span> (
    <span property="ratingCount">8864</span> ratings )
  </div>

  <div property="offers" typeof="Offer">
    Price: $<span property="price">1.00</span>
    <meta property="priceCurrency" content="USD" />
  </div>
</div>
  
Microdata

Here's an example of a software app in Microdata:


<div itemscope itemtype="https://schema.org/SoftwareApplication">
  <span itemprop="name">Angry Birds</span> -

  REQUIRES <span itemprop="operatingSystem">ANDROID</span>
  TYPE: <span itemprop="applicationCategory" content="GameApplication">Game</span>

  RATING:
  <div itemprop="aggregateRating" itemscope itemtype="https://schema.org/AggregateRating">
    <span itemprop="ratingValue">4.6</span> (
    <span itemprop="ratingCount">8864</span> ratings )
  </div>

  <div itemprop="offers" itemscope itemtype="https://schema.org/Offer">
    Price: $<span itemprop="price">1.00</span>
    <meta itemprop="priceCurrency" content="USD" />
  </div>
</div>
  

Guidelines

You must follow these guidelines for your app to be eligible to appear as a rich result.

Structured data type definitions

You must include the required properties for your content to be eligible for display as a rich result. You can also include the recommended properties to add more information about your content, which could provide a better user experience.

SoftwareApplication

The full definition of SoftwareApplication is available at schema.org/SoftwareApplication.

Required properties
name

Text

The name of the app.

offers.price

Offer

An offer to sell the app. For developers, offers can indicate the marketplaces that carry the application. For marketplaces, use offers to indicate the price of the app for a specific app instance.

If the app is free of charge, set offers.price to 0. For example:

"offers": {
  "@type": "Offer",
  "price": "0"
}

If the app has a price greater than 0, you must include offers.currency. For example:

"offers": {
  "@type": "Offer",
  "price": "1.00",
  "priceCurrency": "USD"
}
Rating or review

A rating or review of the app. You must include one of the following properties:

aggregateRating

AggregateRating

The average review score of the app. Follow the Review snippet guidelines and list of required and recommended AggregateRating properties.

review

Review

A single review of the app. Follow the Review snippet guidelines and list of required and recommended Review properties.

Recommended properties
applicationCategory

Text

The type of app (for example, BusinessApplication or GameApplication). The value must be a supported app type.

List of supported app types

  • GameApplication
  • SocialNetworkingApplication
  • TravelApplication
  • ShoppingApplication
  • SportsApplication
  • LifestyleApplication
  • BusinessApplication
  • DesignApplication
  • DeveloperApplication
  • DriverApplication
  • EducationalApplication
  • HealthApplication
  • FinanceApplication
  • SecurityApplication
  • BrowserApplication
  • CommunicationApplication
  • DesktopEnhancementApplication
  • EntertainmentApplication
  • MultimediaApplication
  • HomeApplication
  • UtilitiesApplication
  • ReferenceApplication
operatingSystem

Text

The operating system(s) required to use the app (for example, Windows 7, OSX 10.6, Android 1.6)

Extended properties for app subtypes

For mobile applications and web applications, Google also supports MobileApplication and WebApplication .

Troubleshooting

If you're having trouble implementing or debugging structured data, here are some resources that may help you.