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=860&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 11003 results for "api"(1574ms)

sdxlREADME.md1 match

@falUpdated 1 year ago
21```
22
23![cheetah.png](https://storage.googleapis.com/falserverless/gallery/fast-sdxl.jpeg)
24

untitled_redEarthwormmain.tsx2 matches

@tmcwUpdated 1 year ago
2
3export default async () => {
4 const browserlessApi = Deno.env.get("BROWSERLESS_API_KEY");
5 const browser = await puppeteer.connect({
6 browserWSEndpoint: `wss://chrome.browserless.io?token=${browserlessApi}`,
7 });
8 const page = await browser.newPage();

gitlabSitemapmain.tsx2 matches

@benniUpdated 1 year ago
10 const { sitemap } = await import("npm:xast-util-sitemap");
11 const { toXml } = await import("npm:xast-util-to-xml");
12 const api = new Gitlab({
13 host: "https://git.my-server.in",
14 token: process.env.gitlabToken,
15 });
16 const issues = await api.Issues.all({ projectId: req.query.project });
17 const tree = issues.map((i) => ({
18 url: i.web_url,

dbToAPImain.tsx2 matches

@nbbaierUpdated 1 year ago
1/** @jsxImportSource https://esm.sh/hono@3.9.2/jsx **/
2
3import { Homepage } from "https://esm.town/v/nbbaier/dbToAPIFrontend";
4import { checkResource, getResources, type Options, validate } from "https://esm.town/v/nbbaier/dbToApiHelpers";
5import { Hono } from "npm:hono";
6

free_open_routerREADME.md1 match

@tarasUpdated 1 year ago
1```
2curl 'https://taras-free_open_router.web.val.run/api/v1/chat/completions' \
3 -H 'accept: application/json' \
4 -H 'authorization: Bearer THIS_IS_OVERRIDEN_ON_SERVER' \

getslackmain.tsx1 match

@curtcoxUpdated 1 year ago
14 "redirect": req.redirect,
15 "searchParams": Object.fromEntries(searchParams.entries()),
16 "docs": "https://developer.mozilla.org/en-US/docs/Web/API/Request",
17 });
18};

get_weather_messagemain.tsx2 matches

@cosmoUpdated 1 year ago
2import { getCurrentWeather } from "https://esm.town/v/cosmo/get_current_weather";
3
4export async function getWeatherMessage(apiKey, latitude, longitude) {
5 const currentWeather = await getCurrentWeather(latitude, longitude),
6 { icon } = currentWeather,
27 { role: "user", content: JSON.stringify(weather) },
28 ],
29 chatResponse = await chat(apiKey, messages),
30 message = chatResponse.choices[0].message.content;
31

get_current_weathermain.tsx1 match

@cosmoUpdated 1 year ago
1export async function getCurrentWeather(latitude = 0, longitude = 0) {
2 const pointsResponse = await fetch(`https://api.weather.gov/points/${latitude},${longitude}`),
3 { properties: { forecastHourly } } = await pointsResponse.json(),
4 forecastResponse = await fetch(forecastHourly),

ninja_keysmain.tsx2 matches

@pomdtrUpdated 1 year ago
15 <link
16 rel="preload"
17 href="https://fonts.googleapis.com/css?family=Inter:300,400,500"
18 as="style"
19 type="text/css"
20 />
21 <link
22 href="https://fonts.googleapis.com/css?family=Material+Icons&display=swap"
23 rel="stylesheet"
24 />

echoREADME.md1 match

@curtcoxUpdated 1 year ago
1# Echo incoming request as JSON
2See https://developer.mozilla.org/en-US/docs/Web/API/Request
3
4

daily-advice-app1 file match

@dcm31Updated 2 days ago
Random advice app using Advice Slip API

gptApiTemplate1 file match

@charmaineUpdated 3 days ago
papimark21
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