Readme

Val Town API Search

This demonstrates how to use the Val Town API to search for vals that mention "lodash".

1
2
3
4
5
6
7
8
import { fetch } from "https://esm.town/v/std/fetch";
export let valTownApiExampleSearch = (async () => {
const query = new URLSearchParams({ query: "lodash", limit: "4" });
const response = await fetch(`https://api.val.town/v1/search/vals?${query}`);
const json = await response.json();
return json;
})();
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
October 23, 2023