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