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=1282&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 13896 results for "api"(1612ms)

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

@gideon•Updated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export async function myApi() {
4 const url =
5 "https://everycampus.com/campus/c1e6333f-7f5b-475d-897a-c78e0a88135e";

starWarsmain.tsx2 matches

@rendall•Updated 1 year ago
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
2
3// Explore the Star Wars universe, from StarWarsAPI
4export let starWars = fetchJSON(
5 "https://swapi.dev/api/people/1/"
6);

myApimain.tsx1 match

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

boredActivitiesmain.tsx1 match

@healeycodes•Updated 1 year ago
3// Activity suggestions for when you're bored
4export let boredActivities = fetchJSON(
5 "https://www.boredapi.com/api/activity"
6);

myApimain.tsx1 match

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

fetchPelotonWorkoutsmain.tsx1 match

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

@sourishkrout•Updated 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),

new-val-api-demo

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

groq-api2 file matches

@cameronpak•Updated 21 hours ago
snartapi
mux
Your friendly, neighborhood video API.