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/image-url.jpg%20%22Image%20title%22?q=api&page=1439&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 16337 results for "api"(1404ms)

upscaleThisUrlmain.tsx2 matches

@andrew•Updated 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

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

arenaApiExamplemain.tsx2 matches

@tmcw•Updated 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

@stevekrouse•Updated 1 year ago
2
3export let runGET = fetchJSON(
4 `https://api.val.town/v1/run/stevekrouse.add?args=${JSON.stringify([1, 2])}`,
5);
4 testMutateSemantics({
5 stateName: "@stevekrouse.testState",
6 api: "localhost:3001",
7 mutateExpected: true,
8 mutator: (now) => `@steveVT.mutateTestState(${now})`,

spotifyAPImain.tsx2 matches

@stevekrouse•Updated 1 year ago
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
2
3export let spotifyAPI = ({token, endpoint, ...params}) => fetchJSON(
4 `https://api.spotify.com/v1/${endpoint}?${new URLSearchParams(params)}`,
5 {
6 headers: { Authorization: `Bearer ${token}` },

runPOSTmain.tsx1 match

@stevekrouse•Updated 1 year ago
2
3export let runPOST = fetchJSON(
4 `https://api.val.town/v1/run/stevekrouse.add`,
5 {
6 method: "POST",

Schedule

@Ozy•Updated 41 mins ago
Schedule_api

googleGeminiAPI2 file matches

@michaelwschultz•Updated 17 hours ago
Kapil01
apiv1