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=960&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 12322 results for "api"(2665ms)

modifyImageREADME.md1 match

@stevekrouse•Updated 1 year ago
1Code from https://deno.com/blog/build-image-resizing-api
2
3Useful for compressing an image before sending to chatgpt4v, for example

modifyImageREADME.md1 match

@stevekrouse•Updated 1 year ago
1Code from https://deno.com/blog/build-image-resizing-api
2
3Useful for compressing an image before sending to chatgpt4v, for example

GistGPT_Clientmain.tsx4 matches

@weaverwhale•Updated 1 year ago
16 GistGPT
17 </h1>
18 <p class="mb-4">Client for the <a class="underline" target="_blank" href="https://www.val.town/v/weaverwhale/GistGPT">GistGPT API</a></p>
19 <p class="mb-4">Provide a RAW file URL from Github, BitBucket, GitLab, Val Town, etc. and GistGPT will provide you the gist of the code.</p>
20 <input
22 placeholder="Provide a raw gist link here"
23 />
24 <p class="my-4">Have it summarize <a class="inline-block underline cursor-pointer" id="summarize-this">this file</a>, or <a class="inline-block underline cursor-pointer" id="summarize-api">the API's file</a> and it will explain how it works 🤯</p>
25 </body>
26 <script>
27 document.getElementById("summarize-api").addEventListener("click", (e) => {
28 e.target.disabled = true;
29 window.location.href = "/gist?url=https://esm.town/v/weaverwhale/GistGPT";
30 document.querySelector("input").value = "Summarizing the API\'s file...";
31 })
32

PriestGPTClientmain.tsx1 match

@mjweaver01•Updated 1 year ago
15 PriestGPT
16 </h1>
17 <p class="mb-4">Client for the <a class="underline" href="https://www.val.town/v/mjweaver01/PriestGPT">PriestGPT API</a></p>
18 <p class="mb-4">Ask him about books or verses in the bible, and he will be sure to give you a short sermon about it!</p>
19 <input

blob_adminREADME.md1 match

@curtcox•Updated 1 year ago
9[![Install](https://stevekrouse-button.express.val.run/Install)](https://www.val.town/v/stevekrouse/blob_admin_app/fork)
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).
12
13# TODO

dailyDadJokemain.tsx1 match

@bomberstudios•Updated 1 year ago
3
4export async function dailyDadJoke() {
5 let { setup, punchline } = await fetchJSON("https://official-joke-api.appspot.com/random_joke");
6 return email({
7 text: punchline,

dailyDadJokemain.tsx1 match

@sieteunoseis•Updated 1 year ago
3
4export async function dailyDadJoke() {
5 let { setup, punchline } = await fetchJSON("https://official-joke-api.appspot.com/random_joke");
6 return punchline;
7}

dailyDadJokeREADME.md2 matches

@sieteunoseis•Updated 1 year ago
113. 🤣🤣🤣🤣
12
13## API
14
15This val uses the [icanhazdadjoke API](https://icanhazdadjoke.com/api). You can find [more docs here](https://github.com/15Dkatz/official_joke_api), such as how to [filter by type](https://github.com/15Dkatz/official_joke_api?tab=readme-ov-file#grab-jokes-by-type).

gsheet_callREADME.md3 matches

@gwelinder•Updated 1 year ago
1# gsheet_call
2Wrapper around Google Sheets API v4.
3
4## Parameters
6- sheet_id: Google Sheet ID
7- method: HTTP method to use
8- action: Full URL with `https://sheets.googleapis.com/v4/spreadsheets/{spreadsheetId}/` removed
9- data: HTTP request body
10
11## Requirements
12- a Google Cloud service account
13- the Google Sheets API v4 enabled in your Google Cloud project
14- the spreadsheet ID (provide it in the sheet_id parameter)
15

gsheet_callmain.tsx2 matches

@gwelinder•Updated 1 year ago
6 );
7 const googleAuthOptions = {
8 scope: ["https://www.googleapis.com/auth/spreadsheets"],
9 };
10 const token = await getToken(service_account, googleAuthOptions);
11 const result = fetchJSON(
12 `https://sheets.googleapis.com/v4/spreadsheets/${sheet_id}/${action}`,
13 {
14 method,

social_data_api_project3 file matches

@tsuchi_ya•Updated 2 days ago

simple-scrabble-api1 file match

@bry•Updated 5 days ago
api
aquapi