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=1536&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 20733 results for "api"(5622ms)

StripeTriggerValsmain.tsx1 match

@wolf•Updated 5 months ago
17const stripe = new Stripe(
18 Deno.env.get("TEST_STRIPE_SECRET") as string,
19 { apiVersion: "2023-10-16" },
20);
21

stripeWebsocketDemostripeTrigger1 match

@wolf•Updated 5 months ago
6const stripe = new Stripe(
7 Deno.env.get("TEST_STRIPE_SECRET") as string,
8 { apiVersion: "2023-10-16" },
9);
10

twitterAlertREADME.md5 matches

@ellie•Updated 5 months ago
14and the `excludes` for what you don't want to get notified for.
15
16You can use [Twitter's search operators](https://developer.twitter.com/en/docs/twitter-api/v1/rules-and-filtering/search-operators) to customize your query, for some collection of keywords, filtering out others, and much more!
17
18## 2. Notification
22## Twitter Data & Limitations
23
24The Twitter API has become unusable. This val gets Twitter data via [SocialData](https://socialdata.tools),
25an affordable Twitter scraping API. In order to make this val easy for
26you to fork & use without signing up for another API, I am proxying
27SocialData via @stevekrouse/socialDataProxy. Val Town Pro users can call this proxy
28100 times per day, so be sure not to set this cron to run more than once every 15 min.
29
30If you want to run it more, get your own [SocialData](https://socialdata.tools)
31API token and pay for it directly.

savvyTomatoToadREADME.md4 matches

@yysofiyan•Updated 5 months ago
11
121. Converted from Express to a native Deno HTTP handler
132. Added two API endpoints:
14
15 + `/api/authors:` Returns all authors
16 + `/api/author/:sintaID`: Returns a specific author by Sinta ID
17
183. Added CORS headers to allow cross-origin requests
246. Used Val Town's recommended import and rendering strategies
25
26The val now provides a flexible API for retrieving author information with both a JSON endpoint and a basic web interface.
8
9const stripe = new Stripe(Deno.env.get("stripe_sk_customer_readonly") as string, {
10 apiVersion: "2020-08-27",
11});
12
8
9const stripe = new Stripe(Deno.env.get("stripe_sk_customer_readonly") as string, {
10 apiVersion: "2020-08-27",
11});
12

newStripeSubscribermain.tsx1 match

@charmaine•Updated 5 months ago
8
9const stripe = new Stripe(Deno.env.get("stripe_sk_customer_readonly") as string, {
10 apiVersion: "2020-08-27",
11});
12

resourcefulAquaKoalaREADME.md2 matches

@Sushantkc•Updated 5 months ago
6
71. Sign up for [Cerebras](https://cloud.cerebras.ai/)
82. Get a Cerebras API Key
93. Save it in a [Val Town environment variable](https://www.val.town/settings/environment-variables) called `CEREBRAS_API_KEY`
10
11# Todos

resourcefulAquaKoalamain.tsx5 matches

@Sushantkc•Updated 5 months ago
212 } catch (error) {
213 Toastify({
214 text: "We may have hit our Cerebras Usage limits. Try again later or fork this and use your own API key.",
215 position: "center",
216 duration: 3000,
1024 };
1025 } else {
1026 const client = new Cerebras({ apiKey: Deno.env.get("CEREBRAS_API_KEY") });
1027 const completion = await client.chat.completions.create({
1028 messages: [
1149 <meta name="viewport" content="width=device-width, initial-scale=1.0">
1150 <title>CerebrasCoder</title>
1151 <link rel="preconnect" href="https://fonts.googleapis.com" />
1152 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
1153 <link
1154 href="https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap"
1155 rel="stylesheet"
1156 />
1165 <meta property="og:description" content="Turn your ideas into fully functional apps in less than a second – powered by Llama3.3-70b on Cerebras's super-fast wafer chips. Code is 100% open-source, hosted on Val Town."">
1166 <meta property="og:type" content="website">
1167 <meta property="og:image" content="https://stevekrouse-blob_admin.web.val.run/api/public/CerebrasCoderOG.jpg">
1168
1169

newStripeEventmain.tsx1 match

@charmaine•Updated 5 months ago
8
9const stripe = new Stripe(Deno.env.get("stripe_sk_customer_readonly") as string, {
10 apiVersion: "2020-08-27",
11});
12

claude-api1 file match

@ziyanwould•Updated 2 days ago

api-workshop

@danarddanielsjr•Updated 4 days ago
codingpapi
replicate
Run AI with an API