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/$%7Burl%7D?q=api&page=1028&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 12013 results for "api"(953ms)

valTownApiExampleSearchmain.tsx2 matches

@tmcwUpdated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export let valTownApiExampleSearch = (async () => {
4 const query = new URLSearchParams({ query: "lodash", limit: "4" });
5 const response = await fetch(`https://api.val.town/v1/search/vals?${query}`);
6 const json = await response.json();
7 return json;

blocks_innermain.tsx1 match

@tmcwUpdated 1 year ago
3export let blocks_inner = async (req, res) => {
4 const [_, user, id, ...file] = req.path.split("/");
5 const gist = await fetch(`https://api.github.com/gists/${id}`).then((r) =>
6 r.json()
7 );

twitterAPIDownmain.tsx2 matches

@stevekrouseUpdated 1 year ago
1// set by stevekrouse.checkIfTwitterAPIIsDown at 2023-05-09T17:45:30.441Z
2export let twitterAPIDown = {
3 "down": false,
4 "reason": "search returned 4 results at Tue May 09 2023 17:45:30 GMT+0000 (Coordinated Universal Time)"

geoffApimain.tsx3 matches

@stevekrouseUpdated 1 year ago
1import { geoffApiSecret } from "https://esm.town/v/stevekrouse/geoffApiSecret";
2
3export const geoffApi = ({ secret }) => {
4 if (secret !== geoffApiSecret) return "Bad secret";
5};

vidmain.tsx1 match

@stevekrouseUpdated 1 year ago
3export let vid = async (name) =>
4 (await fetchJSON(
5 `https://api.val.town/v1/alias/${name.replace(".", "/").replace("@", "")}`,
6 )).id;

discoverWeeklyTracksmain.tsx2 matches

@stevekrouseUpdated 1 year ago
2import { spotifyGetToken } from "https://esm.town/v/stevekrouse/spotifyGetToken";
3import { discoverWeeklySearch } from "https://esm.town/v/stevekrouse/discoverWeeklySearch";
4import { spotifyAPI } from "https://esm.town/v/stevekrouse/spotifyAPI";
5
6export let discoverWeeklyTracks = spotifyAPI({
7 endpoint: `playlists/${discoverWeeklySearch.playlists.items.at(0).id}/tracks`,
8 token: (await spotifyGetToken(spotifyDoNotShareState)).access_token,

generateRAdioDjRssmain.tsx2 matches

@pettanUpdated 1 year ago
8) => {
9 const rssItems = previousDjs.map((dj) => {
10 const djImgSrc = `https://r-a-d.io/api/dj-image/${encodeURIComponent(
11 dj.djimage
12 )}`;
37 description:
38 "Informing you of when the DJ changes on r/a/dio with only a 15 minute delay!",
39 rssLink: "https://api.val.town/v1/express/pettan.generateRAdioDjRss",
40 });
41 return res.type("application/rss+xml").send(rssBody);

githubUsermain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

social_data_api_project3 file matches

@tsuchi_yaUpdated 54 mins ago

simple-scrabble-api1 file match

@bryUpdated 3 days ago
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