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/$1?q=api&page=44&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 18280 results for "api"(3295ms)

MiniAppStarterimage.tsx3 matches

@moe•Updated 2 days ago
85
86const loadEmoji = (code) => {
87 // const api = `https://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${code.toLowerCase()}.svg`
88 const api = `https://cdn.jsdelivr.net/gh/shuding/fluentui-emoji-unicode/assets/${code.toLowerCase()}_color.svg`
89 return fetch(api).then((r) => r.text())
90}
91

markdown-embedtasks.ts1 match

@stevekrouse•Updated 2 days ago
11// Initialize Notion client
12export const notion = new Client({
13 auth: Deno.env.get("NOTION_API_KEY"),
14});
15

markdown-embedsetPageID.ts1 match

@stevekrouse•Updated 2 days ago
3// Initialize Notion client
4const notion = new Client({
5 auth: Deno.env.get("NOTION_API_KEY"),
6});
7

markdown-embedsetPageIcon.ts1 match

@stevekrouse•Updated 2 days ago
3// Initialize Notion client
4const notion = new Client({
5 auth: Deno.env.get("NOTION_API_KEY"),
6});
7

markdown-embedsetDemoURL.ts1 match

@stevekrouse•Updated 2 days ago
3// Initialize Notion client
4const notion = new Client({
5 auth: Deno.env.get("NOTION_API_KEY"),
6});
7

markdown-embedsetCobrowse.ts1 match

@stevekrouse•Updated 2 days ago
13 console.log(page.id);
14 // get the cobrowse value from the payload
15 // warning: properties in Notion are capitalized as a convention (see Cobrowse)
16 const cobrowse = (page.properties.Cobrowse.checkbox) ? false : true;
17 // save new cobrowse boolean to Notion page

markdown-embedsetCobrowse.ts1 match

@stevekrouse•Updated 2 days ago
3// Initialize Notion client
4const notion = new Client({
5 auth: Deno.env.get("NOTION_API_KEY"),
6});
7

markdown-embedsetAction.ts1 match

@stevekrouse•Updated 2 days ago
3// Initialize Notion client
4const notion = new Client({
5 auth: Deno.env.get("NOTION_API_KEY"),
6});
7

markdown-embedroot.ts2 matches

@stevekrouse•Updated 2 days ago
6// Initialize Notion client
7const notion = new Client({
8 auth: Deno.env.get("NOTION_API_KEY"),
9});
10
20 {
21 status: "error",
22 message: "Failed to connect to Notion API",
23 error: error.message,
24 },

markdown-embedrecordClick.ts1 match

@stevekrouse•Updated 2 days ago
7 console.log("click: ", JSON.stringify(clickData));
8
9 fetch("/api/action", {
10 method: "POST",
11 headers: {

github-api1 file match

@cricks_unmixed4u•Updated 13 hours ago

beeminder-api4 file matches

@cricks_unmixed4u•Updated 13 hours ago
Kapil01
apiv1