Tag Archives: php api

Google Hot/Top Trends By Countries : PHP implementation

Hey there,

Google Trends is a public web facility of Google Inc., based on Google Search, that shows how often a particular search term is entered relative to the total search volume across various regions of the world, and in various languages. Google Hot/Top Trends displays the top 20 hot, i.e., fastest rising, searches (search-terms) of the past hour from many countries around the Globe. This is for searches that have recently experienced a sudden surge in popularity. I was in search for finding top keywords for one of my online service Social Media Search. Somehow I managed to get Google trends atom feed URL from my Stackoverflow. The atom feed URL which I got from Stackoverflow was for Google Global Hot Trends (United States) & I had collected other Google top level country domains to integrate with the PHP version of  Google hot trends by Countries.

I’m giving the details below:

Google Trends Class (googleTrends.php), Which is really diminutive.

Usage :

Click here to download complete source code from GitHub

Share it..Cheers..:)

Google Image Search API With PHP

Hey there,

For One of my Online Service, I wanted to provide some image results apart from my real output. So I had to search for any of the Image search API with PHP. But I didn’t get any proper solution for my requirement. Finally I’ve modified one of the Image API URL (Eg. https://www.google.com/uds/GimageSearch?rsz=8&q=sachin+tendulkar&v=1.0&start=0&imgsz=small) which I got after in depth searching. The PHP Source is really small & simple. In PHP code, I’ve used

function to read JSON response returned from the Image search API &

function (with second parameter set to true) converts the JSON string into array. You can process this final array according to your requirement.

Click Here for Live Demo & Source Code

GitHub Repository

Hope it’ll be useful for you. Share it. Cheers..:)