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?q=api&page=1049&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 11844 results for "api"(1075ms)

myApimain.tsx1 match

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

mathFactmain.tsx1 match

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

myApimain.tsx1 match

@frankysnow•Updated 1 year ago
1export function myApi(name: Interval) {
2 console.email("hi " + name);
3}

readMediumPostsmain.tsx1 match

@patrick_kw_chiu•Updated 1 year ago
5 const articlesDatabase = initDatabase({
6 appId: process.env.MONGODB_ARTICLES_APP_ID,
7 apiKey: process.env.MONGODB_ARTICLES_API_KEY,
8 databaseName: "medium",
9 });

myApimain.tsx1 match

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

githubUsermain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

discordGetChannelsmain.tsx2 matches

@stevekrouse•Updated 1 year ago
1import { discordAPI } from "https://esm.town/v/stevekrouse/discordAPI";
2
3// https://discord.com/developers/docs/resources/guild#get-guild-channels
4export let discordGetChannels = ({token, tokenType, guildId}) => discordAPI({
5 token,
6 tokenType,

simple-scrabble-api1 file match

@bry•Updated 12 hours ago

social_data_api_project3 file matches

@tsuchi_ya•Updated 20 hours ago
apiv1
papimark21