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/?q=api&page=987&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 11425 results for "api"(939ms)

myApimain.tsx1 match

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

hiapimain.tsx1 match

@dnomadb•Updated 1 year ago
1export let hiapi = (a) => {
2 console.log(a);
3 return [...new Array(100)].map((_, i) => {

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

wee2main.tsx1 match

@val•Updated 1 year ago
2
3export let wee2 = fetchJSON(
4 "https://api.val.town/express/@val.wee1",
5 {
6 method: "POST",

myApimain.tsx1 match

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

getInformationOfTheGitHubReposirotymain.tsx2 matches

@tzq•Updated 1 year ago
3
4export async function getInformationOfTheGitHubReposiroty(repository) {
5 return await fetchJSON(`https://api.github.com/repos/${repository}`, {
6 headers: {
7 Accept: "application/vnd.github+json",
8 Authorization: `Bearer ${process.env.githubToken}`,
9 "X-GitHub-Api-Version": "2022-11-28",
10 },
11 })

coolHnPostsmain.tsx1 match

@VictorForissier•Updated 1 year ago
2
3export async function coolHnPosts(id) {
4 return fetch("https://hn.algolia.com/api/v1/search_by_date?tags=author_" + id)
5 .then((res) => res.json())
6 .then((res) => res.hits[0].comment_text);

myApimain.tsx1 match

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

mod-interview-api1 file match

@twschiller•Updated 13 hours ago

daily-advice-app1 file match

@dcm31•Updated 3 days ago
Random advice app using Advice Slip API
apiv1
papimark21