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/$%7Burl%7D?q=api&page=1530&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 17726 results for "api"(2415ms)

gitlabSitemapmain.tsx2 matches

@benni•Updated 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

@nbbaier•Updated 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

@taras•Updated 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

@curtcox•Updated 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

@cosmo•Updated 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

@cosmo•Updated 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

@pomdtr•Updated 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

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

honoTanaEndpointmain.tsx3 matches

@nbbaier•Updated 1 year ago
1import { saveToTana } from "https://esm.town/v/nbbaier/saveToTana";
2import { APIPlainNode } from "https://esm.town/v/nbbaier/tanaTypes";
3import { Hono } from "npm:hono";
4
5const token = Deno.env.get("tanaInputAPI");
6
7export const honoTanaEndpoint = async (req: Request) => {
10 let { text, url } = c.req.query();
11
12 const payload: APIPlainNode = {
13 name: text,
14 children: [

createValmain.tsx1 match

@andreterron•Updated 1 year ago
7 privacy?: "public" | "unlisted" | "private";
8}) => {
9 return fetchJSON("https://api.val.town/v1/vals", {
10 method: "post",
11 bearer: token,

RandomQuoteAPI

@Freelzy•Updated 1 day ago

HAPI7 file matches

@dIgitalfulus•Updated 1 day ago
Kapil01
apiv1