You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/$%7Bsuccess?q=fetch&page=13&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 14500 results for "fetch"(2865ms)
11console.log("⏰ Cron at", new Date(interval.lastRunAt).toISOString());
1213// 1) Fetch & cache raw dump
14const raw = await fetch(RAW_URL).then(r => r.json());
15const rawJson = JSON.stringify(raw);
16const prev = await sqlite.execute({
29.slice(0, 50);
3031// 3) Fetch full details for those 50
32const details = await Promise.all(
33candidates.map(m => fetch(DETAIL_URL(m.id)).then(r => r.json())),
34);
35const detailsMap = new Map(details.map(m => [m.id, m]));
110};
111112const hubspotResponse = await fetch("https://api.hubapi.com/crm/v3/objects/contacts", {
113method: "POST",
114headers: {
129if (errorData.category === "CONFLICT") {
130// Contact already exists, update it
131const updateResponse = await fetch(`https://api.hubapi.com/crm/v3/objects/contacts/${email}?idProperty=email`, {
132method: "PATCH",
133headers: {
207}
208209const slackResponse = await fetch(slackWebhookUrl, {
210method: "POST",
211headers: {