Google Product Forums

how to use siteSearchFilter parameter method of rest API to exlcude the list of sites


pritesh1 May 19, 2012 7:15 AM
Posted in group: Google Custom Search

Categories: Indexing and Results :


Hello


Any one know how to use the  siteSearchFilter ,siteSearch parameter Using REST API to exlcude the list of domains and i want to also looking for one custome search where i can use the include the list of sites for my custom serarch

Here is my custom search link URL

        url = 'https://www.googleapis.com/customsearch/v1?key=AIzaSyBycgu-SqRyO0gNR5u6YTJp30WiGUTOD3A&cx=013036536707430787589:_pqjad5hr1a&q='+str(keyword)+'&alt=json&start='+str(page)+'&siteSearch='+str(sitesearch)+'&siteSearchFilter=%s'%str(e)

where here

sitesearch = list of sites eg.facebook.com,gmail.com

and e='e' means exclude if i pass 'i' means include between any way its not working

can anyone tell me the correct syntax to make working


same thing i am looking for 
dateRestrict parameter  i wan to use in my custom search




Thanks
pritesh