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%22Image%20title%22?q=api&page=1021&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 12213 results for "api"(1880ms)

geoffreyFollowsmain.tsx1 match

@marianoguerraUpdated 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

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

myApimain.tsx1 match

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

valVersionsmain.tsx1 match

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

renderGithubReadmemain.tsx2 matches

@pomdtrUpdated 1 year ago
6 repo: string;
7 };
8 const markdown = await fetch(`https://api.github.com/repos/${repo}/readme`)
9 .then((res) => res.json()).then(({ content }) => atob(content));
10 const html = await fetch("https://api.github.com/markdown", {
11 method: "POST",
12 headers: {

myApimain.tsx1 match

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

viewMailboxmain.tsx2 matches

@nimaluUpdated 1 year ago
1import { mailbox } from "https://esm.town/v/nimalu/mailbox";
2
3// https://api.val.town/express/@nimalu.viewMailbox
4export const viewMailbox = (req, res) => {
5 const messages = mailbox
24 li.innerHTML = '<span class="font-semibold text-gray-900">Web</span>: ' + message;
25 ul.appendChild(li)
26 fetch("https://api.val.town/eval/@nimalu.messageMe('" + message + "','Web')")
27 }
28

myApimain.tsx1 match

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

myApimain.tsx1 match

@jkellUpdated 1 year ago
1export function myApi(name) {
2 return "hi " + name + "from" + $me;
3}

EmailNotifIfDidntCodemain.tsx1 match

@DavidkimUpdated 1 year ago
15 }
16 const githubEvents = await fetchJSON(
17 "https://api.github.com/users/daviddkkim/events",
18 ) as Data;
19 //early return if no github events

social_data_api_project3 file matches

@tsuchi_yaUpdated 2 days ago

simple-scrabble-api1 file match

@bryUpdated 5 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