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/$%7Bart_info.art.src%7D?q=api&page=1245&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 19273 results for "api"(3451ms)

stevekrouse_dot_comhomepage.tsx1 match

@shouser•Updated 2 months ago
83 <li className="pb-2 sm:pb-1">
84 <span className={dateClass}>2013 Jun -</span>Software Engineer @{" "}
85 <Link href="http://firstround.com/">First Round Capital</Link>
86 </li>
87 <li className="pb-2 sm:pb-1">

Efficient_loginmain.tsx2 matches

@Elohor•Updated 2 months ago
247
248 // Exchange code for tokens
249 const tokenResponse = await fetch('https://oauth2.googleapis.com/token', {
250 method: 'POST',
251 headers: {
265 // Fetch user info
266 const userInfoResponse = await fetch(
267 `https://www.googleapis.com/oauth2/v1/userinfo?alt=json&access_token=${tokens.access_token}`
268 );
269 const userInfo = await userInfoResponse.json();

Apiifysystem.md2 matches

@wolf•Updated 2 months ago
1You are an experienced software engineer who focuses on webscraping as a way to
2provide people with easy access to useful information.
3
4You are given a URL to a website, and create an API for accessing that website's
5data through a beautiful typed json interface.
6

Apiifyscraping.ts0 matches

@wolf•Updated 2 months ago
1import { tool } from "npm:ai";
2import { z } from "npm:zod";
3import { JSDOM } from "npm:jsdom";
4import { WebsiteInterface } from "../html.ts";
5

JokeGeneratorValmain.tsx1 match

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

ingeniousBlueBirdmain.tsx5 matches

@pastoreekahk96•Updated 2 months ago
3import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
4
5// Google Sheets API Configuration
6// Note: You'll need to set up Google Cloud Project and enable Sheets API
7// Replace with your actual credentials in a real-world scenario
8const SHEET_ID = "1seOqUubZTebHow5wpTLl411HRmsrG_fxugu3j2rNRdg";
9const API_KEY = "DEMO_KEY"; // Replace with actual API key
10
11function SubmissionNotice({ message, onClose }) {
96 ];
97
98 const response = await fetch(`https://sheets.googleapis.com/v4/spreadsheets/${SHEET_ID}/values/AllSubmissions!A:H:append`, {
99 method: 'POST',
100 headers: {
101 'Authorization': `Bearer ${API_KEY}`,
102 'Content-Type': 'application/json'
103 },

TySpeakaiSupportAPI5 matches

@toowired•Updated 2 months ago
1// aiSupportAPI.val.ts
2import { aiSupportLogic } from "./aiSupportLogic.val";
3import authenticate from "./auth.val";
80 }
81
82 // GET /meta — return API metadata and available endpoints
83 if (pathname === "/meta" && req.method === "GET") {
84 const meta = {
85 name: "AI Support Component API",
86 endpoints: [
87 { method: "POST", path: "/refine", description: "Refine and clarify raw input text" },
88 { method: "GET", path: "/logs", description: "View all logged refinements" },
89 { method: "GET", path: "/cache/:key", description: "Retrieve cached result by cache key" },
90 { method: "GET", path: "/status", description: "API health check" },
91 { method: "GET", path: "/meta", description: "List available endpoints and metadata" },
92 ],
102 return new Response("Not Found", { status: 404 });
103 } catch (error) {
104 console.error("API Handler Error:", error);
105 return new Response("Internal Server Error", { status: 500 });
106 }

stevekrouse_dot_comsurvey.tsx3 matches

@stevekrouse•Updated 2 months ago
13 <meta property="og:title" content="Survey the space" />
14 <meta property="og:url" content="Survey the space" />
15 <meta property="og:image" content="https://stevekrouse-blob_admin.web.val.run/api/public/survey.jpeg" />
16 <meta property="twitter:title" content="Survey the space" />
17 <meta property="og:type" content="article" />
19 <meta property="twitter:description" content="Survey the space" />
20 <meta name="twitter:card" content="summary_large_image" />
21 <meta name="twitter:image" content="https://stevekrouse-blob_admin.web.val.run/api/public/survey.jpeg" />
22 <meta property="og:url" content="https://stevekrouse.com/proposal" />
23 <link rel="canonical" content="https://stevekrouse.com/proposal" />
29 <img
30 className=" rounded-lg"
31 src="https://stevekrouse-blob_admin.web.val.run/api/public/survey.jpeg"
32 />
33 <em>

TySpeakauthMechanism3 matches

@toowired•Updated 2 months ago
1typescript
2const VALID_API_KEY = "your_valid_api_key_here"; // Replace with your actual API key
3
4export function authenticate(req: Request): boolean {
5 const apiKey = req.headers.get("x-api-key");
6 return apiKey === VALID_API_KEY;
7}
8

caringSilverHedgehogmain.tsx1 match

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

Plantfo8 file matches

@Llad•Updated 9 hours ago
API for AI plant info

api_ianmenethil_com133 file matches

@ianmenethil•Updated 18 hours ago
apiry
snartapi