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=10&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 8143 results for "fetch"(1364ms)

fetchText2 file matches

@mgruel•Updated 1 year ago

fetchPelotonData1 file match

@andreterron•Updated 1 year ago

fetchWithJSON1 file match

@yuler•Updated 1 year ago

fetchDOEMenu2 file matches

@tal•Updated 1 year ago

discordFetch2 file matches

@stevekrouse•Updated 1 year ago

fetchHeaders22 file matches

@stevekrouse•Updated 1 year ago

fetchHeaders21 file match

@mrahnis•Updated 1 year ago

fetchHtmlDom2 file matches

@aeaton•Updated 1 year ago

fetchReadwiseList1 file match

@ofalvai•Updated 1 year ago

fetchTable2 file matches

@stevekrouse•Updated 1 year ago

wonderfulBlushMagpiemain.tsx6 matches

@bgtgtgfgvbtgvgb•Updated 44 mins ago
11
12 useEffect(() => {
13 fetchShorts();
14 }, []);
15
16 const fetchShorts = async () => {
17 try {
18 const response = await fetch('/get-shorts');
19 const data = await response.json();
20 setShorts(data);
21 } catch (err) {
22 console.error('Failed to fetch shorts', err);
23 }
24 };
40
41 try {
42 const response = await fetch('/add-short', {
43 method: 'POST',
44 headers: {
50 if (response.ok) {
51 setNewShortLink('');
52 fetchShorts();
53 }
54 } catch (err) {

instagram-toolsfollows-check.jsx4 matches

@julianpera•Updated 51 mins ago
1import makeFetchCookie from "npm:fetch-cookie";
2const fetchCookie = makeFetchCookie(fetch);
3
4export default async function handleCron(interval) {
5 const following = await fetchCookie(
6 "https://www.instagram.com/api/v1/friendships/375942300/following/?query=miguelse10",
7 {
16 const isFollowing = following.users.some((user) => user.username === "miguelse10");
17
18 const pushNotification = await fetchCookie("https://ntfy.sh/alEMfLpdpoXMe6jB", {
19 method: "POST",
20 body: `Mafalda ${isFollowing ? "lo está siguiendo" : "no lo está siguiendo"} a Miguel.`,