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/$2?q=api&page=1411&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 15466 results for "api"(4584ms)

mathFactmain.tsx1 match

@cathy•Updated 1 year ago
3// Random math fact
4export let mathFact = fetchText(
5 "http://numbersapi.com/random/math"
6);

myApimain.tsx1 match

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

myApimain.tsx1 match

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

questionsWithGuidelinesChainmain.tsx2 matches

@jacoblee93•Updated 1 year ago
20 const questionChain = questionPrompt
21 .pipe(new ChatOpenAI({
22 openAIApiKey: process.env.OPENAI_API_KEY,
23 })
24 .pipe(new StringOutputParser()));
32 .pipe(
33 new ChatOpenAI({
34 openAIApiKey: process.env.OPENAI_API_KEY,
35 }),
36 )

myApimain.tsx1 match

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

sitemain.tsx1 match

@nikita•Updated 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

@bnorick•Updated 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

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

api500main.tsx1 match

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

api400main.tsx1 match

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

HN-fetch-call2 file matches

@ImGqb•Updated 2 days ago
fetch HackerNews by API

token-server1 file match

@kwhinnery_openai•Updated 3 days ago
Mint tokens to use with the OpenAI Realtime API for WebRTC
Kapil01
apiv1