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=1630&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 18272 results for "api"(3536ms)

emailRandomJokemain.tsx1 match

@jay•Updated 1 year ago
4 async function fetchRandomJoke() {
5 const response = await fetch(
6 "https://official-joke-api.appspot.com/random_joke",
7 );
8 return response.json();

myApimain.tsx1 match

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

myApimain.tsx1 match

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

mathFactmain.tsx1 match

@hetzelhouse•Updated 1 year ago
3// Random math fact
4export let mathFact = fetchText(
5 "http://numbersapi.com/random/math"
6);

myApimain.tsx1 match

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

myApimain.tsx1 match

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

githubReposmain.tsx1 match

@jswank•Updated 1 year ago
3// GitHub repos
4export let githubRepos = fetchJSON(
5 "https://api.github.com/users/stevekrouse/repos"
6);

myApimain.tsx1 match

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

myApimain.tsx1 match

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

RateLimitDemomain.tsx1 match

@zzz•Updated 1 year ago
1import { upstashRateLimiter } from "https://esm.town/v/zzz/upstashRateLimiter";
2
3// https://api.val.town/v1/express/zzz.RateLimitDemo
4export async function RateLimitDemo(req, res) {
5 const ip = req.get("true-client-ip") ??

github-api1 file match

@cricks_unmixed4u•Updated 7 hours ago

beeminder-api4 file matches

@cricks_unmixed4u•Updated 8 hours ago
Kapil01
apiv1