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=618&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 21234 results for "api"(7012ms)

GlimpsegetActions.ts1 match

@glanceUpdated 1 month ago
3// Initialize Notion client
4const notion = new Client({
5 auth: Deno.env.get("NOTION_API_KEY"),
6});
7

GlimpseenrichAgent.ts1 match

@glanceUpdated 1 month ago
3// Initialize Notion client
4const notion = new Client({
5 auth: Deno.env.get("NOTION_API_KEY"),
6});
7

Glimpseauth.ts4 matches

@glanceUpdated 1 month ago
1export default async (c, next) => {
2 const method = c.req.method;
3 const secret = c.req.header("x-api-key"); // sent by Notion webhooks via POST
4 const fetchSite = c.req.header("sec-fetch-site");
5
6 // POSTs from Notion are automation webhooks that carry the x-api-key custom header
7 // that header needs to match the X_API_KEY environment variable in this project
8 // or this auth check won't pass
9 // for now we can just let GETs through without any auth shim
10 if (
11 (secret && secret !== Deno.env.get("X_API_KEY") || fetchSite && fetchSite !== "same-origin") && method !== "GET"
12 ) {
13 console.log(fetchSite);

Glancer3Remixtasks.ts1 match

@stevekrouseUpdated 1 month ago
11// Initialize Notion client
12export const notion = new Client({
13 auth: Deno.env.get("NOTION_API_KEY"),
14});
15

Glancer3RemixsetPageID.ts1 match

@stevekrouseUpdated 1 month ago
3// Initialize Notion client
4const notion = new Client({
5 auth: Deno.env.get("NOTION_API_KEY"),
6});
7

Glancer3RemixsetPageIcon.ts1 match

@stevekrouseUpdated 1 month ago
3// Initialize Notion client
4const notion = new Client({
5 auth: Deno.env.get("NOTION_API_KEY"),
6});
7

Glancer3RemixsetDemoURL.ts1 match

@stevekrouseUpdated 1 month ago
3// Initialize Notion client
4const notion = new Client({
5 auth: Deno.env.get("NOTION_API_KEY"),
6});
7

Glancer3RemixsetCobrowse.ts1 match

@stevekrouseUpdated 1 month 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

Glancer3RemixsetCobrowse.ts1 match

@stevekrouseUpdated 1 month ago
3// Initialize Notion client
4const notion = new Client({
5 auth: Deno.env.get("NOTION_API_KEY"),
6});
7

Glancer3RemixsetAction.ts1 match

@stevekrouseUpdated 1 month ago
3// Initialize Notion client
4const notion = new Client({
5 auth: Deno.env.get("NOTION_API_KEY"),
6});
7
Clay-API

Clay-API2 file matches

@charmaineUpdated 16 hours ago
How to: use Clay as if they have an API

github-api8 file matches

@cricks_unmixed4uUpdated 2 days ago
Very incomplete collection of useful GitHub API adapters
api
socialdata
Affordable & reliable alternative to Twitter API: ➡️ Access user profiles, tweets, followers & timeline data in real-time ➡️ Monitor profiles with nearly instant alerts for new tweets, follows & profile updates ➡️ Simple integration