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=1247&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 19269 results for "api"(2504ms)

subaudiomain.tsx3 matches

@stevekrouse•Updated 2 months ago
23
24// async function processAudio(audio_uri) {
25// const substrate = new Substrate({ apiKey: Deno.env.get("SUBSTRATE_API_KEY") });
26// const opts = { cache_age: 60 * 60 * 24 * 7 };
27
103// <link rel="icon" href="https://www.substrate.run/favicon.ico" type="image/x-icon">
104// <link
105// href="https://fonts.googleapis.com/css2?family=Roboto:wght@700&display=swap"
106// rel="stylesheet"
107// />
577// }
578
579export default () => new Response("Substrate API not supported anymore");

GitHubSyncREADME.md3 matches

@ka12m•Updated 2 months ago
24 - Ensure the token has read/write access to _Contents_ for the repo
25 - Copy the access token and add that as the `GITHUB_TOKEN` env var in this val
261. Add a new [Val Town API token][] with read/write permissions. Add that token to the val's env vars as `VALTOWN_TOKEN`
271. Add a `VAL_SECRET` env var to the val. Use this secret to sign the webhook POST request to the `/push` endpoint. Use this endpoint to commit vals from Val Town to your GitHub repo.
28
68
69- `GITHUB_TOKEN`: Read/write GitHub personal access token for reading and writing repo contents
70- `VALTOWN_TOKEN`: ValTown API token (with read/write Vals permissions) for writing updates from GitHub
71- `GITHUB_WEBHOOK_SECRET`: secret for verifying webhooks from GitHub
72- `VAL_SECRET`: secret for verifying requests to the `/push` endpoint
98[github oauth app]: https://github.com/settings/developers
99[access token]: https://github.com/settings/tokens
100[val town api token]: https://www.val.town/settings/api
101[troubleshooting]: #troubleshooting
102

GXNewsmain.tsx2 matches

@Sagini•Updated 2 months ago
271 borderRadius: '5px',
272 cursor: 'pointer',
273 textTransform: 'capitalize'
274 }}
275 >
356 padding: '2px 5px',
357 borderRadius: '3px',
358 textTransform: 'capitalize'
359 }}>
360 {article.topic}

SQLExplorermain.tsx2 matches

@ianmenethil•Updated 2 months ago
27// <head>
28// <title>SQLite Explorer</title>
29// <link rel="preconnect" href="https://fonts.googleapis.com" />
30
31// <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
32// <link
33// href="https://fonts.googleapis.com/css2?family=Fira+Code:wght@300..700&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap"
34// rel="stylesheet"
35// />

trAIderAgentindex.ts1 match

@kamalnrf•Updated 2 months ago
6const CSS = (await readFile("/frontend/styles.css", import.meta.url)).toString();
7
8app.route("/api", backend);
9app.get("/", async (c) => {
10 return c.html(

SQLExplorerREADME.md1 match

@ianmenethil•Updated 2 months 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

forlatermain.tsx1 match

@yieldray•Updated 2 months ago
66 fd.append("reqtype", "fileupload");
67 fd.append("fileToUpload", new File([ab], `${title}.html`));
68 const text = await fetch("https://catbox.moe/user/api.php", { method: "POST", body: fd }).then((res) => res.text());
69 return text.trim();
70}

sqlite_adminREADME.md1 match

@g000m•Updated 2 months ago
9To use it on your own Val Town SQLite database, [fork it](https://www.val.town/v/stevekrouse/sqlite_admin/fork) to your account.
10
11It uses [basic authentication](https://www.val.town/v/pomdtr/basicAuth) with your [Val Town API Token](https://www.val.town/settings/api) as the password (leave the username field blank).

twitterAlertREADME.md4 matches

@Danielmicah1114•Updated 2 months ago
31Refer to [Twitter's search operators](https://socialdata.gitbook.io/docs/twitter-tweets/retrieve-search-results-by-keyword#endpoint-parameters) to fine-tune your query.
32
33### 4. Test API call
34Set `isProd = false` in the code if you are testing, to ensure there are enough tweets to display. <br>
35Toggle it back to `true` when you're ready to run this cron job in production and actuall send notifications.
60
61### NOTE: Usage Limits
62This val uses the SocialData API for Twitter data:
63
64- **Proxies via Val Town's [SocialDataProxy](https://www.val.town/v/stevekrouse/socialDataProxy)**: Limited to 10 cents per day for [**Val Town Pro users**](https://www.val.town/pricing). This API is *only* for Pro users.
65- **Need more calls?** Sign up for your own [SocialData API token](https://socialdata.tools) and configure the [`socialDataSearch`](https://www.val.town/v/stevekrouse/socialDataSearch) function.

NowPlayingmain.tsx2 matches

@steini•Updated 2 months ago
2import querystring from "npm:querystring";
3
4const NOW_PLAYING_ENDPOINT = "https://api.spotify.com/v1/me/player/currently-playing";
5const TOKEN_ENDPOINT = "https://accounts.spotify.com/api/token";
6
7const client_id = Deno.env.get("8321c74515024ee2bb723dde2dc7e8e9");
Plantfo

Plantfo8 file matches

@Llad•Updated 5 hours ago
API for AI plant info

api_ianmenethil_com133 file matches

@ianmenethil•Updated 14 hours ago
apiry
snartapi