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/$%7Burl%7D?q=api&page=1648&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 18034 results for "api"(3327ms)

TodayForAnnalisamain.tsx1 match

@mttlws•Updated 1 year ago
3export async function TodayForAnnalisa(req: express.Request, res: express.Response) {
4 const { activity } = await fetchJSON(
5 "https://www.boredapi.com/api/activity",
6 );
7 return res.send(`

updateInspoListmain.tsx2 matches

@rodrigotello•Updated 1 year ago
1let { valTownInspoList } = await import("https://esm.town/v/rodrigotello/valTownInspoList");
2import { isValTownTeam } from "https://esm.town/v/stevekrouse/isValTownTeam?v=3";
3import { verifyAPIAuth } from "https://esm.town/v/stevekrouse/verifyAPIAuth?v=13";
4
5export async function updateInspoList(newList, auth) {
6 let handle = await verifyAPIAuth(auth);
7 if (isValTownTeam(handle)) {
8 valTownInspoList = newList;

myApimain.tsx1 match

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

myApimain.tsx1 match

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

apimain.tsx1 match

@ayrtonlacerda•Updated 1 year ago
1import { updateTaskAsana } from "https://esm.town/v/ayrtonlacerda/updateTaskAsana";
2
3export const api = async (req: Request) => {
4 const { Hono } = await import("npm:hono");
5 const app = new Hono();

myApimain.tsx1 match

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

myApimain.tsx1 match

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

addReactFromValCDNmain.tsx2 matches

@liamdanielduffy•Updated 1 year ago
3export function addReactFromValCDN(): string {
4 const reactDom = scriptTag({
5 src: "https://api.val.town/v1/express/liamdanielduffy.REACT_DOM_CDN_VAL",
6 });
7 const react = scriptTag({
8 src: "https://api.val.town/v1/express/liamdanielduffy.REACT_CDN_VAL",
9 });
10 return [react, reactDom].join(" ");

gitHubStarsmain.tsx2 matches

@vtdocs•Updated 1 year ago
4 const username = "stevekrouse";
5 const user = await fetchJSON(
6 `https://api.github.com/users/${username}`,
7 );
8 let totalStars = 0;
11 while (pages--) {
12 const repositories = await fetchJSON(
13 `https://api.github.com/users/${username}/repos?per_page=100&page=${
14 pages + 1
15 }`,

wrapInHTMLElementsmain.tsx1 match

@rwev•Updated 1 year ago
1export function wrapInHTMLElements(
2 elements: string | string[],
3 html: string

Apiify11 file matches

@wolf•Updated 3 hours ago

dailyQuoteAPI

@Souky•Updated 2 days ago
Kapil01
apiv1