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=109&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 17934 results for "api"(2192ms)

omoBookingForm.tsx1 match

@omoba6417•Updated 3 days ago
62 };
63
64 const response = await fetch('/api/flights/book', {
65 method: 'POST',
66 headers: {

creatawebhoodforabusinessindex.html4 matches

@Victoria1234•Updated 3 days ago
21 </div>
22 <div class="bg-green-50 p-4 rounded-lg">
23 <h3 class="font-semibold text-green-800">Orders API</h3>
24 <code class="text-sm text-green-600">/api/orders</code>
25 </div>
26 <div class="bg-purple-50 p-4 rounded-lg">
149 async function checkStatus() {
150 try {
151 const response = await fetch('/api/status');
152 const data = await response.json();
153 document.getElementById('status').textContent = `✅ ${data.status}`;
162 async function loadOrders() {
163 try {
164 const response = await fetch('/api/orders');
165 const data = await response.json();
166

untitled-8829App.tsx1 match

@M_mb_a•Updated 3 days ago
61 }
62
63 const response = await fetch(`/api/events?${params}`);
64 if (!response.ok) throw new Error("Failed to fetch events");
65

creatawebhoodforabusinessindex.ts4 matches

@Victoria1234•Updated 3 days ago
19
20// Mount order management routes
21app.route('/api/orders', orders);
22
23// Serve static files
31});
32
33// API status endpoint
34app.get('/api/status', (c) => {
35 return c.json({
36 status: 'running',
38 endpoints: {
39 webhook: '/webhook/orders',
40 orders: '/api/orders',
41 health: '/webhook/health'
42 }

omoApp.tsx1 match

@omoba6417•Updated 3 days ago
30 });
31
32 const response = await fetch(`/api/flights/search?${queryParams}`);
33 const data = await response.json();
34

omoindex.ts2 matches

@omoba6417•Updated 3 days ago
14await runMigrations();
15
16// API routes
17app.route("/api/flights", flightsRoutes);
18
19// Static file serving and main app

omoREADME.md5 matches

@omoba6417•Updated 3 days ago
35```
36
37## API Endpoints
38
39- `GET /` - Serves the main application
40- `GET /api/flights/search` - Search for flights
41- `POST /api/flights/book` - Book a flight
42- `GET /api/bookings/:id` - Get booking details
43
44## Database Schema
49## Getting Started
50
51This app runs on Val Town. The backend serves both the API and the frontend files.

untitled-8829README.md1 match

@M_mb_a•Updated 3 days ago
40## Tech Stack
41
42- **Backend**: Hono (TypeScript API framework)
43- **Frontend**: React with TypeScript
44- **Database**: SQLite

reactHonoStarter2index.ts2 matches

@stevekrouse•Updated 3 days ago
12app.get("/frontend/**/*", c => serveFile(c.req.path, import.meta.url));
13
14// Add your API routes here
15// app.get("/api/data", c => c.json({ hello: "world" }));
16
17// Unwrap and rethrow Hono errors as the original error

CanvaCanva.tsx3 matches

@ugurwd•Updated 3 days ago
26 console.log("Refreshing token...");
27
28 const response = await fetch("https://api.canva.com/rest/v1/oauth/token", {
29 method: "POST",
30 headers: {
84 const token = await getValidToken();
85
86 // Prepare Canva API request
87 const canvaUrl = `https://api.canva.com/rest/v1/${pathname}${url.search}`;
88 const canvaHeaders = {
89 "Authorization": `Bearer ${token}`,

dailyQuoteAPI

@Souky•Updated 1 day ago

HTTP

@Ncharity•Updated 1 day ago
Daily Quote API
Kapil01
apiv1