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/?q=fetch&page=406&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 6156 results for "fetch"(938ms)

surpassingTealRoundwormmain.tsx1 match

@stevekrouse•Updated 6 months ago
23
24 try {
25 const response = await fetch("/", {
26 method: "POST",
27 body: JSON.stringify({ prompt, currentCode: code }),

cooperativeBronzeWildcatmain.tsx1 match

@stevekrouse•Updated 6 months ago
25
26 try {
27 const response = await fetch("/", {
28 method: "POST",
29 body: JSON.stringify({ prompt, currentCode: code }),

savvyPurpleSpoonbillmain.tsx1 match

@stevekrouse•Updated 6 months ago
25
26 try {
27 const response = await fetch("/", {
28 method: "POST",
29 body: JSON.stringify({ prompt, currentCode: code }),

cerebras_debatermain.tsx1 match

@stevekrouse•Updated 6 months ago
36 const generateNextMessage = async () => {
37 const currentSpeaker = conversation.length % 2 === 0 ? 1 : 2;
38 const res = await fetch("?nextMessage=true", {
39 method: "POST",
40 body: JSON.stringify({

intellectualMaroonMockingbirdmain.tsx1 match

@stevekrouse•Updated 6 months ago
25
26 try {
27 const response = await fetch("/", {
28 method: "POST",
29 body: JSON.stringify({ prompt, currentCode: code }),

intellectualMaroonMockingbirdmain.tsx1 match

@stevekrouse•Updated 6 months ago
25
26 try {
27 const response = await fetch("/", {
28 method: "POST",
29 body: JSON.stringify({ prompt, currentCode: code }),

truthfulAmethystParakeetmain.tsx1 match

@stevekrouse•Updated 6 months ago
25
26 try {
27 const response = await fetch("/", {
28 method: "POST",
29 body: JSON.stringify({ prompt, currentCode: code }),

truthfulAmethystParakeetmain.tsx1 match

@stevekrouse•Updated 6 months ago
25
26 try {
27 const response = await fetch("/", {
28 method: "POST",
29 body: JSON.stringify({ prompt, currentCode: code }),

southcloudmain.tsx1 match

@temptemp•Updated 6 months ago
1import CryptoJS from "npm:crypto-js";
2const regex = /case (0[xX][\da-fA-F]+):([a-zA-Z\d]+)=(.),([a-zA-Z\d]+)=(.)/gm;
3const req = await fetch("https://southcloud.tv/js/player/a/sc/prod/p1-debug.min.js");
4const str = await req.text();
5let m;

retiredRedMarlinmain.tsx14 matches

@temptemp•Updated 6 months ago
1import { base } from "https://esm.town/v/tempguy/southcloud";
2
3async function fetchStreamLink() {
4 try {
5 const headers = {
8 "Accept-Language": "en-US,en;q=0.5",
9 "x-site": "anicrush",
10 "Sec-Fetch-Dest": "empty",
11 "Sec-Fetch-Mode": "cors",
12 "Sec-Fetch-Site": "same-site",
13 };
14
15 // Fetch search results
16 const search = await fetch("https://api.anicrush.to/shared/v2/movie/list?keyword=One Piece&limit=10&page=1", {
17 headers,
18 });
21 const id = searchResult.result.movies[0].id;
22
23 // Fetch server data
24 const serverData = await fetch(`https://api.anicrush.to/shared/v2/episode/servers?_movieId=${id}&ep=1`, {
25 headers,
26 });
28 const serverId = serverDataResult.result.sub[0].server;
29
30 // Fetch server link
31 const serverLink = await fetch(
32 `https://api.anicrush.to/shared/v2/episode/sources?_movieId=${id}&ep=1&sv=${serverId}&sc=sub`,
33 { headers },
36 const sid = new URL(serverLinkResult.result.link).pathname.split("/")[3];
37
38 // Fetch stream link
39 const streamLink = await fetch(`https://southcloud.tv/e/ajax/p-1/getSources?id=${sid}`);
40 const streamLinkResult = await streamLink.json();
41
44 console.log(base(streamLinkResult.sources)[0].file);
45 } catch (error) {
46 console.error("Error fetching stream link:", error);
47 }
48}
49
50// Call the function
51fetchStreamLink();

fetchPaginatedData2 file matches

@nbbaier•Updated 1 week ago

tweetFetcher2 file matches

@nbbaier•Updated 1 week ago