Skip to content

Aliases

GET /v1/alias/{username}

Get a user profile information by their username

ExampleRun in Val Town ↗
import { alias } from "https://esm.town/v/neverstew/alias";
export let aliasExample = alias({
username: "stevekrouse",
});

GET /v1/alias/{username}/{val_name}

Get a val by the author’s username and val name

ExampleRun in Val Town ↗
import { alias } from "https://esm.town/v/neverstew/alias";
export const aliasValExample = alias({
username: "stevekrouse",
valName: "parentReference",
// for private vals, pass your val town api token
// token: Deno.env.get("valtown")
});
Fork it on