You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/$2?q=fetch&page=2&format=json
For typeahead suggestions, use the /typeahead
endpoint:
https://codesearch.val.run/typeahead?q=fetch
Returns an array of strings in format "username" or "username/projectName"
Found 14160 results for "fetch"(1958ms)
31<pre><code>/huyhieu?url=<website>&label=<label>&value=<value>&color=<color>&text=<textColor>&size=<size></code></pre>
32<ul>
33<li><b>url</b> (optional): Website to fetch favicon from</li>
34<li><b>label</b> (optional): Left text (default: 'huy' if both label and value are missing)</li>
35<li><b>value</b> (optional): Right text (default: 'hieu' if both label and value are missing)</li>
98const urlObj = new URL('https://' + siteUrl)
99const faviconUrl = `${urlObj.origin}/favicon.ico`
100const res = await fetch(faviconUrl)
101if (res.ok) {
102const buffer = new Uint8Array(await res.arrayBuffer())
105}
106} catch {
107console.error('HuyHieu: Failed to fetch favicon:', siteUrl)
108faviconDataUrl = null // Fallback to no favicon if fetch fails
109}
110}
201const borderRadius = radiusParam !== undefined ? Number(radiusParam) : 0
202
203// Fetch VS Marketplace favicon
204try {
205const faviconUrl = 'https://marketplace.visualstudio.com/favicon.ico'
206const res = await fetch(faviconUrl)
207if (res.ok) {
208const buffer = new Uint8Array(await res.arrayBuffer())
211}
212} catch (error) {
213console.error('Failed to fetch VS Marketplace favicon:', error)
214}
215
216// Fetch stats from VS Marketplace API
217try {
218// Use the correct VS Marketplace Gallery API with POST method
219const apiUrl = 'https://marketplace.visualstudio.com/_apis/public/gallery/extensionquery'
220console.log('Fetching extension stats for:', namespace)
221
222const requestBody = {
234}
235
236const response = await fetch(apiUrl, {
237method: 'POST',
238headers: {
282}
283} catch (error) {
284console.error('Failed to fetch VS Marketplace stats:', error)
285value = 'Error'
286}
335})
336
337export default app.fetch
338// Serve the app in local to test
339Deno.serve(app.fetch)
340
5859// 3. Send the request to the APNs server.
60const apnsResponse = await fetch(
61// The APNs endpoint includes the target device token.
62`${endpoint}/${deviceToken}`,