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/?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 15222 results for "api"(1595ms)

panphoraDistanceTimedmain.tsx2 matches

@stevekrouse•Updated 1 year ago
1import { runValAPI } from "https://esm.town/v/stevekrouse/runValAPI";
2import { timed } from "https://esm.town/v/stevekrouse/timed";
3import { panphoraDistanceTimes } from "https://esm.town/v/stevekrouse/panphoraDistanceTimes";
6 panphoraDistanceTimes.push(
7 await timed(() =>
8 runValAPI(
9 "@panphora.distance",
10 "barclay center",

braveAgentmain.tsx2 matches

@jacoblee93•Updated 1 year ago
15 const model = new ChatOpenAI({
16 temperature: 0,
17 openAIApiKey: process.env.OPENAI_API_KEY,
18 });
19 const tools = [
20 new BraveSearch({
21 apiKey: process.env.BRAVE_SEARCH_API_KEY,
22 }),
23 new Calculator(),

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

telegramDalleBotmain.tsx1 match

@hootz•Updated 1 year ago
9) => {
10 if (
11 req.get("x-telegram-bot-api-secret-token") !==
12 process.env.telegramDalleBotWebhookSecret
13 ) {

myApimain.tsx1 match

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

chatmain.tsx2 matches

@darrinm•Updated 1 year ago
1import { chatMessages } from "https://esm.town/v/darrinm/chatMessages";
2
3// https://api.val.town/express/@darrinm.chat
4export const chat = (req, res) => {
5 const messages = chatMessages.map(({ message, sender }) =>
22 document.getElementById("message-input").value = '';
23 const ul = document.getElementById("inbox");
24 const data = await fetch("https://api.val.town/v1/eval/@darrinm.sendChatMessage('" + message + "','"+ sender + "')")
25 .then(res => res.json())
26 .then(res => res.data)

myApimain.tsx1 match

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

HN-fetch-call2 file matches

@ImGqb•Updated 21 hours ago
fetch HackerNews by API

token-server1 file match

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