Custom Search users have long been able to create Richer Snippets by adding Pagemaps to their webpages.
Today, Google Custom Search team annnounced of enabling direct submission of Pagemaps via either Sitemaps or On-Demand Indexing requests. “This means you no longer have to modify your pages to expose Pagemaps, or wait for Google to crawl your site to process them,” informed Google CSE team blog.
“This saves time when you want to make a quick change to your metadata. If you have data you would like to be displayed on your site, such as reviews snippets, you can submit it directly to Google instead of putting it in publicly visible markup on your pages.”
Here’s an example of how to add PageMap data directly to your HTML page:
Here’s an example of a Sitemap that includes PageMap information for two URLs: http://www.example.com/foo and http://www.example.com/bar.
< ?php xml version="1.0" encoding="UTF-8"?>
http://www.example.com/foo Dragon 3.5 http://www.example.com/bar Ribs 4.0
To submit PageMap data using the Custom Search Control API, send an HTTP POST message, using the text/xml content type, to: http://www.google.com/cse/api/default/index/
Monkeys 4.0/5.0 1000 100 Parrots 4.5/5.0 2000 200
Here’s an example of an AccessKey in use:
myprivate12345 1000 100
For more information, please visit this PageMap page.