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=57&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"(989ms)
50: `applications/${DISCORD_APP_ID}/commands`;
5152console.log(`📡 Using API endpoint: ${endpoint}`);
5354try {
5859// Register the command using POST for a single command
60const response = await fetch(`https://discord.com/api/v10/${endpoint}`, {
61method: "POST", // Using POST for single command creation
62headers: {
35: `applications/${DISCORD_APP_ID}/commands`;
3637console.log(`📡 Using API endpoint: ${endpoint}`);
3839try {
41console.log("🔍 Checking current commands...");
4243const getResponse = await fetch(`https://discord.com/api/v10/${endpoint}`, {
44method: "GET",
45headers: {
6263// Send empty array to unregister all commands
64const response = await fetch(`https://discord.com/api/v10/${endpoint}`, {
65method: "PUT",
66headers: {