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=1480&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 17729 results for "api"(2566ms)

twitterAlertREADME.md1 match

@seflless•Updated 11 months ago
25Todos:
26
27- this should filter the twitter API call to only tweets since the last run.
28- some kind of caching to avoid rate limiting
29- would be nice to use the user's feed instead of a username list... but not sure how easy that is

getTweetsmain.tsx6 matches

@geoffreylitt•Updated 11 months ago
5// config({ export: true });
6
7// Twitter API endpoint for user tweets
8const endpointUrl = "https://api.twitter.com/2/tweets";
9
10// Twitter API bearer token
11const bearerToken = Deno.env.get("twitter");
12
13if (!bearerToken) {
14 console.error("Please set your Twitter API Bearer Token in the environment variables.");
15 Deno.exit(1);
16}
18// Function to fetch tweets from a user
19export async function getTweets(username: string) {
20 const userUrl = `https://api.twitter.com/2/users/by/username/${username}`;
21 const userResponse = await fetch(userUrl, {
22 headers: {
33 const userId = userData.data.id;
34
35 const tweetsUrl = `https://api.twitter.com/2/users/${userId}/tweets`;
36 const tweetsResponse = await fetch(tweetsUrl, {
37 headers: {

sqliteExplorerAppREADME.md1 match

@dtkav•Updated 11 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

sqliteExplorerAppmain.tsx2 matches

@dtkav•Updated 11 months ago
26 <head>
27 <title>SQLite Explorer</title>
28 <link rel="preconnect" href="https://fonts.googleapis.com" />
29
30 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
31 <link
32 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"
33 rel="stylesheet"
34 />

twitterDailyDigestREADME.md1 match

@geoffreylitt•Updated 11 months ago
25Todos:
26
27- this should filter the twitter API call to only tweets since the last run.
28- some kind of caching to avoid rate limiting
29- would be nice to use the user's feed instead of a username list... but not sure how easy that is

oceanThememain.tsx1 match

@iamseeley•Updated 11 months ago
1export const oceanTheme = {
2 fontLink: `<link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap" rel="stylesheet">`,
3 styles: `
4 /* General styles */

httpApiScreenshotPageExampleREADME.md1 match

@charlypoly•Updated 11 months ago
1Migrated from folder: browserbase/httpApiScreenshotPageExample

browserbasePuppeteerExamplemain.tsx1 match

@charlypoly•Updated 11 months ago
2
3const browser = await puppeteer.connect({
4 browserWSEndpoint: `wss://connect.browserbase.com?apiKey=${Deno.env.get("BROWSERBASE_API_KEY")}`,
5});
6

semanticSearchmain.tsx1 match

@yawnxyz•Updated 11 months ago
13}));
14
15openai.apiKey = Deno.env.get("OPENAI_API_KEY");
16
17class SemanticSearch {

createGeneratedValmain.tsx1 match

@yawnxyz•Updated 11 months ago
56
57 const val = await fetchJSON(
58 `https://api.val.town/v1/vals`,
59 {
60 method: "POST",

RandomQuoteAPI

@Freelzy•Updated 1 day ago

HAPI7 file matches

@dIgitalfulus•Updated 1 day ago
Kapil01
apiv1