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=204&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 18084 results for "api"(1082ms)

JobseekerAidMyApplications.tsx1 match

@eonyiukeโ€ขUpdated 5 days ago
24 setLoading(true);
25 setError('');
26 const response = await fetch(`/api/applications/my/${encodeURIComponent(userEmail)}`);
27
28 if (response.ok) {

At_your_doorstepREADME.md1 match

@TechEnthusiastโ€ขUpdated 5 days ago
19โ”‚ โ”‚ โ””โ”€โ”€ queries.ts # Database query functions
20โ”‚ โ”œโ”€โ”€ routes/
21โ”‚ โ”‚ โ”œโ”€โ”€ products.ts # Product API endpoints
22โ”‚ โ”‚ โ””โ”€โ”€ orders.ts # Order/checkout endpoints
23โ”‚ โ””โ”€โ”€ index.ts # Main Hono server

JobseekerAidChat.tsx3 matches

@eonyiukeโ€ขUpdated 5 days ago
58 const fetchMessages = async () => {
59 try {
60 const response = await fetch('/api/chat/messages');
61 if (response.ok) {
62 const messagesData = await response.json();
75 const fetchNewMessages = async () => {
76 try {
77 const response = await fetch(`/api/chat/messages/since/${encodeURIComponent(lastTimestampRef.current)}`);
78 if (response.ok) {
79 const newMessages = await response.json();
98 setIsSending(true);
99 try {
100 const response = await fetch('/api/chat/messages', {
101 method: 'POST',
102 headers: {

JobseekerAidApplicationForm.tsx1 match

@eonyiukeโ€ขUpdated 5 days ago
26
27 try {
28 const response = await fetch('/api/applications', {
29 method: 'POST',
30 headers: {

untitled-4443index.ts2 matches

@Midigoโ€ขUpdated 5 days ago
18});
19
20// API route for contact form (placeholder)
21app.post("/api/contact", async c => {
22 const body = await c.req.json();
23

untitled-4443Contact.tsx1 match

@Midigoโ€ขUpdated 5 days ago
27
28 try {
29 const response = await fetch('/api/contact', {
30 method: 'POST',
31 headers: {

JobseekerAidJobBoard.tsx1 match

@eonyiukeโ€ขUpdated 5 days ago
21 const fetchJobs = async () => {
22 try {
23 const response = await fetch('/api/jobs');
24 if (response.ok) {
25 const jobsData = await response.json();

JobseekerAidREADME.md4 matches

@eonyiukeโ€ขUpdated 5 days ago
17โ”‚ โ”‚ โ””โ”€โ”€ queries.ts # Database query functions
18โ”‚ โ”œโ”€โ”€ routes/
19โ”‚ โ”‚ โ”œโ”€โ”€ jobs.ts # Job-related API endpoints
20โ”‚ โ”‚ โ”œโ”€โ”€ applications.ts # Application API endpoints
21โ”‚ โ”‚ โ”œโ”€โ”€ chat.ts # Chat API endpoints
22โ”‚ โ”‚ โ””โ”€โ”€ static.ts # Static file serving
23โ”‚ โ””โ”€โ”€ index.ts # Main Hono app entry point
38## Tech Stack
39
40- **Backend**: Hono (TypeScript API framework)
41- **Frontend**: React with TypeScript
42- **Database**: SQLite

Briannew-file-6498.tsx3 matches

@Brian250โ€ขUpdated 5 days ago
32```
33
34## API
35
36Currently uses mock data for demonstration. In production, this would integrate with:
37- football-data.org (free tier available)
38- API-Football (RapidAPI)
39- Other football data providers
40
62- **Backend**: Hono (TypeScript)
63- **Frontend**: React 18.2.0 + TailwindCSS
64- **Data**: Free football API
65- **Platform**: Val Townexport default async function (req: Request): Promise<Response> {
66 return Response.json({ ok: true })

refashionedProductCard.tsx2 matches

@jeffyโ€ขUpdated 5 days ago
34
35 try {
36 const response = await fetch('/api/cart/add', {
37 method: 'POST',
38 headers: {
56
57 // Refresh cart
58 const cartResponse = await fetch('/api/cart', {
59 credentials: 'include'
60 });

Apiify11 file matches

@wolfโ€ขUpdated 15 hours ago

dailyQuoteAPI

@Soukyโ€ขUpdated 2 days ago
apiv1
snartapi