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/$1?q=api&page=1665&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 18185 results for "api"(1656ms)

API_URLmain.tsx3 matches

@easrng•Updated 1 year ago
1import { runtime } from "https://esm.town/v/easrng/runtime";
2
3export const API_URL = await runtime() === "v3-staging"
4 ? "https://api.v3.val.town"
5 : "https://api.val.town";

myApimain.tsx1 match

@fdterr•Updated 1 year ago
1export function myApi(name) {
2 return "hi " + name;
3}

getLinkAggregatorUserCountsmain.tsx1 match

@tao_oat•Updated 1 year ago
2
3export const getLinkAggregatorUserCounts = (async () => {
4 const response = await fetch("https://api.fedidb.org/v1/software?limit=40");
5 const json = await response.json();
6 const lemmy = json.data.find((software) =>

sendPostToBskymain.tsx1 match

@siygle•Updated 1 year ago
2 { identifier, password, text, facets },
3) => {
4 const { default: AtProto } = await import("npm:@atproto/api");
5 const { BskyAgent, RichText } = AtProto;
6 const bskyService = "https://bsky.social";

myApimain.tsx1 match

@raunakdoesdev•Updated 1 year ago
1export function myApi(name) {
2 return "hi " + name;
3}

myApimain.tsx1 match

@impedivity•Updated 1 year ago
1export function myApi(name) {
2 return "hi " + name;
3}

myApimain.tsx1 match

@abeyang•Updated 1 year ago
1export function myApi(name) {
2 return "hi " + name;
3}

YoutubeSummarymain.tsx1 match

@zzz•Updated 1 year ago
2import { runVal } from "https://esm.town/v/std/runVal";
3
4// https://api.val.town/v1/express/zzz.rime?text=Hello%20Val%20Town
5// videoId: either videoId or full youtube url (e.g. https://www.youtube.com/watch?v=p2glje8z_tw)
6export async function YoutubeSummary(req, res) {

fetchHTMLmain.tsx1 match

@beneskildsen•Updated 1 year ago
2
3export const fetchHTML = (async () => {
4 let f = await fetch("https://api.val.town/express/@beneskildsen.serveHTML", {
5 method: "GET",
6 headers: {

checkResymain.tsx4 matches

@godot•Updated 1 year ago
3export let checkResy = (async () => {
4 const axios = await import("npm:axios");
5 const apiUrl = "https://staging-api.resy.com/3/auth/password";
6 const api_key = "VbWk7s3L4KiK5fzlO7JD3Q5EYolJI7n5";
7 const email = process.env.resyEmail;
8 const password = process.env.resyPassword;
9 const config = {
10 headers: {
11 Authorization: `ResyAPI api_key="${api_key}"`,
12 "Content-Type": "multipart/form-data",
13 },
17 formData.append("password", password);
18 axios
19 .post(apiUrl, formData, config)
20 .then((response) => {
21 console.log(response.data);

github-api1 file match

@cricks_unmixed4u•Updated 1 min ago

xxxclearinghouse_validator

@toowired•Updated 8 hours ago
Request validator for clearance API
Kapil01
apiv1