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=1041&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 11746 results for "api"(2516ms)

myApimain.tsx1 match

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

sitemain.tsx1 match

@nikitaUpdated 1 year ago
4 <html>
5 <h1>Welcome</h1>
6 <form action="https://api.val.town/express/@nikita.site" method="post">
7 <label>Email
8 <input type="text" name="email"/>

redditMatchesmain.tsx1 match

@bnorickUpdated 1 year ago
101 if (options.enableToggle) {
102 text.push(
103 `toggle: https://api.val.town/eval/@${username}.toggleSubreddits(%22${subreddit}%22)`
104 );
105 }

myApimain.tsx1 match

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

api500main.tsx1 match

@matthamlinUpdated 1 year ago
1export function api500(req: express.Request, res: express.Response) {
2 res.status(503);
3 res.json({

api400main.tsx1 match

@matthamlinUpdated 1 year ago
1export function api400(req: express.Request, res: express.Response) {
2 res.status(400);
3 res.json({

askLeximain.tsx2 matches

@thomasatflexosUpdated 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

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

untitled_apricotTortoisemain.tsx2 matches

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

denoGameHTMLmain.tsx6 matches

@rodrigotelloUpdated 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

gpt-image-test

@CaptainJackUpdated 13 hours ago
测试 gpt image 的不同 api 能否满足图片生成要求

new-val-api-21 file match

@shouserUpdated 1 day ago
This is an example of using the API to create a val.
papimark21
socialdata
Affordable & reliable alternative to Twitter API: ➡️ Access user profiles, tweets, followers & timeline data in real-time ➡️ Monitor profiles with nearly instant alerts for new tweets, follows & profile updates ➡️ Simple integration