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/image-url.jpg%20%22Optional%20title%22?q=api&page=55&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 11762 results for "api"(897ms)

callPrivateAPI2 file matches

@galliganUpdated 1 year ago

myApi1 file match

@li_shuaiUpdated 1 year ago

myApi1 file match

@herveDarritchonUpdated 1 year ago

myApi1 file match

@nyjusticeUpdated 1 year ago

myApi1 file match

@hernquistUpdated 1 year ago

myApi1 file match

@AnappUpdated 1 year ago

myApi1 file match

@scothisUpdated 1 year ago

valtownApiTypesImportTest2 file matches

@stevekrouseUpdated 1 year ago

myApi1 file match

@hankensteinUpdated 1 year ago

myApi1 file match

@runaroramaUpdated 1 year ago
50 : `applications/${DISCORD_APP_ID}/commands`;
51
52 console.log(`📡 Using API endpoint: ${endpoint}`);
53
54 try {
58
59 // Register the command using POST for a single command
60 const response = await fetch(`https://discord.com/api/v10/${endpoint}`, {
61 method: "POST", // Using POST for single command creation
62 headers: {
35 : `applications/${DISCORD_APP_ID}/commands`;
36
37 console.log(`📡 Using API endpoint: ${endpoint}`);
38
39 try {
41 console.log("🔍 Checking current commands...");
42
43 const getResponse = await fetch(`https://discord.com/api/v10/${endpoint}`, {
44 method: "GET",
45 headers: {
62
63 // Send empty array to unregister all commands
64 const response = await fetch(`https://discord.com/api/v10/${endpoint}`, {
65 method: "PUT",
66 headers: {
apiv1
papimark21