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/image-url.jpg%20%22Optional%20title%22?q=api&page=1300&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 14052 results for "api"(1134ms)

fetchCongressTradeReportsmain.tsx1 match

@stevekrouse•Updated 1 year ago
4export async function fetchCongressTradeReports({ lastRunAt }) {
5 const res = await fetchJSON(
6 "https://bff.capitoltrades.com/trades?sortBy=-pubDate",
7 );
8 const stockTradesReportedToday = res.data.filter((trade) => {

authenticatedCantMutateAnothermain.tsx2 matches

@stevekrouse•Updated 1 year ago
1import { testMutateSemantics } from "https://esm.town/v/stevekrouse/testMutateSemantics";
2
3export const authenticatedCantMutateAnother = (api) =>
4 testMutateSemantics({
5 stateName: "@steveVT.myTestState",
6 api,
7 mutateExpected: false,
8 mutator: (now) => `export let @stevekrouse.myTestState = ${now}`,

hiddenAPImain.tsx2 matches

@stevekrouse•Updated 1 year ago
1import { hiddenAPIInternal } from "https://esm.town/v/stevekrouse/hiddenAPIInternal";
2
3export let hiddenAPI = (...args) => hiddenAPIInternal(...args);

langchainExmain.tsx1 match

@jacoblee93•Updated 1 year ago
9 const model = new ChatOpenAI({
10 temperature: 0.9,
11 openAIApiKey: process.env.OPENAI_API_KEY,
12 verbose: true,
13 });

chatAgentWithCustomPromptmain.tsx1 match

@jacoblee93•Updated 1 year ago
13 const model = new ChatOpenAI({
14 temperature: 0,
15 openAIApiKey: process.env.OPENAI_API_KEY,
16 });
17 const tools = [

myApimain.tsx1 match

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

myApimain.tsx1 match

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

generateEmbeddingsmain.tsx1 match

@thomasatflexos•Updated 1 year ago
40 splittedDocs,
41 new OpenAIEmbeddings({
42 openAIApiKey: process.env.OPEN_API_KEY,
43 }),
44 {

githubFollowingmain.tsx1 match

@cas•Updated 1 year ago
3// Github following
4export let githubFollowing = fetchJSON(
5 "https://api.github.com/users/stevekrouse/following"
6);

myApimain.tsx1 match

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

book-lookup5 file matches

@nucky•Updated 5 hours ago
use google book api to look up bibliographic metadata elements

new-val-api-demo

@shouser•Updated 1 day ago
This is an example of using the API to create a val.
snartapi
mux
Your friendly, neighborhood video API.