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=1413&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 15231 results for "api"(1310ms)

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

countmain.tsx1 match

@baj•Updated 1 year ago
1export const count = (async () => {
2 let count = 0;
3 function myApi() {
4 return count++;
5 }

githubStarsmain.tsx1 match

@joshmock•Updated 1 year ago
2
3export async function githubStars(username) {
4 let res = await fetch(`https://api.github.com/users/${username}/starred`);
5 return await res.json();
6}

myApimain.tsx1 match

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

getGithubUserViaOctokitmain.tsx1 match

@vtdocs•Updated 1 year ago
5 username,
6 headers: {
7 "X-GitHub-Api-Version": "2022-11-28",
8 },
9 });

telegramSendPhotomain.tsx1 match

@vtdocs•Updated 1 year ago
16}) =>
17 fetchJSON(
18 `https://api.telegram.org/bot${botToken}/sendPhoto`,
19 {
20 method: "POST",

wttrAstronomyToHTMLTablemain.tsx2 matches

@rwev•Updated 1 year ago
1import { snakeToTitleCase } from "https://esm.town/v/rwev/snakeToTitleCase";
2import { wrapInHTMLElements } from "https://esm.town/v/rwev/wrapInHTMLElements";
3
4export async function wttrAstronomyToHTMLTable(
7 let html = ``;
8 const R = await import("npm:ramda");
9 const wrapFn = R.curry(wrapInHTMLElements);
10 const headers = [
11 "date",

myApimain.tsx1 match

@sokratis•Updated 1 year ago
1export function myApi(name) {
2 console.log("Hello world!");
3 return "hi " + name;

HN-fetch-call2 file matches

@ImGqb•Updated 23 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