You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/$1?q=api&page=39&format=json
For typeahead suggestions, use the /typeahead
endpoint:
https://codesearch.val.run/typeahead?q=api
Returns an array of strings in format "username" or "username/projectName"
Found 19785 results for "api"(2795ms)
4const CACHE_RAW = "manifold_raw";
5const CACHE_SUMMARY = "manifold_summary";
6const RAW_URL = "https://api.manifold.markets/v0/markets?limit=100&sort=last-bet-time";
7const DETAIL_URL = (id) => `https://api.manifold.markets/v0/market/${id}`;
8const openai = new OpenAI();
9
88const recaptchaSecretKey = Deno.env.get("RECAPTCHA_SECRET_KEY");
89if (recaptchaSecretKey && recaptchaResponse) {
90const verifyUrl = `https://www.google.com/recaptcha/api/siteverify`;
91const verifyData = new URLSearchParams({
92secret: recaptchaSecretKey,
183additionalScripts = `
184<!-- Google reCAPTCHA script -->
185<script src="https://www.google.com/recaptcha/api.js" async defer></script>
186<script type="text/javascript">
187// Form validation function to check if captcha is completed