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=969&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 11702 results for "api"(1029ms)

myApimain.tsx1 match

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

myApimain.tsx1 match

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

getAllNotionDbRowsmain.tsx1 match

@supersayanUpdated 1 year ago
12 return await axios({
13 method: "POST",
14 url: `https://api.notion.com/v1/databases/${databaseId}/query`,
15 headers: {
16 Authorization: `Bearer ${notionAccessToken}`,

aqimain.tsx1 match

@colinzUpdated 1 year ago
4 let pm25 = (
5 await fetchJSON(
6 "https://api.openaq.org/v2/latest?" +
7 new URLSearchParams({
8 limit: "10",

slackappmain.tsx3 matches

@nateUpdated 1 year ago
5//
6// Setup: Add a slash command using
7// "https://api.val.town/express/@nate.slackapp" as the request URL.
8//
9// Usage: /yourcommandname {expression}
16
17 if (
18 !("api_app_id" in req.body) ||
19 req.body.api_app_id !== process.env.SLACK_API_APP_ID ||
20 !("text" in req.body) ||
21 !("response_url" in req.body)

myApimain.tsx1 match

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

topSecretInfoApimain.tsx1 match

@bpietroniroUpdated 1 year ago
1import { runVal } from "https://esm.town/v/std/runVal";
2
3export let topSecretInfoApi = runVal("bpietroniro.messWithTopSecretInfo");

FigmaAvatarsMixerTestmain.tsx2 matches

@rodrigotelloUpdated 1 year ago
4
5export const FigmaAvatarsMixerTest = (async () => {
6 const apiToken = process.env.myFigmaAPIToken;
7 const fileKey =
8 parseFigmaURL(
9 "https://www.figma.com/file/XqiternEMTE2Gk8jHzG4Ui/AvatarMixerFileTest?type=design&node-id=0%3A1&mode=design&t=Mpjs48FGMgw77SXW-1",
10 ).key;
11 return fetchFigmaFile(apiToken, fileKey);
12})();

myApimain.tsx1 match

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

myApimain.tsx1 match

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

new-val-api-21 file match

@shouserUpdated 1 day ago
This is an example of using the API to create a val.

gptApiTemplate2 file matches

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