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=1034&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 11394 results for "api"(1037ms)

myApimain.tsx1 match

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

myApimain.tsx1 match

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

getLangSmithBuildermain.tsx2 matches

@webup•Updated 1 year ago
5 const { LangChainTracer } = await import("npm:langchain/callbacks");
6 const client = new Client({
7 apiUrl: "https://api.smith.langchain.com",
8 apiKey: process.env.LANGSMITH,
9 ...options,
10 });

myApimain.tsx1 match

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

githubReposmain.tsx1 match

@grantcuster•Updated 1 year ago
3// GitHub repos
4export let githubRepos = fetchJSON(
5 "https://api.github.com/users/stevekrouse/repos"
6);

pugmain.tsx1 match

@wilt•Updated 1 year ago
14 const { default: genCode } = await pugCodegen;
15 const pugFnStr = genCode(parser.parse(), { inlineRuntimeFunctions: true });
16 const evalResp = await fetch("https://api.val.town/v1/eval", {
17 method: "POST",
18 body: JSON.stringify({

myApimain.tsx1 match

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

nyChargingStationsmain.tsx1 match

@tmcw•Updated 1 year ago
6 const { micromark } = await import("npm:micromark");
7 const rows = await fetch(
8 "https://data.ny.gov/api/views/7rrd-248n/rows.csv?accessType=DOWNLOAD&sorting=true",
9 )
10 .then((r) => r.text())

evalPost1main.tsx1 match

@stevekrouse•Updated 1 year ago
2
3export let evalPost1 = fetchJSON(
4 "https://api.val.town/v1/eval",
5 {
6 method: "POST",

autoGPT_Testmain.tsx3 matches

@stevekrouse•Updated 1 year ago
4
5export let autoGPT_Test = (async () => {
6 const { Configuration, OpenAIApi } = await import("npm:openai@3.2.1");
7 const configuration = new Configuration({
8 apiKey: process.env.openai,
9 });
10 const openai = new OpenAIApi(configuration);
11 const completion = await openai.createChatCompletion({
12 model: "gpt-4",

mod-interview-api1 file match

@twschiller•Updated 4 hours ago

daily-advice-app1 file match

@dcm31•Updated 3 days ago
Random advice app using Advice Slip API
apiv1
papimark21