You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/$%7Bart_info.art.src%7D?q=image&page=9&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 6272 results for "image"(753ms)
53const finalType = typeof type === "string" ? type.trim() : "unknown";
54const creation_time = time; // Use the provided timestamp
55// Construct the image URL and link based on the main Pondiverse structure
56const image_url = `https://pondiverse.val.run/get-creation-image?id=${original_id}`;
57const link = `${UPSTREAM_PONDIVERSE_URL}/explore/#c${original_id}`;
5861await sqlite.execute({
62sql: `
63INSERT INTO ${AGGREGATOR_TABLE_NAME} (original_id, title, type, creation_time, image_url, link)
64VALUES (:original_id, :title, :type, :creation_time, :image_url, :link)
65`,
66args: {
69type: finalType,
70creation_time: creation_time,
71image_url: image_url,
72link: link,
73},
14type TEXT,
15creation_time DATETIME NOT NULL, /* Time from the main Pondiverse */
16image_url TEXT, /* Direct URL to the main pondiverse image */
17link TEXT UNIQUE NOT NULL, /* Link to the creation on the main site */
18received_time DATETIME DEFAULT CURRENT_TIMESTAMP /* When this aggregator received it */