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/$2?q=api&page=28&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 18131 results for "api"(922ms)

asurareleasesbotfile.txt11 matches

@asurgiftβ€’Updated 2 days ago
264}
265
266/*──────────────────── 8 β–Έ Scraping Logic ────────────────────────────────*/
267function buildChapterObject(
268 $: cheerio.CheerioAPI,
269 chapterLinkElement: cheerio.Element,
270 seriesTitle: string,
305
306async function scrapeMainPageForChapterEvents(): Promise<ChapterEventInfo[]> {
307 log("Scraping main page for chapter events:", BASE_URL);
308 const chapterEvents: ChapterEventInfo[] = [];
309 try {
419 seriesPageUrl: string,
420): Promise<Pick<ChapterEventInfo, "definitiveSeriesTitle" | "definitiveSeriesImage" | "synopsis">> {
421 log("Scraping series page for details:", seriesPageUrl);
422 try {
423 const { data } = await httpClient.get(seriesPageUrl, { responseType: "text" });
531 log(`=== Multi-Event Announcer (Ch1, Season Start/End) to ${PRIMARY_CHAT_ID} then ${SECONDARY_CHAT_ID} ===`);
532 try {
533 await bot.api.getMe();
534 log("Bot token validated.");
535 }
640 log(`Announcing to PRIMARY (${PRIMARY_CHAT_ID}): ${nameOfManhwa} - Event: ${event.eventType}`);
641 if (imageUrl && (event.eventType === EventType.NEW_SERIES || event.eventType === EventType.SEASON_START)) {
642 await bot.api.sendPhoto(PRIMARY_CHAT_ID, imageUrl, { caption: messageContent, parse_mode: "HTML" });
643 } else {
644 await bot.api.sendMessage(PRIMARY_CHAT_ID, messageContent, {
645 parse_mode: "HTML",
646 disable_web_page_preview: false,
654 if (BOT_OWNER_ID) {
655 try {
656 await bot.api.sendMessage(
657 BOT_OWNER_ID,
658 `PRIMARY SEND FAIL: ${event.eventType} for ${nameOfManhwa}.\nError: ${e.message.substring(0, 300)}`,
669 log(`Reposting to SECONDARY (${SECONDARY_CHAT_ID}): ${nameOfManhwa} - Event: ${event.eventType}`);
670 if (imageUrl && (event.eventType === EventType.NEW_SERIES || event.eventType === EventType.SEASON_START)) {
671 await bot.api.sendPhoto(SECONDARY_CHAT_ID, imageUrl, { caption: messageContent, parse_mode: "HTML" });
672 } else {
673 await bot.api.sendMessage(SECONDARY_CHAT_ID, messageContent, {
674 parse_mode: "HTML",
675 disable_web_page_preview: false,
681 if (BOT_OWNER_ID) {
682 try {
683 await bot.api.sendMessage(
684 BOT_OWNER_ID,
685 `SECONDARY REPOST FAIL: ${event.eventType} for ${nameOfManhwa} (Primary was OK).\nError: ${
1import { getArticle } from "./_api.ts";
2import { createServer } from "./_server.ts";
3
1import { getArticle, getAuthor } from "./_api.ts";
2import { createServer } from "./_server.ts";
3

graphql-crash-course_api.ts0 matches

@apaleslimghostβ€’Updated 2 days ago
1export const getArticle = (id) => ({
2 id,
3 date: new Date().toISOString(),
4 title: "Lorem ipsum",
5 body: "Lorem ipsum dolor sit amet",
1import { getArticle } from "./_api.ts";
2import { createServer } from "./_server.ts";
3

notesmain.tsx3 matches

@cosmopaoloβ€’Updated 2 days ago
7 if (req.method === "GET") {
8 // Serve the app or get notes data
9 if (url.pathname === `/${roomName}` && !url.searchParams.has("api")) {
10 return new Response(getApp(roomName), {
11 headers: { "Content-Type": "text/html" },
13 }
14
15 // API: get notes
16 const notes = await getRoom(roomName);
17 return Response.json({
85 async load(force) {
86 try {
87 const res = await fetch('?api=1');
88 const data = await res.json();
89 // Only overwrite local if we have no unsaved edits, or we're forcing (first load)

altaroc-algoliascript.js2 matches

@ncfβ€’Updated 2 days ago
571 // console.log("%cπŸ›‘οΈ Interception de requΓͺtes facettes vides", "color: orange; font-weight: bold;");
572
573 // Simuler une rΓ©ponse sans appel API
574 return Promise.resolve({
575 results: requests.map(req => {
1117 authorizedVehicles = await waitForAuthorizedVehicles();
1118
1119 // PrΓ©charger toutes les facettes en UNE SEULE requΓͺte API
1120 await preloadAllFacetsOnce();
1121

altaroc-mapboxscript.js2 matches

@ncfβ€’Updated 2 days ago
31function getAuthorizedPoints() {
32 console.log("DΓ©but getAuthorizedPoints - authorizedVehicles:", authorizedVehicles);
33 fetch("https://xnyx-ex15-ndvx.n7.xano.io/api:_aqWQ_f_/cached_mapCompanies", {
34 method: "POST",
35 headers: {
39 })
40 .then(response => {
41 console.log("RΓ©ponse API reΓ§ue:", response.status);
42 return response.json();
43 })

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

xxxclearinghouse_validator

@toowiredβ€’Updated 2 hours ago
Request validator for clearance API

Apiify11 file matches

@wolfβ€’Updated 20 hours ago
apiry
snartapi