Make a copy of the google sheet after you make the purchase and then enter you CX ID and API key to get started.
Get Google search results in Sheets – Download
Using this method, you can search google inside google sheets. Make sure you get your own google custom search API key. For any queries, please don’t hesitate to mail firstname.lastname@example.org.