You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/image-url.jpg?q=image&page=3&format=json
For typeahead suggestions, use the /typeahead
endpoint:
https://codesearch.val.run/typeahead?q=image
Returns an array of strings in format "username" or "username/projectName"
Found 6344 results for "image"(1984ms)
1112See all 3 in action👇
13
1415### 1. PR Auto-Assign
5051See this in action👇
52
5354
39if (response.status > 400) {
40const shortenedName = "Error (Forbidden)";
41const image = "/assets/spotify.svg";
42return { shortenedName, image };
43} else if (response.status === 204) {
44const shortenedName = "Currently Not Playing";
45const image = "/assets/spotify.svg";
46return { shortenedName, image };
47}
4849const song = await response.json();
50const image = song.item.album.images[0].url;
51const artistNames = song.item.artists.map(a => a.name);
52const link = song.item.external_urls.spotify;
65formattedArtist,
66artistLink,
67image,
68};
69} catch (error) {
70const shortenedName = "Error";
71const image = "/assets/spotify.svg";
72return { shortenedName, image };
73}
74};