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/?q=api&page=910&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 11029 results for "api"(1207ms)

myApimain.tsx1 match

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

myApimain.tsx1 match

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

getYoutubeLinkFromPageAPImain.tsx1 match

@wiltUpdated 1 year ago
1import { getYoutubeLinkFromPage } from "https://esm.town/v/wilt/getYoutubeLinkFromPage";
2
3export async function getYoutubeLinkFromPageAPI(req: Request) {
4 const url = new URL(req.url).searchParams.get("url");
5 if (!url || url === "undefined")

upscaleThisUrlmain.tsx2 matches

@andrewUpdated 1 year ago
3
4export const upscaleThisUrl = async (req, res) => {
5 const authToken = process.env.REPLICATE_API_TOKEN;
6 const url = "https://api.replicate.com/v1/predictions";
7 const jobId = req.body?.jobId;
8 const imageUrl = req.body?.imageUrl;

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

arenaApiExamplemain.tsx2 matches

@tmcwUpdated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export let arenaApiExample = (async () => {
4 const resp = await fetch(
5 "http://api.are.na/v2/channels/that-glassy-dark-design-style",
6 );
7 const json = await resp.json();

runGETmain.tsx1 match

@stevekrouseUpdated 1 year ago
2
3export let runGET = fetchJSON(
4 `https://api.val.town/v1/run/stevekrouse.add?args=${JSON.stringify([1, 2])}`,
5);

daily-advice-app1 file match

@dcm31Updated 2 days ago
Random advice app using Advice Slip API

gptApiTemplate1 file match

@charmaineUpdated 3 days ago
papimark21
socialdata
Affordable & reliable alternative to Twitter API: ➡️ Access user profiles, tweets, followers & timeline data in real-time ➡️ Monitor profiles with nearly instant alerts for new tweets, follows & profile updates ➡️ Simple integration