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=1401&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 15466 results for "api"(4537ms)

myApimain.tsx1 match

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

myApimain.tsx1 match

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

githubEventsmain.tsx1 match

@larsr•Updated 1 year ago
3// GitHub events
4export let githubEvents = fetchJSON(
5 "https://api.github.com/users/stevekrouse/events"
6);

mathFactmain.tsx1 match

@potherca•Updated 1 year ago
3// Random math fact
4export let mathFact = fetchText(
5 "http://numbersapi.com/random/math"
6);

reactTodoListWebsitemain.tsx1 match

@liamdanielduffy•Updated 1 year ago
3import { buildHtml } from "https://esm.town/v/liamdanielduffy/buildHtml";
4
5// https://api.val.town/v1/express/liamdanielduffy.reactTodoListWebsite
6export function reactTodoListWebsite(req, res) {
7 res.set("Content-Type", "text/html");

myApimain.tsx1 match

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

myApimain.tsx1 match

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

ankiNudgemain.tsx1 match

@petermillspaugh•Updated 1 year ago
33 <p>
34 I intend to build and refine a lifetime Anki habit. I'd like to Ankify what I learn from coding, books, podcasts, conversations, etc.
35 My primary interest is remembering software engineering concepts/syntax/commands, e.g. SQL queries, git sequences, keyboard shortcuts, browser APIs, system design mental models, Rust patterns, etc.
36 I also plan to Ankify tangential and completely unrelated topics like the history of computing, computer hardware, brain science, ophthalmology, cooking science and ingredients, and what friends do for work.
37 If there's anything I think is worth remembering for the rest of my life, I should Ankify it.

myApimain.tsx1 match

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

myApimain.tsx1 match

@deverts•Updated 1 year ago
1import { myCt } from "https://esm.town/v/deverts/myCt";
2
3export function myApi(name, age) {
4 return "hi " + name + " " + age + " (" + myCt + ")";
5}

HN-fetch-call2 file matches

@ImGqb•Updated 2 days ago
fetch HackerNews by API

token-server1 file match

@kwhinnery_openai•Updated 3 days ago
Mint tokens to use with the OpenAI Realtime API for WebRTC
Kapil01
apiv1