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/$%7Bart_info.art.src%7D?q=api&page=1008&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 11519 results for "api"(3173ms)

myApimain.tsx1 match

@blainandsimple•Updated 1 year ago
1export function myApi(name: string = "Anonymous") {
2 const now = new Date();
3 const day = now.getDate();

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}

gptApiTemplate2 file matches

@charmaine•Updated 1 day ago

mod-interview-api1 file match

@twschiller•Updated 1 day ago
apiv1
papimark21