You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/$1?q=api&page=8&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 19759 results for "api"(3137ms)
28const msgId = lastMessages.get(chatId)!;
29try {
30await ctx.api.deleteMessage(chatId, msgId);
31} catch {}
32}
39setTimeout(async () => {
40try {
41await ctx.api.deleteMessage(chatId, sent.message_id);
42lastMessages.delete(chatId);
43} catch {}
15```
1617If you want to use an [api token](https://www.val.town/settings/api) to authenticate:
1819```ts