unofficial google image search

best free google  image search  APIs1.0 

Published by: ababeen software solution .











admin@ababeen.com

Categories: google unofficial image search api
Date added: 03/07/2016
 please reachout to us for any api consern issue . It’s alpha release

demo :   http://api.ababeen.com/api/demo.php

github : https://github.com/ababeen/google-image-search

Google free  image search is no longer available. Get similar api with 100 of result.

 

The api.ababeen.com  Search API enables developers to embed image  search results in applications or websites using JSON. Add search functionality to a website, create unique consumer or enterprise apps, or develop new  site.

Get Started

api version 1.0

url: http://api.ababeen.com/api/images.php?q=tiger (default 10 result)

http://api.ababeen.com/api/images.php?q=tiger&count=100 (maximum 100 results)

http://api.ababeen.com/api/images.php?q=tiger&preview=true

http://api.ababeen.com/api/images.php?q=tiger&preview=true&count=100

 

[sourcecode language=”csharp”]

sample code:

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
<script>
 $(document).ready(function() {
 $.ajax({
     url: "http://api.ababeen.com/api/images.php?q=tiger",
     success: function(data) {
         if ($.type("data") == "string") {
              data = $.parseJSON(data);
         }
         var elem = "";
         $.each(data, function(index, value) {
         document.write('<div>' + index + '<br/><a href="#"><img src = "' + value.tbUrl + '" > < /a><br/ > < /div>');
         var str = JSON.stringify(value);
        str = JSON.stringify(value, null, 4);
        document.write(str);
     });
 },
 error: function(jqXHR, textStatus, errorThrown) {
      alert("You can not send Cross Domain AJAX requests:" + errorThrown);
 }
 });
 });
</script>

PHP integration 

<?php
 $ch = curl_init();
 curl_setopt($ch, CURLOPT_URL, "http://api.ababeen.com/api/images.php?q=laptop");
 curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);

$result = curl_exec($ch);

curl_close($ch);
 $result = json_decode($res


ult, true);
 print_r($result[0]);

echo "---------------------";

echo $result[0]["originalContextUrl"];
 ?>

Leave a Reply