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/$%7Bsuccess?q=fetch&page=635&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 9212 results for "fetch"(1304ms)

openaiproxymain.tsx2 matches

@roadlabs•Updated 7 months ago
28 const authHeader = req.headers.get("Proxy-Authorization") || req.headers.get("Authorization");
29 const token = authHeader ? parseBearerString(authHeader) : undefined;
30 const meRes = await fetch(`${API_URL}/v1/me`, { headers: { Authorization: `Bearer ${token}` } });
31 if (!meRes.ok) {
32 return new Response("Unauthorized", { status: 401 });
63 });
64
65 const openAIRes = await fetch(url, {
66 method: req.method,
67 headers,

bbaasfemain.tsx2 matches

@odicho•Updated 7 months ago
210 }
211 }
212 const response = await fetch(createEndpointUrl("invoke"), {
213 method: "POST",
214 body: JSON.stringify(body),
220};
221
222const data = await (await fetch(createEndpointUrl("describe"), { method: "POST" }))
223 .json() as NodeDescriberResult;
224

bbrunmain.tsx1 match

@yejun•Updated 7 months ago
115 const body = await req.json() as { $key: string };
116 body.$key = $key;
117 const response = await fetch(endpointURL, {
118 method: "POST",
119 headers: {

cooingTomatoSquirrelmain.tsx2 matches

@mrsnor•Updated 7 months ago
94 tokenUrl.searchParams.set("state", store.state);
95
96 const tokenResp = await fetch(tokenUrl.toString());
97 if (!tokenResp.ok) {
98 throw new Error(await tokenResp.text());
103 };
104
105 const resp = await fetch("https://lastlogin.io/userinfo", {
106 headers: {
107 Authorization: `Bearer ${access_token}`,

bbruncmain.tsx1 match

@dglazkov•Updated 7 months ago
123 const body = await req.json() as { $key: string };
124 body.$key = $key;
125 const response = await fetch(endpointURL, {
126 method: "POST",
127 headers: {

madpropsv2main.tsx3 matches

@elibcohen•Updated 7 months ago
62 // Load props data from API
63 async function loadProps() {
64 const statePropsData = await fetch("/api/state-props").then(res => res.json());
65 setStateProps(statePropsData);
66 }
72 // Load user choices from server
73 async function loadUserChoices() {
74 const choices = await fetch(`/api/user-choices?id=${userID}`).then(res => res.json());
75 setUserChoices(choices);
76 }
84 // Save user choices to server
85 if (userID) {
86 fetch(`/api/user-choices?id=${userID}`, {
87 method: "POST",
88 headers: {

redditSearchmain.tsx1 match

@jasperfurniss•Updated 7 months ago
20 try {
21 const url = constructSearchUrl(query);
22 const response = await fetch(url);
23 if (!response.ok) {
24 throw new Error(`HTTP error! status: ${response.status}`);

humansnapmain.tsx1 match

@ngmi•Updated 7 months ago
294 const email = document.getElementById('email').value;
295 try {
296 const response = await fetch('/api/subscribe', {
297 method: 'POST',
298 headers: { 'Content-Type': 'application/json' },

reMarkableXNYTCrosswordmain.tsx1 match

@bmalicoat•Updated 7 months ago
35 const puzzlePDFUrl = nytCrosswordURLPrefix + puzzleName + ".pdf";
36
37 console.log("Fetching " + puzzleName + " from " + puzzlePDFUrl + "...");
38
39 request({

waveFormmain.tsx2 matches

@all•Updated 7 months ago
139 const saveSequence = async () => {
140 try {
141 const response = await fetch("/api/save-sequence", {
142 method: "POST",
143 headers: {
159 const loadSequence = async () => {
160 try {
161 const response = await fetch("/api/load-sequence");
162 if (response.ok) {
163 const savedSequence = await response.json();

proxyFetch2 file matches

@vidar•Updated 1 day ago

TAC_FetchBasic2 file matches

@A7_OMC•Updated 1 day ago