You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/image-url.jpg%20%22Optional%20title%22?q=fetch&page=10&format=json
For typeahead suggestions, use the /typeahead
endpoint:
https://codesearch.val.run/typeahead?q=fetch
Returns an array of strings in format "username" or "username/projectName"
Found 15603 results for "fetch"(6104ms)
1import { blob } from "https://esm.town/v/std/blob";
2import { email } from "https://esm.town/v/std/email";
3import { fetch } from "https://esm.town/v/std/fetch";
4import { parseXML } from "https://esm.town/v/stevekrouse/parseXML";
589export async function gitHubReleaseTracker() {
10const response = await fetch(AtomURL);
11const newestEntry = (await parseXML(await response.text())).feed
12.entry[0];
123useEffect(() => {
124if (user && view === "dashboard") {
125fetchContacts();
126}
127}, [user, view]);
128129const fetchContacts = async () => {
130try {
131setIsLoading(true);
132const response = await fetch("/contacts");
133if (response.ok) {
134const data = await response.json();
136}
137} catch (error) {
138console.error("Error fetching contacts:", error);
139} finally {
140setIsLoading(false);
147setIsLoading(true);
148setLoginError("");
149const response = await fetch("/login", {
150method: "POST",
151headers: { "Content-Type": "application/json" },
206try {
207setIsLoading(true);
208const response = await fetch("/contact", {
209method: "POST",
210headers: { "Content-Type": "application/json" },