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=1052&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 11580 results for "api"(2032ms)

myApimain.tsx1 match

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

fetchPelotonWorkoutsmain.tsx1 match

@andreterronUpdated 1 year ago
3export const fetchPelotonWorkouts = async (user_id, session_id) => {
4 const workouts = await fetch(
5 `https://api.onepeloton.com/api/user/${user_id}/workouts?=peloton.ride&limit=50&page=0&sort_by=-created`,
6 {
7 method: "get",

getMktpTotalsmain.tsx2 matches

@sourishkroutUpdated 1 year ago
12 };
13 const hdrs = {
14 "Accept": "application/json;api-version=3.0-preview.1",
15 "Content-Type": "application/json",
16 };
17 const response = await fetch(
18 "https://marketplace.visualstudio.com/_apis/public/gallery/extensionquery",
19 {
20 body: JSON.stringify(body),
14 var parser = new DOMParser();
15 let title = "Linus's stream";
16 let link = "https://api3.val.town/express/@coofdy.streamThesaphistRSS";
17 let base = "https://stream.thesephist.com";
18 var rss = [

fetchABirdmain.tsx1 match

@crsvenUpdated 1 year ago
3export let fetchABird = async () => {
4 const MAX_ID = 777905;
5 const baseUrl = "https://xeno-canto.org/api/2/recordings";
6 const minAnimalId = Math.floor(Math.random() * (MAX_ID + 10));
7 const query = `?query=nr:${minAnimalId}-${minAnimalId + 10}`;

myApimain.tsx1 match

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

myApimain.tsx1 match

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

getLangSmithBuildermain.tsx2 matches

@webupUpdated 1 year ago
5 const { LangChainTracer } = await import("npm:langchain/callbacks");
6 const client = new Client({
7 apiUrl: "https://api.smith.langchain.com",
8 apiKey: process.env.LANGSMITH,
9 ...options,
10 });

myApimain.tsx1 match

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

githubReposmain.tsx1 match

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

new-val-api-21 file match

@shouserUpdated 3 hours ago
This is an example of using the API to create a val.

gptApiTemplate2 file matches

@charmaineUpdated 1 day ago
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
artivilla
founder @outapint.io vibe coding on val.town. dm me to build custom vals: https://artivilla.com