googleapis x-raw-image

1,047 views
Skip to first unread message

Виталик Андриянец

unread,
Jul 20, 2015, 6:17:17 AM7/20/15
to google-apis-e...@googlegroups.com
When I use googleapis for images search 

GET https://www.googleapis.com/customsearch/v1?filter=1&cx=011819304189693190087%3Anrfl5ba_euk&q=00000112&searchType=image&imgType=photo&safe=high&fileType=png%2C+jpg&hq=Item+1.1.2&key={YOUR_API_KEY}

I retreive this items

"items": [
{
"kind": "customsearch#result",
"title": "City Council Agenda",
"htmlTitle": "City Council Agenda",
"link": "x-raw-image:///c876954df336b7cbc811674aac41ed4765fd602bde2b99908b4de12607e29d21",
"displayLink": "www.desplaines.org",
"snippet": "City Council Agenda",
"htmlSnippet": "City Council Agenda",
"mime": "image/",
"fileFormat": "Image Document",
"image": {
"height": 1280,
"width": 1664,
"byteSize": 551732,
"thumbnailHeight": 115,
"thumbnailWidth": 150
}
}

How I can use x-raw-image link in html/js or how I can filter this results? 

Fletcher Johnson

unread,
Jul 30, 2015, 3:53:56 PM7/30/15
to Google APIs Explorer Users Forum, vitaly.an...@mainsoft.by
I too have the same question. At least I would like to know how to filter out the results of x-raw-images if we can't figure out how to use them. 
From my brief testing it looks like it shows up for pdf files. In your example, ["items"]["image"]["contextLink"] points to a PDF. Similarly in my testing I am getting x-raw-images for contextLink's that are PDFs.

  "items": [

  {

   "link": "x-raw-image:///8d25ebcdc11e32111a991a0f4f27e537a5eba1c27357bc7edc58a277d595c3a5",

   "image": {

    "contextLink": "http://mmbr.asm.org/content/62/4/1315.full.pdf"

   }

  },

  {

   "link": "http://cdn.pilefly.com/2015/05/12/d0b226c32111D.jpg",

   "image": {

    "contextLink": "http://capecoral.pilefly.com/musical-instruments/?catid=212&latitude=26.5745&longitude=-81.9438&subdomain=capecoral"

   }

  },

  {

   "link": "x-raw-image:///a909cc4ef8a8e8e0e1890c5cbe73728c7a121abc309a002b0bee9072e2f32111",

   "image": {

    "contextLink": "http://cagenweb.com/lr/calaveras/Calaveras.1850.pdf"

Reply all
Reply to author
Forward
0 new messages