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/$1?q=api&page=1664&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 18222 results for "api"(1473ms)

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}

myApimain.tsx1 match

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

myApimain.tsx1 match

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

github-api1 file match

@cricks_unmixed4u•Updated 2 hours ago

beeminder-api4 file matches

@cricks_unmixed4u•Updated 3 hours ago
Kapil01
apiv1