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/image-url.jpg%20%22Image%20title%22?q=api&page=1638&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 18021 results for "api"(5692ms)

satsNameApimain.tsx2 matches

@ryanwaits•Updated 1 year ago
1import { hexToUtf8 } from "https://esm.town/v/ryanwaits/hexToUtf8";
2
3export const satsNameApi = async (req: Request) => {
4 const { Hono } = await import("npm:hono");
5 const app = new Hono();
6 let events = [];
7 app.post("/api/events", async (c) => {
8 const body = await c.req.json();
9 const { apply } = body;

myApimain.tsx1 match

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

sha256main.tsx1 match

@vtdocs•Updated 1 year ago
1// Copied from https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest
2export const sha256 = async function digestMessage(message) {
3 const msgUint8 = new TextEncoder().encode(message); // encode as (utf-8) Uint8Array

myApimain.tsx1 match

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

myApimain.tsx1 match

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

userValsmain.tsx1 match

@neverstew•Updated 1 year ago
37 : {};
38 return fetchJSON(
39 `https://api.val.town/v1/users/${id}/vals`,
40 { headers },
41 );

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

Apiify11 file matches

@wolf•Updated 57 mins ago

dailyQuoteAPI

@Souky•Updated 2 days ago
Kapil01
apiv1