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/$1?q=api&page=1&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 18423 results for "api"(905ms)

twitterAPI1 file match

@charmaine•Updated 4 hours ago

googleGeminiAPI2 file matches

@Roskozbigboss•Updated 5 hours ago

Galacta3 file matches

@defunkt•Updated 7 hours ago
Marvel Rivals GPT via tracker.gg API

github-api2 file matches

@cricks_unmixed4u•Updated 15 hours ago

beeminder-api4 file matches

@cricks_unmixed4u•Updated 2 days ago

xxxclearinghouse_validator

@toowired•Updated 2 days ago
Request validator for clearance API

Apiify11 file matches

@wolf•Updated 3 days ago

dailyQuoteAPI

@Souky•Updated 5 days ago

HTTP

@Ncharity•Updated 5 days ago
Daily Quote API

RandomQuoteAPI

@Freelzy•Updated 1 week ago

autonomous-valtools.tsx4 matches

@AemirTyr•Updated 1 hour ago
77 }),
78 execute: async ({ query }) => {
79 const apiKey = Deno.env.get("EXA_API_KEY");
80 const exa = new Exa(apiKey);
81 const result = await exa.searchAndContents(query, {
82 text: true,
100 }),
101 execute: async ({ url }) => {
102 const apiKey = Deno.env.get("EXA_API_KEY");
103 const exa = new Exa(apiKey);
104 const result = await exa.getContents([url], { text: true });
105 return {

autonomous-valREADME.md9 matches

@AemirTyr•Updated 1 hour ago
1# Autonomous Val
2This project demonstrates how to build autonomous agents on Val Town that can be triggered by API calls, cron jobs, etc.
3
4![Screenshot 2025-05-29 at 8.03.54 PM.png](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/8d53ae11-7cc7-415d-9a2d-edd9c66c5500/public)
8
9Configure the following variables in your environment:
10- `AGENT_API_KEY` (This is a secure token that you choose to secure the agent.tsx POST endpoint)
11- `OPENAI_API_KEY` (An OpenAI API Key)
12- `EXA_API_KEY` (Optional, though needed if you use the web search tool)
13
14## Usage
15Use `demo.tsx` to send objectives to your agent.
16
17### API Usage
18To use the API from another client, you can POST authenticated requests to the agent.tsx endpoint:
19
20```javascript
30 headers: {
31 "Content-Type": "application/json",
32 "Authorization": `Bearer ${Deno.env.get("AGENT_API_KEY")}`,
33 },
34 body: JSON.stringify(requestBody),
37
38### Streaming Chat
39The API will also work with streaming chat front ends based on the Vercel AI SDK's useChat hook.
40
41You just need to pass `streamResults: true` in your API POST request.
42
43## Using Other Models
Kapil01
apiv1