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/$%7Bart_info.art.src%7D?q=api&page=1281&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 13917 results for "api"(1931ms)

privateAPIAuthenticatedmain.tsx2 matches

@stevekrouse•Updated 1 year ago
2import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
3
4export const privateAPIAuthenticated = fetchJSON(
5 "https://api.val.town/v1/run/stevekrouse.example3",
6 {
7 method: "GET",

spotifyMemain.tsx2 matches

@stevekrouse•Updated 1 year ago
1import { spotifyAPI } from "https://esm.town/v/stevekrouse/spotifyAPI";
2
3export let spotifyMe = (token) => spotifyAPI({ token, endpoint: 'me' })

myIPmain.tsx1 match

@stevekrouse•Updated 1 year ago
2
3export const myIP = () =>
4 fetchJSON("https://api.ipify.org?format=json");

panphoraDistanceTimedmain.tsx2 matches

@stevekrouse•Updated 1 year ago
1import { runValAPI } from "https://esm.town/v/stevekrouse/runValAPI";
2import { timed } from "https://esm.town/v/stevekrouse/timed";
3import { panphoraDistanceTimes } from "https://esm.town/v/stevekrouse/panphoraDistanceTimes";
6 panphoraDistanceTimes.push(
7 await timed(() =>
8 runValAPI(
9 "@panphora.distance",
10 "barclay center",

braveAgentmain.tsx2 matches

@jacoblee93•Updated 1 year ago
15 const model = new ChatOpenAI({
16 temperature: 0,
17 openAIApiKey: process.env.OPENAI_API_KEY,
18 });
19 const tools = [
20 new BraveSearch({
21 apiKey: process.env.BRAVE_SEARCH_API_KEY,
22 }),
23 new Calculator(),

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

telegramDalleBotmain.tsx1 match

@hootz•Updated 1 year ago
9) => {
10 if (
11 req.get("x-telegram-bot-api-secret-token") !==
12 process.env.telegramDalleBotWebhookSecret
13 ) {

new-val-api-demo

@shouser•Updated 20 hours ago
This is an example of using the API to create a val.

groq-api2 file matches

@cameronpak•Updated 1 day ago
snartapi
mux
Your friendly, neighborhood video API.