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/$%7Burl%7D?q=api&page=1622&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 18057 results for "api"(1620ms)

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

GenerateQRmain.tsx1 match

@ramkarthik•Updated 1 year ago
1// fetch("https://api.val.town/v1/express/ramkarthik.GenerateQR?url={url}"
2export async function GenerateQR(req, res) {
3 const url = req.query.url;

githubStarredmain.tsx1 match

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

githubStarredmain.tsx1 match

@potherca•Updated 1 year ago
2
3// GitHub starred repos
4export let githubStarred = fetchJSON("https://api.github.com/users/potherca/starred")
5 .then((repos) => repos.map((repo) => repo.html_url));

testcase1main.tsx1 match

@charles2•Updated 1 year ago
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
2
3export let testcase1 = fetchJSON('https://api.val.town/eval/@stevekrouse.example1')
4

reactTodoListWebsitemain.tsx1 match

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

email_testingmain.tsx2 matches

@bitbloxhub•Updated 1 year ago
1export const email_testing = console.email({
2 html: `<link rel="preconnect" href="https://fonts.googleapis.com">
3<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
4<link href="https://fonts.googleapis.com/css2?family=Pacifico&family=Roboto&display=swap" rel="stylesheet"><h1 style="font-family: 'Roboto', sans-serif;">testing 1 2 3</h1>`,
5});

Apiify11 file matches

@wolf•Updated 10 hours ago

dailyQuoteAPI

@Souky•Updated 2 days ago
Kapil01
apiv1