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/?q=api&page=789&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 11992 results for "api"(918ms)

thrillingAmaranthKiwimain.tsx4 matches

@bladesquad•Updated 5 months ago
159};
160
161// Google Maps API Key
162const GOOGLE_MAPS_API_KEY = 'AIzaSyBOti4mM-6x9WDnZIjIeyEU21OpBXqWBgw';
163
164// Utility Functions
322
323 const script = document.createElement('script');
324 script.src = `https://maps.googleapis.com/maps/api/js?key=${GOOGLE_MAPS_API_KEY}&libraries=places`;
325 script.async = true;
326 script.defer = true;
522 style={{...styles.button, width: '48%', backgroundColor: theme.colors.accent.blue}}
523 onClick={() => {
524 const mapsUrl = `https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(vet.address + ', Algérie')}`;
525 window.open(mapsUrl, '_blank');
526 }}

sqliteExplorerAppREADME.md1 match

@alexdmejias•Updated 5 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

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

valleBlogV0README.md1 match

@ubixsnow•Updated 5 months ago
1* Fork this val to your own profile.
2* Create a [Val Town API token](https://www.val.town/settings/api), open the browser preview of this val, and use the API token as the password to log in.
3

valleBlogV0main.tsx1 match

@ubixsnow•Updated 5 months ago
38 model: openai("gpt-4o", {
39 baseURL: "https://std-openaiproxy.web.val.run/v1",
40 apiKey: Deno.env.get("valtown"),
41 } as any),
42 messages: [

bedtimeStoryMakermain.tsx1 match

@dependify•Updated 5 months ago
1/** @jsxImportSource npm:hono@3/jsx */
2import { Unkey } from "npm:@unkey/api@0.26.1";
3import { Ratelimit } from "npm:@unkey/ratelimit@0.4.4";
4import type { Duration } from "npm:@unkey/ratelimit@0.4.4";

Jokesmain.tsx1 match

@kwc88•Updated 5 months ago
4async function fetchRandomJoke() {
5 const response = await fetch(
6 "https://official-joke-api.appspot.com/random_joke",
7 );
8 return response.json();

Jokesmain.tsx1 match

@shaniac6000•Updated 5 months ago
4async function fetchRandomJoke() {
5 const response = await fetch(
6 "https://official-joke-api.appspot.com/random_joke",
7 );
8 return response.json();

Family100main.tsx1 match

@nirwan•Updated 5 months ago
530 `);
531
532 // Handle different API routes
533 const url = new URL(request.url);
534

scrapeAndPreviewDelta8Productsmain.tsx2 matches

@teretzdev•Updated 5 months ago
41 return products;
42 } catch (error) {
43 console.error('Error scraping products:', error);
44 return [];
45 }
67
68/**
69 * Run scraping and preview products
70 * @returns Array of scraped products
71 */

social_data_api_project3 file matches

@tsuchi_ya•Updated 3 hours ago

simple-scrabble-api1 file match

@bry•Updated 3 days ago
apiv1
papimark21