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/$%7Bsuccess?q=api&page=1014&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 11852 results for "api"(959ms)

deleteValVersionmain.tsx1 match

@neverstewUpdated 1 year ago
6 version: number;
7}): Promise<Response> {
8 return fetch(`https://api.val.town/v1/vals/${id}/versions/${version}`, {
9 headers: {
10 Authorization: `Bearer ${token}`,

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

openaiCompletionmain.tsx1 match

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

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

githubGistsmain.tsx1 match

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

musicianApimain.tsx1 match

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

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

social_data_api_project3 file matches

@tsuchi_yaUpdated 2 hours ago

simple-scrabble-api1 file match

@bryUpdated 19 hours 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