Display product information directly in Yahoo! Search. Add code to indicate to Yahoo! that a product exists on your page, and when we next crawl your site, we'll take care of the rest. From your markup, we’ll be able to extract structured data from your site and render it automatically in an enhanced result in search results.
Copy this code and replace the example text with your data to see enhanced product information in Yahoo! Search.
<div typeof="product:Product" xmlns:product="http://search.yahoo.com/searchmonkey/product/" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"> <span property="product:listPrice">27.99</span> <span property="product:currency" content="USD"></span> <span property="rdfs:label">Startech Serial ATA Cable - 45.72cm - Red</span> </div>
<div typeof="product:Product" xmlns:product="http://search.yahoo.com/searchmonkey/product/" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:commerce="http://search.yahoo.com/searchmonkey/commerce/" xmlns:media="http://search.yahoo.com/searchmonkey/media/" xmlns:vcard="http://www.w3.org/2006/vcard/ns#" xmlns:review="http://purl.org/stuff/rev#" xmlns:xsd="http://www.w3.org/2001/XMLSchema#" xmlns:use="http://search.yahoo.com/searchmonkey-datatype/use/" xmlns:currency="http://search.yahoo.com/searchmonkey-datatype/currency/"> <span property="product:listPrice">34.99</span> <span property="product:salePrice">27.99</span> <span property="product:currency" content="USD" /> <span property="product:identifier" datatype="use:sku">10363780</span> <span property="rdfs:label">Startech Serial ATA Cable - 45.72cm - Red</span> <span property="rdfs:comment">If you're one of the growing numbers of PC users with a mini or micro form factor case, you know that you don't have a lot of room to spare. These right-angle Serial ATA cables guarantee you''ll be able to plug in your high-performance Serial ATA 150 hard drives, no matter how tight your space is. With their thin, narrow construction, these flexible cables improve airflow and reduce clutter in your case, helping to keep your case clean and cool. And, like all our cables, they're backed by our lifetime warranty.</span> <span rel="rdfs:seeAlso media:image"> <img src="http://example.com/product.jpg"/> </span> <div rel="product:manufacturer"> <span typeof="vcard:VCard commerce:Business"> <a rel="vcard:url" href="http://www.example.org/company"></a> <span property="vcard:organization-name">Startech Computer Products</span> </span> </div> <a rel="product:specification" href="http://example.com/spec"></a> <a rel="product:faq" href="http://example.com/faq"></a> <a rel="product:manual" href="http://example.com/manual"></a> <!-- NOTE: this is the review of the product, not the seller! --> <div rel="review:hasReview"> <span typeof="review:Review"> <span property="review:rating" datatype="xsd:float">4.5</span> <span property="review:minRating" datatype="xsd:integer">0</span> <span property="review:maxRating" datatype="xsd:integer">5</span> <span property="review:totalRatings" datatype="xsd:integer">45</span> </span> </div> </div>
This metadata will be available in SearchMonkey and Yahoo! Search BOSS for further use. For more information, refer to the RDFa specification or the RDFa wiki.
NOTE: To validate your markup with RDFa attributes, use this W3C DOCTYPE: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
<div typeof="gr:Offering" xmlns:gr="http://purl.org/goodrelations/v1#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" > <div rel="gr:hasPriceSpecification"> <span property="gr:hasCurrencyValue">34.99</span> <span property="gr:hasCurrency">USD</span> </div> <div rel="gr:includesObject"> <div rel="gr:typeOfGood"> <div typeof="gr:ProductOrServicesSomeInstancesPlaceholder"> <span property="rdfs:label">Startech Serial ATA Cable - 45.72cm - Red</span> </div> </div> </div> </div>
<div typeof="gr:Offering" xmlns:gr="http://purl.org/goodrelations/v1#" xmlns:product="http://search.yahoo.com/searchmonkey/product/" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:media="http://search.yahoo.com/searchmonkey/media/" xmlns:vcard="http://www.w3.org/2006/vcard/ns#" xmlns:review="http://purl.org/stuff/rev#" xmlns:xsd="http://www.w3.org/2001/XMLSchema#" xmlns:use="http://search.yahoo.com/searchmonkey-datatype/use/" xmlns:currency="http://search.yahoo.com/searchmonkey-datatype/currency/"> <!-- Two price specifications: a list price and a sale price --> <div rel="gr:hasPriceSpecification"> <span property="gr:hasCurrencyValue">34.99</span> <span property="gr:hasCurrency">USD</span> </div> <div rel="gr:hasPriceSpecification"> <span property="gr:isListPrice" datatype="xsd:boolean">false</span> <span property="gr:hasCurrencyValue">27.99</span> <span property="gr:hasCurrency">USD</span> </div> <div rel="gr:includesObject"> <span property="gr:amountOfThisGood" datatype="xsd:float">1.0</span> <div rel="gr:typeOfGood"> <div typeof="product:Product gr:ProductOrServicesSomeInstancesPlaceholder"> <span property="gr:hasEAN_UCC-13">00010363780</span> <span property="product:identifier" datatype="use:sku">10363780</span> <span property="rdfs:label">Startech Serial ATA Cable - 45.72cm - Red</span> <span property="rdfs:comment">If you're one of the growing numbers of PC users with a mini or micro form factor case, you know that you don't have a lot of room to spare. These right-angle Serial ATA cables guarantee you''ll be able to plug in your high-performance Serial ATA 150 hard drives, no matter how tight your space is. With their thin, narrow construction, these flexible cables improve airflow and reduce clutter in your case, helping to keep your case clean and cool. And, like all our cables, they're backed by our lifetime warranty.</span> <span rel="rdfs:seeAlso media:image"> <img src="http://example.com/product.jpg"/> </span> <div rel="product:manufacturer"> <span typeof="vcard:VCard commerce:Business"> <a rel="vcard:url" href="http://www.example.org/company"></a> <span property="vcard:organization-name">Startech Computer Products</span> </span> </div> <a rel="product:specification" href="http://example.com/spec"></a> <a rel="product:faq" href="http://example.com/faq"></a> <a rel="product:manual" href="http://example.com/manual"></a> <!-- NOTE: this is the review of the product, not the seller! --> <div rel="review:hasReview"> <span typeof="review:Review"> <span property="review:rating" datatype="xsd:float">4.5</span> <span property="review:minRating" datatype="xsd:integer">0</span> <span property="review:maxRating" datatype="xsd:integer">5</span> <span property="review:totalRatings" datatype="xsd:integer">45</span> </span> </div> </div> </div> </div> </div>
You may include even more data than this, such as user information and review information. This metadata will be available in SearchMonkey and Yahoo! Search BOSS for further use. For more information, refer to the RDFa specification or the RDFa wiki.
NOTE: To validate your markup with RDFa attributes, use this W3C DOCTYPE:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
<y:adjunct xmlns:y="http://search.yahoo.com/datarss/" version="1.0" name="YOURID"> <y:item rel="dc:subject"> <y:type typeof="commerce:Business gr:BusinessEntity"> <y:item rel="gr:offers"> <y:type typeof="gr:Offering"> <y:item rel="gr:includesObject"> <y:meta property="gr:amountOfThisGood" datatype="xsd:float">1.0</y:meta> <y:item rel="gr:typeOfGood"> <y:type typeof="product:Product gr:ProductOrServicesSomeInstancesPlaceholder"> <y:meta property="rdfs:label">Startech Serial ATA Cable - 45.72cm - Red</y:meta> <y:meta property="rdfs:comment">If you're one of the growing numbers of PC users with a mini or micro form factor case, you know that you don't have a lot of room to spare. These right-angle Serial ATA cables guarantee you''ll be able to plug in your high-performance Serial ATA 150 hard drives, no matter how tight your space is. With their thin, narrow construction, these flexible cables improve airflow and reduce clutter in your case, helping to keep your case clean and cool. And, like all our cables, they're backed by our lifetime warranty. </y:meta> <y:meta property="product:identifier" datatype="use:sku">10363780</y:meta> <y:item rel="rdfs:seeAlso media:image" resource="http://example.com/image.jpg"/> <y:item rel="product:manufacturer"> <y:type typeof="vcard:VCard commerce:Business"> <y:item rel="vcard:url" href="http://www.example.org/company"/> <y:meta property="vcard:organization-name">Startech Computer Products</y:meta> </y:type> </y:item> <y:item rel="review:hasReview"> <y:type typeof="review:Review"> <y:meta property="review:rating" datatype="xsd:integer"/> <y:meta property="review:minRating" datatype="xsd:integer">0</y:meta> <y:meta property="review:maxRating" datatype="xsd:integer">5</y:meta> <y:meta property="review:totalRatings" datatype="xsd:integer">3,601</y:meta> </y:type> </y:item> </y:type> </y:item> </y:item> <y:item rel="gr:hasPriceSpecification"> <y:meta property="gr:isListPrice" datatype="xsd:boolean">false</y:meta> <y:meta property="gr:hasCurrencyValue" datatype="currency:USD">19.79</y:meta> <y:meta property="gr:hasCurrency">USD</y:meta> </y:item> <y:item rel="gr:hasPriceSpecification"> <y:meta property="gr:isListPrice" datatype="xsd:boolean">true</y:meta> <y:meta property="gr:hasCurrencyValue" datatype="currency:USD">29.99</y:meta> <y:meta property="gr:hasCurrency">USD</y:meta> </y:item> </y:type> </y:item> </y:type> </y:item> </y:adjunct>
This markup would be included in a DataRSS feed.
Test your markup to make sure your enhanced result will appear.
This can take up to a few weeks depending on your site.
Copyright © 2009 Yahoo! Inc. All rights reserved. Copyright | Privacy Policy | Terms of Service
Help us continue to improve the Yahoo! Developer Network: Send Your Suggestions