You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/image-url.jpg?q=api&page=20&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 11733 results for "api"(2317ms)
71// Steps should be marked as successfully completed using `complete` or
72// as having failed using `fail`, else they'll remain in an 'In progress' state.
73// Learn more at https://api.slack.com/automation/interactive-messages
74// biome-ignore lint/style/noNonNullAssertion: we know this button comes from a step, so `fail` is available.
75await complete!({ outputs: { user_id: user.id } });
38advice: async () => {
39console.log("handler.advice");
40const res = await fetch("https://api.adviceslip.com/advice");
41if (!res.ok) {
42console.error("advice fetch failed", res.status);
61trivia: async () => {
62console.log("handler.trivia");
63const res = await fetch("http://numbersapi.com/random/trivia?json");
64if (!res.ok) {
65console.error("trivia fetch failed", res.status);
71compliment: async () => {
72console.log("handler.compliment");
73const res = await fetch("https://complimentr.com/api");
74if (!res.ok) {
75console.error("compliment fetch failed", res.status);