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/$1?q=api&page=9&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 18501 results for "api"(1154ms)

EnkakuAuthenticatedAPI1 file match

@paul_lecam•Updated 5 months ago

wideApi2 file matches

@maxm•Updated 5 months ago

captivatingPurpleTapir1 file match

@mohsen•Updated 6 months ago

simpleChatAPI1 file match

@haeliyan•Updated 6 months ago

SermonGPTAPI1 file match

@mjweaver01•Updated 6 months ago

translateTextAPI2 file matches

@sky_porie_fire443•Updated 6 months ago

sapientLavenderHerring2 file matches

@maxm•Updated 6 months ago

katakanaWordApi1 file match

@jdan•Updated 6 months ago

api_v11 file match

@maxharper26•Updated 7 months ago

GitHubAPI1 file match

@sharon•Updated 7 months ago

thirdTimerindex.html2 matches

@nbbaier•Updated 51 mins ago
18 <meta name="google" content="notranslate" />
19
20 <link rel="preconnect" href="https://fonts.googleapis.com" />
21 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
22 <link
23 href="https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Fira+Code:wght@300..700&family=Recursive:wght@300..1000&display=swap"
24 rel="stylesheet"
25 />

farcaster-autoPostToXindex.ts13 matches

@artivilla•Updated 1 hour ago
1import { TwitterApi } from "npm:twitter-api-v2";
2
3interface CastCreatedWebhook {
104 }
105
106 // Get Twitter API credentials from environment
107 const apiKey = Deno.env.get("TWITTER_API_KEY");
108 const apiSecret = Deno.env.get("TWITTER_API_SECRET");
109 const accessToken = Deno.env.get("TWITTER_ACCESS_TOKEN");
110 const accessTokenSecret = Deno.env.get("TWITTER_ACCESS_TOKEN_SECRET");
111
112 if (!apiKey || !apiSecret || !accessToken || !accessTokenSecret) {
113 console.error(
114 "Missing Twitter API credentials. Required: TWITTER_API_KEY, TWITTER_API_SECRET, TWITTER_ACCESS_TOKEN, TWITTER_ACCESS_TOKEN_SECRET",
115 );
116 return new Response("OK", { status: 200 });
117 }
118
119 // Initialize Twitter API client
120 const twitterClient = new TwitterApi({
121 appKey: apiKey,
122 appSecret: apiSecret,
123 accessToken: accessToken,
124 accessSecret: accessTokenSecret,
141 }
142
143 // Convert MIME type to format string for Twitter API
144 let imageFormat: string;
145 switch (contentType) {
199 console.error("Error processing webhook:", error);
200
201 // Log more specific Twitter API errors
202 if (error.data) {
203 console.error("Twitter API error details:", error.data);
204 }
205 }
Kapil01
apiv1