I need to search in google images for a photo and to take the first result and to put in picturebox.
The search is by a string that the user is picking.
please help.
I am Using c#
To hit the Google Image API from your c# code, you will need to perform an HTTP post request. I believe this post can show you how to format your request.
Also, it appears that the Google Image API is deprecated and will no longer work soon, according to this post.
Related
I'm trying to convert Youtube link on Facebook to it's original Youtube link.
But I could not find any code similar to this purpose.
I'm getting video url in this format, when posted on facebook
https://www.youtube.com/watch?v=https://m.facebook.com/story.php?story_fbid=137180674769618&id=744284273020098&refid=18&_ft_=qid.6890741645663138454%3Amf_story_key.778345062947352%3Agroup_id.744284273020098%3Atop_level_post_id.778345062947352%3Atl_objid.778345062947352%3Acontent_owner_id_new.100054330590900%3Apage_id.744284273020098%3Asrc.22%3Astory_location.6%3Astory_attachment_style.share%3Afilter.GroupStoriesByActivityEntQuery%3Atds_flgs.3%3Aott.AX89EZnntOWyt_cV%3Apage_insights.%7B%22744284273020098%22%3A%7B%22page_id%22%3A744284273020098%2C%22page_id_type%22%3A%22group%22%2C%22actor_id%22%3A100054330590900%2C%22dm%22%3A%7B%22isShare%22%3A1%2C%22originalPostOwnerID%22%3A0%7D%2C%22psn%22%3A%22EntGroupMallPostCreationStory%22%2C%22post_context%22%3A%7B%22object_fbtype%22%3A657%2C%22publish_time%22%3A1602049213%2C%22story_name%22%3A%22EntGroupMallPostCreationStory%22%2C%22story_fbid%22%3A%5B778345062947352%5D%7D%2C%22role%22%3A1%2C%22sl%22%3A6%7D%7D&__tn__=C-R
What I need to find, is the originally posted YouTube link like following..
https://www.youtube.com/watch?v=xxxxxxxxxx
Where should I start to achieve this? Any help would be highly appreciated.
Im building a C# program that shows the news feed from a RSS XML page and I want to include a feature that shows a link, the title (Which I already have) and the image preview of that link like it happens on Discord, or Messenger.
If we send a link of a post, for example, and that post has a image, it will show a preview (+/- like the pictures). Same happens for Youtube links, it shows the tumbnail of the video.
Here is an example of a link from a post on Discord and Messenger.
It displays the "main picture" of that post.
Discord example: http://prntscr.com/n8j0m6
Messenger example: http://prntscr.com/n8j29f
I want to extract the embedded/preview image from a link in C# or at least the link of that image (So I can then load it in the program) or create a similar preview system. That would be even better. But with the image link, I can create a method to do that automatically.
I havent had any luck finding anything similar so far. Maybe I am not using the correct term.
Thank You in advance.
I need to extract the details of a given youtube link, which might include:
1. Youtube Video,
2. Size of video,
3. Duration,
4. Thumbnail image,
5. Image - Height/width,
6. Size of thumbnail image,
7. Title of youtube video.
I have tried using youtube-api, but could not see if I can give the video URL and access the required details.
And other relevant details of the video. and then Need to display the video on my web page.
Which APIs are the best to use in this case.?
Thanks
All you need you can get from youtube-api. You just need to build right request with videoID from your link and parse json response, where is all data you want. Sample of such request:
GET https://www.googleapis.com/youtube/v3/videos?part=snippet&id=k4YRWT_Aldo&key={YOUR_API_KEY}
I'd like to implement the following: in a mobile app (Android, Windows Phone) the user takes a photo, and my app searches for such an image on the web. I was told that Google has something like that. I found a page about Google Image Search, but it is written that it is deprecated. It advises to use Custom Search instead, but I didn't find image search there (only text search).
My question is: does a solution for image searching from a mobile app exist?
google provide api for image search through keyword, you are looking for search through image ? may be this can of any help Google Search by Image API?
if you are looking for search by image tineye api is useful
I'm building an application in c# that needs to search google for images, pull the first result and display it.
How can I do it?
Thanks,
Tom
There is a (deprecated) Google Image Search API which you might use from your C# code. Here is an example on how to use it.
This could be helpful: http://www.codeproject.com/KB/IP/google_image_search_api.aspx