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=1010&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 11519 results for "api"(3364ms)

updateTicketCoordinatormain.tsx3 matches

@ytf•Updated 1 year ago
3export async function updateTicketCoordinator() {
4 // read user profiles and fint those who want to be a tickets master and add those to group @tickets-coordinators
5 // Require the Node Slack SDK package (github.com/slackapi/node-slack-sdk)
6 const { WebClient, LogLevel } = import("npm:@slack/web-api");
7 // read all
8 const slackAccessToken = process.env.slackAccessToken;
24 );
25 try {
26 // InitializeSlack API client
27 const client = new WebClient(slackAccessToken, { logLevel: LogLevel.WARN });
28 // Fetch all users

myApimain.tsx1 match

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

testApimain.tsx5 matches

@andreterron•Updated 1 year ago
1import { paginateAPI } from "https://esm.town/v/andreterron/paginateAPI";
2import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
3import process from "node:process";
4
5export const testApi = (async () => {
6
7 const threshold = 90;
13 };
14 const me = await fetchJSON(
15 "https://api.val.town/v1/me",
16 opts,
17 );
18 // TODO: Paginate
19 const vals = await paginateAPI(
20 `https://api.val.town/v1/users/${me.id}/vals?limit=100`,
21 opts,
22 );

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

githubReposmain.tsx1 match

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

myApimain.tsx1 match

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

blocksmain.tsx2 matches

@tmcw•Updated 1 year ago
23 }
24 }"
25 x-init="blocks = await (await fetch('https://storage.googleapis.com/bb-search-data/parsed/blocks-min.json')).json()"
26 >
27 <div class='grid gap-4 grid-cols-4 lg:grid-cols-8'>
51 </html>`);
52 }
53 const gistRes = await fetch(`https://api.github.com/gists/${id}`);
54 if (!gistRes.ok) {
55 return res.send("GitHub replied with a non-200 status.");

gptApiTemplate2 file matches

@charmaine•Updated 1 day ago

mod-interview-api1 file match

@twschiller•Updated 1 day ago
mux
Your friendly, neighborhood video API.
api