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=905&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 11003 results for "api"(1706ms)

apimain.tsx1 match

@uuzUpdated 1 year ago
2import { gpt3 } from "https://esm.town/v/patrickjm/gpt3?v=4";
3
4export let api = async ({ prompt = "讲一个笑话" }) => {
5 return gpt3({
6 openAiKey: process.env.openai_key,

githubNotificationsmain.tsx1 match

@pomdtrUpdated 1 year ago
3
4export async function githubNotifications() {
5 const res = await fetch("https://api.github.com/notifications?all=true", {
6 headers: {
7 Authorization: `Bearer ${process.env.GH_TOKEN}`,

nearestOpenStationmain.tsx1 match

@johnmuyskensUpdated 1 year ago
2
3export const nearestOpenStation = async ({ lon, lat }) => {
4 const gbfsDomain = "capitalbikeshare.com";
5 lon = +lon;
6 lat = +lat;

alphaVantageSymbolSearchmain.tsx6 matches

@seanUpdated 1 year ago
3
4export const alphaVantageSymbolSearch = async ({
5 apikey,
6 ...options
7}: {
8 apikey: string,
9 keywords: string,
10}) => {
11 const API_HOST = "alpha-vantage.p.rapidapi.com";
12 const queryString = await toQueryString({
13 ...options,
17 try {
18 const json = await fetchJSON(
19 `https://${API_HOST}/query?${queryString}`,
20 {
21 method: "GET",
22 headers: {
23 "X-RapidAPI-Key": apikey,
24 "X-RapidAPI-Host": API_HOST,
25 },
26 }

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

testWebpagemain.tsx1 match

@joemccourtUpdated 1 year ago
6 // "Bullet",
7 // "Computer",
8 // "Rapid",
9 // "Top Rated",
10 // "Blitz",

helloFriendmain.tsx2 matches

@abdulamiteUpdated 1 year ago
1import { myApi } from "https://esm.town/v/abdulamite/myApi";
2
3export let helloFriend = "Hello, " + myApi("abdulamite", "55");

myApimain.tsx1 match

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

daily-advice-app1 file match

@dcm31Updated 2 days ago
Random advice app using Advice Slip API

gptApiTemplate1 file match

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