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/$%7Bart_info.art.src%7D?q=api&page=1027&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 11410 results for "api"(1803ms)

githubUsermain.tsx1 match

@mbforbes•Updated 1 year ago
3// Github profile
4export let githubUser = fetchJSON(
5 "https://api.github.com/users/mbforbes"
6);

untitled_blackBoamain.tsx2 matches

@stevekrouse•Updated 1 year ago
1import { exportedKeys } from "https://esm.town/v/stevekrouse/exportedKeys";
2import { valTownInspoList } from "https://esm.town/v/rodrigotello/valTownInspoList?v=99";
3import { runValAPIAuth } from "https://esm.town/v/stevekrouse/runValAPIAuth";
4
5export let untitled_blackBoa = runValAPIAuth({
6 val: "@rodrigotello.updateInspoList",
7 args: [

evalPost2main.tsx1 match

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

spotifyTracksmain.tsx2 matches

@stevekrouse•Updated 1 year ago
1import { spotifyAPI } from "https://esm.town/v/stevekrouse/spotifyAPI";
2
3export let spotifyTracks = (token, playlistId) => spotifyAPI({
4 endpoint: `playlists/${playlistId}/tracks`,
5 token: token,
17 let streamedResponse = "";
18 const streamingModel = new ChatOpenAI({
19 openAIApiKey: process.env.OPENAI_API_KEY,
20 streaming: true,
21 callbacks: [{
26 });
27 const nonStreamingModel = new ChatOpenAI({
28 openAIApiKey: process.env.OPENAI_API_KEY,
29 });
30 /* Create the vectorstore */
37 [{ id: 2 }, { id: 1 }, { id: 3 }],
38 new OpenAIEmbeddings({
39 openAIApiKey: process.env.OPENAI_API_KEY,
40 }),
41 );

myApimain.tsx1 match

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

reddit_matchesmain.tsx1 match

@bnorick•Updated 1 year ago
80 if (enable_toggle) {
81 text.push(
82 `toggle: https://api.val.town/eval/@${username}.toggleSubreddits(%22${subreddit}%22)`
83 );
84 }

myApimain.tsx1 match

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

myApimain.tsx1 match

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

checkAndroidBingAppsmain.tsx1 match

@cescyang•Updated 1 year ago
5 const { default: axios } = await import("npm:axios");
6 const url =
7 "https://sapphire.api.microsoftapp.net/config/api/v1/get?setmkt=en-us&setplatform=android&setchannel=production&settenant=sapphire-bing";
8 try {
9 const response = await fetch(url, {

mod-interview-api1 file match

@twschiller•Updated 11 hours ago

daily-advice-app1 file match

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