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%22Image%20title%22?q=api&page=1052&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 11852 results for "api"(1179ms)

askLeximain.tsx2 matches

@thomasatflexos•Updated 1 year ago
27 const chat = new ChatOpenAI({
28 modelName: "gpt-3.5-turbo",
29 openAIApiKey: process.env.OPEN_API_KEY,
30 streaming: true,
31 callbacks: [{
36 const vectorStore = await SupabaseVectorStore.fromExistingIndex(
37 new OpenAIEmbeddings({
38 openAIApiKey: process.env.OPEN_API_KEY,
39 }),
40 {

myApimain.tsx1 match

@jfix•Updated 1 year ago
1export function myApi(name) {
2 return "hi " + name;
3}

untitled_apricotTortoisemain.tsx2 matches

@rodrigotello•Updated 1 year ago
1import { myApi } from "https://esm.town/v/blainandsimple/myApi?v=3";
2
3export let untitled_apricotTortoise = myApi("Rodrigo");

denoGameHTMLmain.tsx6 matches

@rodrigotello•Updated 1 year ago
113 scoreboard.push({ name, score });
114
115 // Call the function to update the scoreboard on the Val Town API
116 updateScoreboard(name, score);
117 }
118
119 function updateScoreboard(name, score) {
120 const apiUrl =
121 "https://api.val.town/v1/run/rodrigotello.updateDinoScoreboard";
122
123 fetch(apiUrl, {
124 method: "POST",
125 headers: {
158
159 // Fetch the latest scoreboard data
160 const apiUrl =
161 "https://api.val.town/v1/run/rodrigotello.dinoGameScoreboard";
162
163 // Sort the scoreboard by score in descending order

myApimain.tsx1 match

@sander•Updated 1 year ago
1export function myApi(name) {
2 return "hi " + name;
3}

myApimain.tsx1 match

@pmenze•Updated 1 year ago
1export function myApi(name) {
2 return "hi " + name;
3}

myApimain.tsx1 match

@sarincasm•Updated 1 year ago
1export function myApi(name) {
2 return "hi " + name;
3}

telegramBotmain.tsx2 matches

@narthur•Updated 1 year ago
1export const telegramBot = async (req: express.Request, res: express.Response) => {
2 // if (
3 // req.get("x-telegram-bot-api-secret-token") !==
4 // @me.secrets.telegram_webhook_token
5 // ) {
12 // const text: string = await @me.gptChat(req.body.message.text);
13 // @vtdocs.telegramSendMessage(
14 // @me.secrets.telegram_api_token,
15 // { chat_id: chatId, text },
16 // );

myApimain.tsx1 match

@pjlamb12•Updated 1 year ago
1export function myApi(name) {
2 return "hi " + name;
3}

aqimain.tsx1 match

@ian•Updated 1 year ago
4 let pm25 = (
5 await fetchJSON(
6 "https://api.openaq.org/v2/latest?" +
7 new URLSearchParams({
8 limit: "10",

social_data_api_project3 file matches

@tsuchi_ya•Updated 1 hour ago

simple-scrabble-api1 file match

@bry•Updated 18 hours ago
apiv1
papimark21