Today i did an update on the first sample code. the script now works properly with specialchars. now you can add an url filter to list only results from a certain domain (site:www://example.com). on youtube results the video information will be fetched from youtube API and placed by ajax below the specific entry. now there is also an opinion to direct download videos from youtube or convert them to mp3. you dont need ffmpeg to be installed, it redirects to www.youtubeinmp3.com. you can use their API instead of redirecting if you want. i will do that in the next update. also stylesheets and stuff will come on the next update. theres also an open search client included now and i will change from procedural to objective php for sure. thats the actual sample code. i hope it will help someone.