We want to implement a Google sitelink search box with a regular Google search. In the Google documentation, I found that we need to include the code below to enable the link search box
<script type="application/ld+json"> { "@context": "http://schema.org", "@type": "WebSite", "url": "https://www.example-petstore.com/", "potentialAction": { "@type": "SearchAction", "target": "https://query.example-petstore.com/search?q={search_term_string}", "query-input": "required name=search_term_string" } } </script>
But we are stuck in the "target" node in the above properties. Since we don’t have any search page of our own, we want to use a custom Google search method, so what value should I fill with this “target” node.
We have already created a Google search engine for our site. And found the code below there
<script> (function() { var cx = 'CX_ID'; var gcse = document.createElement('script'); gcse.type = 'text/javascript'; gcse.async = true; gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//www.google.com/cse/cse.js?cx=' + cx; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(gcse, s); })(); </script> <gcse:search></gcse:search>
We want to implement a search box for sitelinks, for example, Mashable , Imdb

Please indicate how to specify custom Google search in the link search code field.
thanks
source share