How to get only the URL of one image from google search (API) - google-search-api

Is there a direct way of getting that url with custom search options?
Now i harvest the image url from the mobile page result (for example for an orange):
http://www.google.com/m/search?q=orange&site=images
Let's say i only want the url of the first image result for the word "orange" with a small image size.

Related

Accessing Image URL on Orchard using razor

I am using Orchard CMS. I am trying to access an image URL on a razor page as per the first image attached.
The output I get through google inspection is also attached as second image. I am simply trying to get rid the square braces so that I access the actual image file
I tried these:
#post.Content.Images.Images.Paths.[0]
#post.Content.Images.Images.Paths.first()
enter image description here
enter image description here
#Orchard.AssetUrl(post.Content.Images.Images.Paths[0])

Get thumbnail from website with Bing Web Search API

Currently I am working on a website that uses google search for searching pages in the domain, google returns a thumbnail from a specific page (Most of the time a random image it finds on the page) together with the search result.
Wanting to move to Bing Web Search API, because google will start adding adds to the result, I was wondering if there was any possibility to get a site's thumbnail together with the search on a specific website? Bing Web Search API Docs says that thumbnails are not supported for all webpages, however there is no clear explanation about how to add one. Is there a workaround for this?
Thanks!
If you are looking for search for your site only, you should use the Bing Custom Search: https://azure.microsoft.com/en-us/services/cognitive-services/bing-custom-search/. You can create your search instance from customsearch.ai. I see custom search returns thumbnails for (al)most (all) results.

Image sitemaps -- list same images on every page?

My website has very few images: 2 versions of the logo, a favicon, and a default user image. They are used on many pages. These images are also referenced from a /publicrelations page.
The website also has an animated image that is only in the background of the landing page, but I don't want this indexed.
When creating the image sitemap, should I
A: only do <url><loc>myurl.com/publicrelations</loc>infoAboutAllTheCommonImages</url>
B: do what is in "A" but for every page (i.e. <loc>urlToSomePage</loc>), even though every page will reference the same images
C: something else?
Thank you
The essence of including an image sitemap is for your image to be visible on the search engine results page. Question is- do you want your favicon and logo on the search results? If NO, forget about the sitemap.
If YES, there's no need to include the same image from every page. It's not relevant to the search results to have identical images. Just choose one.

Google shows alt-text as website title

I am trying to optimize a web site which is managed by typo3. There is a page on this website, let's call it seminars. When I ask google to search for this Website by entering "Big Company seminars", I receive a result which looks like that:
Logo Seminars - Big company
url://seminars.bigcompany.de
The string "Logo" should not be displayed there. So I checked the source code and found that:
<title>Seminars - Big Company</title>
and
<img src="BigCompanyLogo.png" alt="Logo Seminars">
It looks like Google takes the alternative text of this image and uses it as the title for their search results.
Any ideas?
Google Search may change webpage titles they show on their result page. You can’t control this.
About your alt content:
Is the page about "Logo Seminars", or does "Logo" mean that the image is the logo? In the latter case, you might want to remove "Logo" from the alt content (or place it, for example, in square brackets). Note that, if the image is the only content of the link, the alt content should describe the link target, not the image.

Hotlinking: How do I differentiate between an image in a <img> tag versus an image link?

I want to allow partial hotlinking to images on my website. I want to allow a specific site (Reddit) to be able to show an image from my website on their page, but if they click on the link to the image from that site, it should go to an image viewing page, rather than directly the image itself.
For example:
This other website should be able to have this
<img src="http://mySite.com/myImage.jpg"/>
on their page, and it should show the image. However, if they have this:
Link Text
A user who clicks on that link should get redirected to an image viewing page that contains some html, including the image, rather than directly to the image.
I'm trying to achieve this via mod_rewrite. However, those two cases have the same HTTP_REFERER. Is there anyway for my server to differentiate between that?
There is no way to do such thing! but if second site is your you can put optional query string at the end of URL the distinguish between them!