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/$%7Bsuccess?q=api&page=1661&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 18106 results for "api"(8226ms)

aliasmain.tsx1 match

@mgruel•Updated 1 year ago
41export function alias<P extends Params>(params: P): Promise<Result<P>> {
42 const username = params.username;
43 let url = `https://api.val.town/v1/alias/${username}`;
44 if ("valName" in params) {
45 url = url + `/${params.valName}`;

myApimain.tsx1 match

@tr3ntg•Updated 1 year ago
1export function myApi(name) {
2 return "hi " + name;
3}

githubFollowersmain.tsx1 match

@bastost•Updated 1 year ago
3// GitHub followers
4export let githubFollowers = fetchJSON(
5 "https://api.github.com/users/stevekrouse/followers",
6);

airtable_deno_samplemain.tsx1 match

@mattx•Updated 1 year ago
6 );
7 const airtable = new Airtable({
8 apiKey: process.env.airtable_pat,
9 baseId: "appXSrKDlwbAijRmD",
10 tableName: "All content",

myApimain.tsx1 match

@handler•Updated 1 year ago
1export function myApi(name) {
2 return "hi " + name;
3}

myApimain.tsx1 match

@nicholasshaw•Updated 1 year ago
1export function myApi(name) {
2 return "hi " + name;
3}

myApimain.tsx1 match

@billbak•Updated 1 year ago
1export function myApi(name) {
2 return "hi " + name;
3}

tgWebhookmain.tsx1 match

@smalldogenergy•Updated 1 year ago
5
6export async function tgWebhook(req, res) {
7 const botSecretToken = req.get("X-Telegram-Bot-Api-Secret-Token");
8 if (botSecretToken !== process.env.tgBotSecretToken) {
9 res.status(401).json({ ok: false, description: "Unauthorized" });

lichessDashboardmain.tsx1 match

@jdan•Updated 1 year ago
9 "Bullet",
10 "Computer",
11 "Rapid",
12 "Top Rated",
13 "Blitz",

OpenAISummarymain.tsx5 matches

@zzz•Updated 1 year ago
6// Create a summary from a given text using GPT 4
7export const OpenAISummary = async (text: string, config: {
8 apiKey?: string;
9 jwt?: string;
10 modelName?: string;
11} = {}) => {
12 const { apiKey, jwt, modelName = "gpt-4" } = config;
13 if (!apiKey && !jwt) {
14 const { success, reset } = await upstashRateLimiter(
15 "anon",
22 }
23 }
24 else if (!apiKey) {
25 try {
26 await verifyJWT(jwt);
31 }
32 const agent = await AIAgent(
33 apiKey || process.env.OPENAI_API_KEY_GPT4,
34 );
35 const response = await agent.summarize(text, modelName);

xxxclearinghouse_validator

@toowired•Updated 1 hour ago
Request validator for clearance API

Apiify11 file matches

@wolf•Updated 18 hours ago
Kapil01
apiv1