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/$%7Bsuccess?q=api&page=1033&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 11770 results for "api"(1575ms)

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}

myApimain.tsx1 match

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

social_data_api_project1 file match

@tsuchi_ya•Updated 25 mins ago

new-val-api-21 file match

@shouser•Updated 7 hours ago
This is an example of using the API to create a val.
apiv1
papimark21