twitterAPI1 file match
googleGeminiAPI2 file matches
Galacta3 file matches
Marvel Rivals GPT via tracker.gg API
github-api2 file matches
beeminder-api4 file matches
Request validator for clearance API
Apiify11 file matches
Daily Quote API
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)
77}),
78execute: async ({ query }) => {
79const apiKey = Deno.env.get("EXA_API_KEY");
80const exa = new Exa(apiKey);
81const result = await exa.searchAndContents(query, {
82text: true,
100}),
101execute: async ({ url }) => {
102const apiKey = Deno.env.get("EXA_API_KEY");
103const exa = new Exa(apiKey);
104const result = await exa.getContents([url], { text: true });
105return {
1# Autonomous Val
2This project demonstrates how to build autonomous agents on Val Town that can be triggered by API calls, cron jobs, etc.
34
89Configure 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)
1314## Usage
15Use `demo.tsx` to send objectives to your agent.
1617### API Usage
18To use the API from another client, you can POST authenticated requests to the agent.tsx endpoint:
1920```javascript
30headers: {
31"Content-Type": "application/json",
32"Authorization": `Bearer ${Deno.env.get("AGENT_API_KEY")}`,
33},
34body: JSON.stringify(requestBody),
3738### Streaming Chat
39The API will also work with streaming chat front ends based on the Vercel AI SDK's useChat hook.
4041You just need to pass `streamResults: true` in your API POST request.
4243## Using Other Models