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=1480&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 17237 results for "api"(4881ms)

search_heroiconsmain.tsx1 match

@pomdtr•Updated 1 year ago
2
3export default async function(ctx: BrowserContext) {
4 const resp = await fetch("https://api.iconify.design/collection?prefix=heroicons");
5 if (!resp.ok) {
6 throw new Error(await resp.text());

sqliteExplorerAppREADME.md1 match

@nbbaier•Updated 1 year ago
13## Authentication
14
15Login to your SQLite Explorer with [password authentication](https://www.val.town/v/pomdtr/password_auth) with your [Val Town API Token](https://www.val.town/settings/api) as the password.
16
17## Todos / Plans

glifJsonmain.tsx1 match

@cjpais•Updated 1 year ago
12 return randomItems;
13 };
14 const url = `https://alpha.glif.xyz/api/glifs?id=${id}`;
15 try {
16 const response = await fetch(url);

mgsrBotEndpointmain.tsx1 match

@rayman•Updated 1 year ago
49 JSON.stringify(
50 await (await fetch(
51 "https://api.val.town/v1/eval/"
52 + encodeURIComponent(req.body.data.options[0].value),
53 {

search_user_valsmain.tsx1 match

@pomdtr•Updated 1 year ago
4export default async function(ctx: BrowserContext<{ user: string }>) {
5 const { user: userID } = ctx.params;
6 const resp = await fetch(`https://api.val.town/v1/users/${userID}/vals?limit=100`, {
7 headers: {
8 Authorization: `Bearer ${Deno.env.get("valtown")}`,

mgsrBotEndpoint2main.tsx1 match

@stevekrouse•Updated 1 year ago
67 case "eval":
68 const evalResponse = await fetch(
69 `https://api.val.town/v1/eval/${encodeURIComponent(body.data.options[0].value)}`,
70 { headers: { "Content-Type": "application/json" } },
71 );

untitled_jadeLizardmain.tsx1 match

@trea•Updated 1 year ago
18 }
19 const release = await fetchJSON(
20 `https://api.github.com/repos/aryeohq/aryeo/releases/latest`,
21 );
22

receiveEmailAndConvertToPDFmain.tsx4 matches

@tmcw•Updated 1 year ago
3
4/**
5 * This requires a free API token from browserless.io saved in your
6 * Env Variables as BROWSERLESS_API_KEY
7 */
8let sendPDF = async (subject, html) => {
9 const browserlessApi = Deno.env.get("BROWSERLESS_API_KEY");
10 const browser = await puppeteer.connect({
11 browserWSEndpoint: `wss://chrome.browserless.io?token=${browserlessApi}`,
12 });
13 const page = await browser.newPage();

svdREADME.md2 matches

@fal•Updated 1 year ago
8const result = await fal.subscribe("fal-ai/fast-svd", {
9 input: {
10 image_url: "https://storage.googleapis.com/falserverless/model_tests/svd/rocket.png"
11 },
12 logs: true,
21https://www.fal.ai/models/svd/playground
22
23![rocket.png](https://storage.googleapis.com/isolate-dev-hot-rooster_toolkit_bucket/17fe5e9f9e424565bf2bc57ac1531779.gif?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=gke-service-account%40isolate-dev-hot-rooster.iam.gserviceaccount.com%2F20240206%2Fauto%2Fstorage%2Fgoog4_request&X-Goog-Date=20240206T034357Z&X-Goog-Expires=604800&X-Goog-SignedHeaders=host&X-Goog-Signature=b523450235c7e16ae79259722e1ac086724cb20e9b94b5afef74919491551d778d4ed15d6fa74abeab816af98eb1a029be13dcc64023d83868ecabcefc362256ea5d07d160f202c4327771dccaac6eb4bc25ecdedf2c2d2b797265c08da3980a0f6a11c4536356fcc3630680148281bb4d6fc63dc93878b5fdb9912cdfa9953d0640b68f21eccd717cf0caf3b408c78d5963892e4e5f91e9bf044bc602017a4ddb0733d87d77ff047600526fe7ac82db38ed12685ddd4397c6b443b8e1e636c2dd2b986d7a938da891a5ca4fde338b52c350e2e02fc3ac6e54ef8386a4c7e859b1726a261ef12e145c787ce04013f2cc7b5a61416ff854cd79c7acf5494ec3d9)
24

creative_upscalerREADME.md3 matches

@fal•Updated 1 year ago
5### Usage
6```js
7const upscaledImage = @fal.creative_upscaler("an owl", "https://storage.googleapis.com/falserverless/model_tests/upscale/owl.png")
8```
9
15 input: {
16 prompt: "an owl",
17 image_url: "https://storage.googleapis.com/falserverless/model_tests/upscale/owl.png",
18 },
19 logs: true,
29https://www.fal.ai/models/creative-upscaler
30
31![owl.png](https://storage.googleapis.com/falserverless/gallery/owl_upscale.jpg)
32
33

RandomQuoteAPI

@Freelzy•Updated 1 hour ago

HAPI7 file matches

@dIgitalfulus•Updated 6 hours ago
Kapil01
apiv1