Using google search api to only give results from certain websites

67 Views Asked by At

I'm making a react app that uses the google search api allows users to submit websites that they want their search results to come from. I'm having trouble with getting results only from those websites.

I've tried using the sitesearch parameter in my api call which didn't work. The google programmable search engine is able to filter out non-allowed sites however it seems that you have to manually add a list of sites to be searched for it. Any Ideas on what I can do?

1

There are 1 best solutions below

1
k1rit0 On

maybe you could give them a list of popular website and then if there are any other website they want they can just write it and when they write it they will get suggestion form drop down menu?