I don't get it. Like you want to query google to find out where your stuff is? Or you want to check out tags on other sites? cURL will do both.
i think he just wants to highlight keywords in a search or something. if that's the case it's rather simple with a basic regular expression match and replacement. preg_replace("/my keyword/i","<span class=\"highlight\">$0</span>",$data); PHP: