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/$%7Bsuccess?q=api&page=1056&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 11519 results for "api"(3788ms)

vec_pracmain.tsx1 match

@valilo•Updated 1 year ago
19 a: a,
20 b: b,
21 ergebnis_link: `https://api.val.town/v1/eval/@valilo.eval_vec(${encodeURIComponent(
22 JSON.stringify(ret)
23 )})`,

myApimain.tsx1 match

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

myApimain.tsx1 match

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

ListenTomain.tsx2 matches

@zzz•Updated 1 year ago
2import { runVal } from "https://esm.town/v/std/runVal";
3
4// https://api.val.town/v1/express/zzz.ListenTo?val=stevekrouse.whatIsValTown
5export async function ListenTo(req, res) {
6 const { val = "zzz.demoOpenAIGPT4Summary" } = req.query;
7 const url = `https://api.val.town/v1/run/${val.replace("@", "")}`
8 const resp = await fetch(url);
9 const text = await resp.text();

importGistsmain.tsx1 match

@maas•Updated 1 year ago
7 const supportedLanguages = ["JavaScript", "TypeScript"];
8 let imported = [];
9 const headers = { "X-GitHub-Api-Version": "2022-11-28" };
10 const { Octokit } = await import("npm:@octokit/core");
11 const octokit = new Octokit({ auth: githubToken });

loaderSampleAudiomain.tsx1 match

@webup•Updated 1 year ago
3export const loaderSampleAudio = (async () => {
4 const builder = await getWebLoaderBuilder(
5 "https://storage.googleapis.com/aai-docs-samples/sports_injuries.mp3",
6 "audio",
7 { language_code: "en_us" },

twitterOpenGraphImagemain.tsx1 match

@panphora•Updated 1 year ago
16 const browser = await puppeteer.connect({
17 browserWSEndpoint:
18 `wss://chrome.browserless.io?token=${process.env.BROWSERLESS_API_KEY}`,
19 });
20 const page = await browser.newPage();

githubFollowingmain.tsx1 match

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

postHogAPICapturemain.tsx2 matches

@ianvph•Updated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export async function postHogAPICapture({ key, event, properties, distinct_id }: {
4 key: string;
5 event: string;
8}) {
9 const body = {
10 "api_key": key,
11 "event": event,
12 "properties": properties,

authTwittermain.tsx1 match

@ted•Updated 1 year ago
2
3export let authTwitter = authTwitter2(
4 "https://api.twitter.com/1.1/search/tweets.json?q=nasa&result_type=popular&count=10"
5);

gptApiTemplate2 file matches

@charmaine•Updated 1 day ago

mod-interview-api1 file match

@twschiller•Updated 1 day ago
apiv1
papimark21