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/image-url.jpg%20%22Optional%20title%22?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 12724 results for "api"(1395ms)

sqliteExplorerApp_DEVREADME.md1 match

@nbbaierUpdated 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

pollermain.tsx2 matches

@pranjaldotdevUpdated 1 year ago
49
50 const response = await pushover({
51 token: Deno.env.get("PO_API_TOKEN")!,
52 user: Deno.env.get("PO_USER_KEY")!,
53 title,
58 console.log("Notified: ", response);
59 } catch (err) {
60 console.error("Error scraping newsletter ", err);
61 }
62};

myApimain.tsx1 match

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

leaderboardmain.tsx1 match

@sqliteUpdated 1 year ago
10 const table = stripAnsi(renderTable(zip(res)));
11
12 const resp = await fetch("https://sourcecodeshots.com/api/image", {
13 method: "POST",
14 headers: {

httpmain.tsx1 match

@rlimitUpdated 1 year ago
6
7/**
8 * API Client for interfacing with the RateLimit API. Uses free tier rlimit.com credentials.
9 */
10export class RateLimit {

slackBotExamplemain.tsx1 match

@maxmUpdated 1 year ago
16 // like the sender and the message text
17 const result = await fetchJSON(
18 "https://slack.com/api/chat.postMessage",
19 {
20 headers: {

telegramWebhookExamplemain.tsx1 match

@maxmUpdated 1 year ago
4 // Verify this webhook came from our bot
5 if (
6 req.headers.get("x-telegram-bot-api-secret-token")
7 !== Deno.env.get("telegramWebhookSecret")
8 ) {

nasaAPODmain.tsx1 match

@henriiUpdated 1 year ago
2
3// Returns NASA's Astronomy Picture of the Day (APOD)
4export const nasaAPOD = await fetchJSON("https://api.nasa.gov/planetary/apod?api_key=DEMO_KEY");
5console.log(nasaAPOD.url);
6

gptTagmain.tsx1 match

@vladimyrUpdated 1 year ago
3async function getOpenAI() {
4 // if you don't have a key, use our std library version
5 if (Deno.env.get("OPENAI_API_KEY") === undefined) {
6 const { OpenAI } = await import("https://esm.town/v/std/openai");
7 return new OpenAI();

chatmain.tsx1 match

@andreterronUpdated 1 year ago
3async function getOpenAI() {
4 // if you don't have a key, use our std library version
5 if (Deno.env.get("OPENAI_API_KEY") === undefined) {
6 const { OpenAI } = await import("https://esm.town/v/std/openai");
7 return new OpenAI();

vapi-minutes-db1 file match

@henrywilliamsUpdated 18 hours ago

vapi-minutes-db2 file matches

@henrywilliamsUpdated 20 hours 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