You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/$%7Burl%7D?q=api&page=49&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 12948 results for "api"(921ms)
90}),
91execute: async ({ query }) => {
92const apiKey = Deno.env.get("EXA_API_KEY");
93const exa = new Exa(apiKey);
94const result = await exa.searchAndContents(query, {
95text: true,
113}),
114execute: async ({ url }) => {
115const apiKey = Deno.env.get("EXA_API_KEY");
116const exa = new Exa(apiKey);
117const result = await exa.getContents([url], { text: true });
118return {
332. The email will be sent to the email address associated with your Val Town account.
34353. Make sure you have set up your OpenAI API key in Val Town environment variables.
3637## Customization
4748If the AI analysis isn't working:
49- Verify your OpenAI API key is correctly set in Val Town
50- Check if you have sufficient credits in your OpenAI account
51- Review the logs to see the AI's response and reasoning