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=979&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 11494 results for "api"(1406ms)

myApimain.tsx1 match

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

openaiCompletionmain.tsx1 match

@fgeierst•Updated 1 year ago
3export const openaiCompletion = async (prompt) => {
4 const { OpenAI } = await import("https://deno.land/x/openai/mod.ts");
5 const openAI = new OpenAI(process.env.OPENAI_API_KEY);
6 const completion = openAI.createCompletion({
7 model: "text-davinci-003",

myApimain.tsx1 match

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

githubGistsmain.tsx1 match

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

musicianApimain.tsx1 match

@maclong•Updated 1 year ago
1import { musicianDb } from "https://esm.town/v/maclong/musicianDb";
2
3export async function musicianApi(req: express.Request, res: express.Response) {
4 const { data, type } = req.body;
5 const { tracks, events, emails } = musicianDb;

getTmdbTrendingMoviesmain.tsx1 match

@bclaudios•Updated 1 year ago
6) => {
7 const url =
8 `https://api.themoviedb.org/3/trending/movie/${timeWindow}?language=${language}`;
9 const options = {
10 method: "GET",

apiLogmain.tsx1 match

@healeycodes•Updated 1 year ago
1export let apiLog = (req, res) => {
2 console.log(req, res);
3 res.send(JSON.stringify({ req, res }));

myApimain.tsx1 match

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

postWebhookTest1main.tsx1 match

@val•Updated 1 year ago
2
3export let postWebhookTest1 = fetchJSON(
4 "https://api.val.town/express/@stevekrouse.postWebhook1",
5 {
6 method: "POST",

githubEventsmain.tsx1 match

@rcoady•Updated 1 year ago
3// GitHub events
4export let githubEvents = fetchJSON(
5 "https://api.github.com/users/stevekrouse/events"
6);

gptApiTemplate2 file matches

@charmaine•Updated 7 hours ago

mod-interview-api1 file match

@twschiller•Updated 23 hours ago
apiv1
papimark21