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=31&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 11720 results for "api"(1077ms)

myApi21 file match

@dpetrouk•Updated 1 year ago

myApi1 file match

@fadi•Updated 1 year ago

myApi1 file match

@roniemeque•Updated 1 year ago

valTownApiExampleSearch2 file matches

@tmcw•Updated 1 year ago

twitterAPIDown2 file matches

@stevekrouse•Updated 1 year ago

geoffApi2 file matches

@stevekrouse•Updated 1 year ago

myApi1 file match

@klepra•Updated 1 year ago

myApi2 file matches

@augustohp•Updated 1 year ago

figmaAPIURL2 file matches

@rodrigotello•Updated 1 year ago

myApi1 file match

@paulwilkinson•Updated 1 year ago

glastonewsindex.ts1 match

@bensomething•Updated 20 mins ago
1import process from "node:process";
2import { BskyAgent } from "npm:@atproto/api";
3import * as cheerio from "npm:cheerio";
4import fetch from "npm:node-fetch";

HHGtoMyDaygetTodoist.ts7 matches

@lm3m•Updated 20 mins ago
40
41/**
42 * Fetches tasks from Todoist API
43 * @returns Array of Todoist tasks due today or overdue
44 */
45async function fetchTodoistTasks(): Promise<TodoistTask[]> {
46 const apiToken = Deno.env.get("TODOIST_API_TOKEN");
47
48 if (!apiToken) {
49 throw new Error("Todoist API Token is required");
50 }
51
55
56 try {
57 const response = await fetch("https://api.todoist.com/rest/v2/tasks", {
58 method: "GET",
59 headers: {
60 "Authorization": `Bearer ${apiToken}`,
61 "Content-Type": "application/json",
62 },
64
65 if (!response.ok) {
66 throw new Error(`Todoist API error: ${response.statusText}`);
67 }
68
apiv1
papimark21