Val Town Code SearchReturn to Val Town

API Access

You can access search results via JSON API by adding format=json to your query:

https://codesearch.val.run/$2?q=api&page=24&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 19787 results for "api"(3588ms)

runValAPIEx2 file matches

@stevekrouse•Updated 1 year ago

valtownAPIExamples2 file matches

@stevekrouse•Updated 1 year ago

myApi1 file match

@fsawakta•Updated 1 year ago

myApi1 file match

@baiheinet•Updated 1 year ago

myApi1 file match

@devn•Updated 1 year ago

myApiAdd2 file matches

@acmu•Updated 1 year ago

myApi1 file match

@inlustra•Updated 1 year ago

myApi1 file match

@robertoloja•Updated 1 year ago

myApi1 file match

@benfwalla•Updated 1 year ago

myApi1 file match

@siveshs•Updated 1 year ago

personal_trmnlmalifold_cron.tsx2 matches

@ramtinalami•Updated 7 mins ago
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

wixmain.tsx10 matches

@helge•Updated 2 hours ago
89async function createOrUpdateHubSpotContact(email: string, formData: any) {
90 try {
91 const hubspotApiKey = Deno.env.get("HUBSPOT_API_KEY");
92
93 if (!hubspotApiKey) {
94 console.warn("HUBSPOT_API_KEY not configured");
95 return { success: false, error: "API key not configured" };
96 }
97
110 };
111
112 const hubspotResponse = await fetch("https://api.hubapi.com/crm/v3/objects/contacts", {
113 method: "POST",
114 headers: {
115 "Authorization": `Bearer ${hubspotApiKey}`,
116 "Content-Type": "application/json",
117 },
129 if (errorData.category === "CONFLICT") {
130 // Contact already exists, update it
131 const updateResponse = await fetch(`https://api.hubapi.com/crm/v3/objects/contacts/${email}?idProperty=email`, {
132 method: "PATCH",
133 headers: {
134 "Authorization": `Bearer ${hubspotApiKey}`,
135 "Content-Type": "application/json",
136 },
145 }
146
147 console.error("HubSpot API error:", errorData);
148 return { success: false, error: errorData };
149 }
220 } else {
221 const errorText = await slackResponse.text();
222 console.error("Slack API error:", errorText);
223 return { success: false, error: errorText };
224 }
apiry
snartapi