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/?q=api&page=897&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 10974 results for "api"(977ms)

FigmaAvatarsMixerTestmain.tsx2 matches

@rodrigotello•Updated 1 year ago
4
5export const FigmaAvatarsMixerTest = (async () => {
6 const apiToken = process.env.myFigmaAPIToken;
7 const fileKey =
8 parseFigmaURL(
9 "https://www.figma.com/file/XqiternEMTE2Gk8jHzG4Ui/AvatarMixerFileTest?type=design&node-id=0%3A1&mode=design&t=Mpjs48FGMgw77SXW-1",
10 ).key;
11 return fetchFigmaFile(apiToken, fileKey);
12})();

myApimain.tsx1 match

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

myApimain.tsx1 match

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

slackReplyToMessagemain.tsx1 match

@vtdocs•Updated 1 year ago
19 // like the sender and the message text
20 const result = await fetchJSON(
21 "https://slack.com/api/chat.postMessage",
22 {
23 headers: {

myApimain.tsx1 match

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

myApimain.tsx1 match

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

geoffreyFollowsmain.tsx1 match

@marianoguerra•Updated 1 year ago
3
4export let geoffreyFollows = twitterJSON({
5 url: `https://api.twitter.com/1.1/friends/ids.json?screen_name=geoffreylitt`,
6 bearerToken: twitterCredentials.bearerToken
7}).then(x => x.ids)

myApimain.tsx1 match

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

myApimain.tsx1 match

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

valVersionsmain.tsx1 match

@neverstew•Updated 1 year ago
26 : {};
27 return fetchJSON(
28 `https://api.val.town/v1/vals/${id}/versions?` +
29 searchParams({
30 offset: offset?.toString(),

daily-advice-app1 file match

@dcm31•Updated 2 days ago
Random advice app using Advice Slip API

gptApiTemplate1 file match

@charmaine•Updated 3 days ago
apiv1
papimark21