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=10&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"(1182ms)

fetchAPI1 file match

@pomdtr•Updated 10 months ago

GitHubAPI2 file matches

@iamseeley•Updated 10 months ago

ValTownAPI2 file matches

@iamseeley•Updated 10 months ago

httpApiScreenshotPageExample1 file match

@charlypoly•Updated 10 months ago

generateValCodeAPI2 file matches

@yawnxyz•Updated 10 months ago

geolocation_api_demo1 file match

@stevekrouse•Updated 11 months ago

API_URL2 file matches

@pomdtr•Updated 11 months ago

api1 file match

@nws•Updated 11 months ago

gameIdeaApi2 file matches

@xkonti•Updated 11 months ago

gptApiTemplate2 file matches

@xkonti•Updated 11 months ago

growingEmeraldGrasshoppermain.tsx6 matches

@speedadd•Updated 36 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