Les nouveautés et Tutoriels de Votre Codeur | SEO | Création de site web | Création de logiciel

seo Check out the Custom Search API 2013

Seo Master present to you:

Have you ever wished that you could harness the power of Google to create a customized search engine for your website or a collection of websites? Custom Search lets you do that in under five minutes—and that includes time for a tea break. Pretty sweet, eh? If you have more time, you could take the customization to the next level. You can select websites to include, ignore, or prioritize in your search engine. You can even tweak the ranking of your search results and change the look and feel of your results page, among other things.

If you are curious about how tricked-out custom search engines work, you don't have to look further than the Custom Search API page on Google Code. Go ahead, try out some search queries and be sure to visit the Custom Search Directory, which showcases some popular custom search engines. And close to home, we use a combination of the Custom Search API and the AJAX Search API to power search on Google Code.

To learn more about this API, see the developer guide and join us over in the discussion group.
2013, By: Seo Master

seo Image results now available from the Custom Search API 2013

Seo Master present to you: Author Photo
By Nam Nguyen, Software Engineer

Last year we added image results to Google Custom Search Engines to enable sites to offer image-only results that showcase photos and other digital images. For site owners who want more flexibility in presentation, they are also now available from the Custom Search API.

Read more about accessing Image Results from the Custom Search API or try it out in the Custom Search API Explorer. For billing purposes, image queries will be treated the same as web queries. If you are still using the deprecated Google Image Search API, now’s a great time to switch!

Below is an example of an image search to find small jpeg images of flowers:

https://www.googleapis.com/customsearch/v1?key=YOUR_API_KEY&cx=YOUR_CSE_ID&q=flower&searchType=image&fileType=jpg&imgSize=small&alt=json

With a valid key and cse id, here is a possible json result returned for an image item:
{
"kind": "customsearch#result",
"title": "flower-photo",
"htmlTitle": "\u003cb\u003eflower\u003c/b\u003e-photo",
"link": "http://images.example.com/flowerphoto.jpg",
"displayLink": "images.example.com",
"snippet": "photo of flower",
"htmlSnippet": "photo of \u003cb\u003eflower\u003c/b\u003e",
"mime": "image/jpeg",
"image": {
"contextLink": "http://images.example.com/flowergallery.html",
"height": 100,
"width": 100,
"byteSize": 6104,
"thumbnailLink": "https://encrypted-tbn2.google.com/images?q=tbn:3x4MPL3",
"thumbnailHeight": 82,
"thumbnailWidth": 82
}
}

which you can use to render the image in your own site.

Note that you need to enable image search in your custom search engine control panel for the custom image search to work.


Nam Nguyen works on the JSON/Atom Custom Search API, which lets developers retrieve and display results from Google Custom Search programmatically. He is dedicated to making developers' lives a little easier by providing a simple API.

Posted by Scott Knaster, Editor
2013, By: Seo Master
Powered by Blogger.