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=api&page=58&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 11504 results for "api"(664ms)

myApi1 file match

@norkin•Updated 1 year ago

myApi1 file match

@jinxingit•Updated 1 year ago

myApi1 file match

@gaylonalfano•Updated 1 year ago

myApi1 file match

@wllmx•Updated 1 year ago

myApi1 file match

@troygoode•Updated 1 year ago

myApi1 file match

@khy•Updated 1 year ago

myApi1 file match

@codinginpublic•Updated 1 year ago

myApi1 file match

@jackbridger•Updated 1 year ago

polygonDailyAPI2 file matches

@rwev•Updated 1 year ago

myApi1 file match

@dsandler•Updated 1 year ago

growingEmeraldGrasshoppermain.tsx6 matches

@speedadd•Updated 45 mins ago
4import React, { useEffect, useRef, useState } from "https://esm.sh/react@18.2.0";
5
6const ELEVENLABS_API_KEY = "sk_352c51c19a910aa3973cc146d057c11a1216da0eec41e0ee";
7const ELON_VOICE_ID = "UgBBYS2sOqTuMpoF3BR0"; // Specific Elon Musk voice ID
8
60 try {
61 for (const chunk of chunks) {
62 const response = await fetch(`https://api.elevenlabs.io/v1/text-to-speech/${ELON_VOICE_ID}`, {
63 method: "POST",
64 headers: {
65 "Content-Type": "application/json",
66 "xi-api-key": ELEVENLABS_API_KEY,
67 },
68 body: JSON.stringify({
161 setError(error.message);
162
163 // Fallback response if API fails
164 const fallbackResponse = {
165 role: "Character",
424 try {
425 const openai = new OpenAI({
426 apiKey:
427 "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",
428 });
432 console.log("Received messages:", JSON.stringify(messages, null, 2));
433
434 // Prepare messages for OpenAI API
435 const formattedMessages = [
436 { role: "system", content: CHARACTER_DESCRIPTION },

instagram-toolsfollows-check.jsx1 match

@julianpera•Updated 1 hour ago
4export default async function handleCron(interval) {
5 const following = await fetchCookie(
6 "https://www.instagram.com/api/v1/friendships/375942300/following/?query=miguelse10",
7 {
8 method: "GET",
apiv1
papimark21