Once you’ve created your custom search engine, you can add the Custom Search Element to your site. To do this, you’ll need to copy some code and paste it into your site’s HTML where you want your search engine to appear.
https://developers.google.com/custom-search/docs/tutorial/implementingsearchbox
Custom Search — Google Developers
1325