Bing Image Search

FREEMIUM
By Microsoft Azure | Updated 14 days ago | Media
Popularity

9.6 / 10

Latency

320ms

Service Level

100%

Back to All Discussions

https://github.com/naserhacker

require 'uri’
require 'net/http’
require 'openssl’
url = URI(“https://bing-image-search1.p.rapidapi.com/images/details?insightsToken=https%3A%2F%2Fwww.facebook.com%2Fprofile.php%3Fid%3D100020868198644&query=2.7.2-3”)
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
request = Net::HTTP::Get.new(url)
request[“x-rapidapi-host”] = 'bing-image-search1.p.rapidapi.com
request[“x-rapidapi-key”] = '11d6091e15msh9ef9973d83c2120p164864jsnca591bc897c9’
response = http.request(request)
puts response.read_body

Join in the discussion - add comment below:

Login / Signup to post new comments
Rating: 5 - Votes: 1