Val Town Code SearchReturn to Val Town

API Access

You can access search results via JSON API by adding format=json to your query:

https://codesearch.val.run/?q=api&page=108&format=json

For typeahead suggestions, use the /typeahead endpoint:

https://codesearch.val.run/typeahead?q=api

Returns an array of strings in format "username" or "username/projectName"

Found 11514 results for "api"(2116ms)

Glancerproperty-injections.ts1 match

@bradnoble•Updated 1 week ago
7// Initialize Notion client
8const notion = new Client({
9 auth: Deno.env.get("NOTION_API_KEY"),
10});
11

GlancernotionHelpers.ts1 match

@bradnoble•Updated 1 week ago
4// Initialize Notion client
5const notion = new Client({
6 auth: Deno.env.get("NOTION_API_KEY"),
7});
8

Glancerhelpers.ts1 match

@bradnoble•Updated 1 week ago
70 return faviconUrl;
71 } catch (error) {
72 console.error("Error scraping favicon:", error);
73 return null;
74 }

Glancerexample-guest-welcome.ts1 match

@bradnoble•Updated 1 week ago
7// Initialize Notion client
8const notion = new Client({
9 auth: Deno.env.get("NOTION_API_KEY"),
10});
11

Glancerexample-database-page.ts2 matches

@bradnoble•Updated 1 week ago
9// Initialize Notion client
10const notion = new Client({
11 auth: Deno.env.get("NOTION_API_KEY"),
12});
13
61 // unless there's already a blob key that matches
62 // to see if there's a match, loop through blobs rather than traversing the notion page
63 // though not ideal, it's faster than doing the API calls necessary to traverse the Notion page
64 const checkForBlob = async () => {
65 const items = await blob.list(slug.split(".")[0]);

Glancerexample-database-pages.ts1 match

@bradnoble•Updated 1 week ago
7// Initialize Notion client
8const notion = new Client({
9 auth: Deno.env.get("NOTION_API_KEY"),
10});
11

Glancerexample-child-pages.ts1 match

@bradnoble•Updated 1 week ago
7// Initialize Notion client
8const notion = new Client({
9 auth: Deno.env.get("NOTION_API_KEY"),
10});
11

Glancerexample-callout.ts1 match

@bradnoble•Updated 1 week ago
7// Initialize Notion client
8const notion = new Client({
9 auth: Deno.env.get("NOTION_API_KEY"),
10});
11

filterValsmain.tsx1 match

@nbbaier•Updated 1 week ago
3export async function filterVals(id: string, filter: (value: any, index: number, array: any[]) => unknown) {
4 const token = Deno.env.get("valtown");
5 const res = await fetchPaginatedData(`https://api.val.town/v1/users/${id}/vals`, {
6 headers: { Authorization: `Bearer ${token}` },
7 });

filterValsmain.tsx1 match

@dcm31•Updated 1 week ago
3export async function filterVals(id: string, filter: (value: any, index: number, array: any[]) => unknown) {
4 const token = Deno.env.get("valtown");
5 const res = await fetchPaginatedData(`https://api.val.town/v1/users/${id}/vals`, {
6 headers: { Authorization: `Bearer ${token}` },
7 });

gptApiTemplate2 file matches

@charmaine•Updated 23 hours ago

mod-interview-api1 file match

@twschiller•Updated 1 day ago
apiv1
papimark21