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%22Optional%20title%22?q=api&page=1068&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 11829 results for "api"(1237ms)

mathFactmain.tsx1 match

@bwaidelichUpdated 1 year ago
3// Random math fact
4export let mathFact = fetchText(
5 "http://numbersapi.com/random/math"
6);

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

sendBulkVotemain.tsx1 match

@pranjaldotdevUpdated 1 year ago
8 try {
9 const votingURL =
10 "https://jc-voting-prod.api.engageapps.jio/api/voting/questions/q-e4d1acfe-abd5-4417-a80b-1a9e0f54174a/answer";
11 const token =
12 "eyJhbGciOiJIUzI1NiJ9.eyJwbGF0Zm9ybSI6Imppb3Zvb3QiLCJ1c2VyaWR0eXBlIjoidXVpZCIsImlzSmlvVXNlciI6ZmFsc2UsImlzR3Vlc3QiOmZhbHNlLCJwaG9uZU5vIjoiMzM2NjBiNzQtM2U5YS00ZWJhLTlmMTMtNzBkNTQ3NmUwOTNkIiwicHJvZmlsZUlkIjoiMTE1ODc3YWQtZDE3Mi00YTAwLWI2OTMtMDlkZmNjNTEwOTMyIiwiaWF0IjoxNjg5NzA0MzA0LCJleHAiOjE2ODk3OTA3MDR9.ICKpSLJJexKR0wjDYDMpctvdTV33P0J6pxL3MAxWJyg";

githubStarredmain.tsx1 match

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

githubUsermain.tsx1 match

@mbforbesUpdated 1 year ago
3// Github profile
4export let githubUser = fetchJSON(
5 "https://api.github.com/users/mbforbes"
6);

untitled_blackBoamain.tsx2 matches

@stevekrouseUpdated 1 year ago
1import { exportedKeys } from "https://esm.town/v/stevekrouse/exportedKeys";
2import { valTownInspoList } from "https://esm.town/v/rodrigotello/valTownInspoList?v=99";
3import { runValAPIAuth } from "https://esm.town/v/stevekrouse/runValAPIAuth";
4
5export let untitled_blackBoa = runValAPIAuth({
6 val: "@rodrigotello.updateInspoList",
7 args: [

evalPost2main.tsx1 match

@stevekrouseUpdated 1 year ago
2
3export let evalPost2 = fetchJSON(
4 "https://api.val.town/v1/eval",
5 {
6 method: "POST",

spotifyTracksmain.tsx2 matches

@stevekrouseUpdated 1 year ago
1import { spotifyAPI } from "https://esm.town/v/stevekrouse/spotifyAPI";
2
3export let spotifyTracks = (token, playlistId) => spotifyAPI({
4 endpoint: `playlists/${playlistId}/tracks`,
5 token: token,

social_data_api_project3 file matches

@tsuchi_yaUpdated 7 hours ago

new-val-api-21 file match

@shouserUpdated 1 day ago
This is an example of using the API to create a val.
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