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=992&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 11723 results for "api"(4790ms)

githubGistsmain.tsx1 match

@rodrigotellovaltownUpdated 1 year ago
3// GitHub gists
4export let githubGists = fetchJSON(
5 "https://api.github.com/users/stevekrouse/gists"
6);

githubFollowersmain.tsx1 match

@maxmixUpdated 1 year ago
3// GitHub followers
4export let githubFollowers = fetchJSON(
5 "https://api.github.com/users/stevekrouse/followers"
6);

evalUrlmain.tsx1 match

@neverstewUpdated 1 year ago
3export const evalUrl = async (val: `@${string}.${string}`) =>
4 encodeURI(
5 "https://api.val.town/v1/eval/" + await raw(val),
6 );

SearchValTownmain.tsx1 match

@pomdtrUpdated 1 year ago
5 query,
6 });
7 const searchURL = `https://www.val.town/api/trpc/search?input=${
8 encodeURIComponent(input)
9 }`;

myApimain.tsx1 match

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

telegramWebhookCompramain.tsx1 match

@marcecollUpdated 1 year ago
8 // Verify this webhook came from our bot
9 if (
10 req.headers.get("x-telegram-bot-api-secret-token") !==
11 process.env.telegramWebhookSecret
12 ) {

fetchCongressTradeReportsmain.tsx1 match

@nariUpdated 1 year ago
11export async function fetchCongressTradeReports(callback) {
12 const res = await fetchJSON(
13 "https://bff.capitoltrades.com/trades?sortBy=-pubDate"
14 );
15 const trades = res.data;

communityBoatingFlagmain.tsx1 match

@twschillerUpdated 1 year ago
2
3export async function communityBoatingFlag() {
4 const response = await fetch("https://api.community-boating.org/api/flag");
5 const text = await response.text();
6 // Regex by Chat GPT :shrug:

emailDailyJokemain.tsx1 match

@jayUpdated 1 year ago
4 async function fetchJoke() {
5 let response = await fetch(
6 "https://official-joke-api.appspot.com/random_joke",
7 );
8 if (response.ok) {

myApimain.tsx1 match

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

gpt-image-test

@CaptainJackUpdated 9 hours ago
测试 gpt image 的不同 api 能否满足图片生成要求

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