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=32&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"(1003ms)

myApi1 file match

@wesbos•Updated 1 year ago

myApi1 file match

@zokonil•Updated 1 year ago

myApi1 file match

@johannesbraeunig•Updated 1 year ago

myApi1 file match

@imandel•Updated 1 year ago

myApi1 file match

@blaiselp•Updated 1 year ago

myApi1 file match

@seniorbrusko•Updated 1 year ago

musicianApi2 file matches

@maclong•Updated 1 year ago

apiLog1 file match

@healeycodes•Updated 1 year ago

myApi1 file match

@justwph•Updated 1 year ago

myApi1 file match

@mateuszrusyn•Updated 1 year ago

glastonewsindex.ts1 match

@bensomething•Updated 19 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 19 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