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/$%7Burl%7D?q=api&page=87&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 12579 results for "api"(969ms)

testtownieREADME.md1 match

@charmaineUpdated 1 week ago
8- Markdown support for blog posts
9- SQLite database for content storage
10- API endpoints for managing blog content
11- Beautiful typography and reading experience
12
413 // Update todo status
414 try {
415 const response = await fetch('/api/todos/' + todoId, {
416 method: 'PUT',
417 headers: {
671 try {
672 // Submit log data
673 const response = await fetch('/api/log', {
674 method: 'POST',
675 headers: {
84 status: "pending",
85 priority: 3,
86 notes: "Consider a micro-SaaS or API that demonstrates your skills"
87 }
88 ];

CareerCoach20Dayapp.ts3 matches

@prashamtrivediUpdated 1 week ago
22
23// Mount controllers
24app.route('/api/log', logEntryController);
25app.route('/api/todos', todoController);
26app.route('/api/leads', leadController);
27app.route('/', dashboardController);
28
12/**
13 * Get all leads, optionally filtered by status
14 * GET /api/leads
15 * GET /api/leads?status=new
16 */
17leadController.get('/', async (c) => {
35/**
36 * Get lead pipeline summary
37 * GET /api/leads/pipeline
38 */
39leadController.get('/pipeline', async (c) => {
56/**
57 * Create a new lead
58 * POST /api/leads
59 */
60leadController.post('/', async (c) => {
101/**
102 * Update an existing lead
103 * PUT /api/leads/:id
104 */
105leadController.put('/:id', async (c) => {
14/**
15 * Handle daily log entries
16 * POST /api/log
17 */
18logEntryController.post('/', async (c) => {
7/**
8 * Get all todos, optionally filtered by status
9 * GET /api/todos
10 * GET /api/todos?status=pending
11 */
12todoController.get('/', async (c) => {
30/**
31 * Create a new todo
32 * POST /api/todos
33 */
34todoController.post('/', async (c) => {
73/**
74 * Update an existing todo
75 * PUT /api/todos/:id
76 */
77todoController.put('/:id', async (c) => {

CareerCoach20Dayindex.ts1 match

@prashamtrivediUpdated 1 week ago
1// CareerCoach20Day/backend/index.ts
2import handler from './api/index.ts';
3
4export default handler;

aqiREADME.md2 matches

@pepicrftUpdated 1 week ago
1# AQI Alerts
2
3**Note: I recently updated the code for this to the OpenAQ v3 API and there might be bugs.**
4
5Get email alerts when AQI is unhealthy near you.
10
111. Click `Remix`
122. Change `location` (Line 4 in [main.tsx](/main.tsx#L4)) to describe your location. It accepts fairly flexible English descriptions which it turns into locations via [nominatim's geocoder API](https://www.val.town/v/stevekrouse/nominatimSearch).
133. Click `Run`
14

aqiproxy.ts2 matches

@pepicrftUpdated 1 week ago
1const TARGET_URL = "https://api.openaq.org";
2
3export default async function(req: Request): Promise<Response> {
5 return fetch(TARGET_URL + url.pathname + url.search, {
6 headers: {
7 "X-API-Key": Deno.env.get("OpenAQ_API_KEY") as string,
8 },
9 });

vapi-minutes-db1 file match

@henrywilliamsUpdated 57 mins ago

vapi-minutes-db2 file matches

@henrywilliamsUpdated 2 hours ago
papimark21
socialdata
Affordable & reliable alternative to Twitter API: ➡️ Access user profiles, tweets, followers & timeline data in real-time ➡️ Monitor profiles with nearly instant alerts for new tweets, follows & profile updates ➡️ Simple integration