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/image-url.jpg?q=api&page=1061&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 11773 results for "api"(2110ms)

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

untitled_silverGoosemain.tsx1 match

@tr3ntg•Updated 1 year ago
8 );
9 const supabase = createClient(
10 process.env.marketMemoSupabaseApiUrl,
11 process.env.marketMemoSupabaseServiceRoleKey,
12 );

myApimain.tsx1 match

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

myApimain.tsx1 match

@feynman•Updated 1 year ago
1export async function myApi(name) {
2 const got = await import("got");
3 const res = await got.post("http://34.87.31.113:3000/infer", {

nameNationalitymain.tsx1 match

@hetzelhouse•Updated 1 year ago
3// Predict the nationality of a name
4export let nameNationality = fetchJSON(
5 "https://api.nationalize.io/?name=staci"
6);

fetchTwitterUsermain.tsx1 match

@andreterron•Updated 1 year ago
17}> {
18 const res = await fetchJSON(
19 `https://api.twitter.com/2/users/${id}?${query}`,
20 {
21 headers: {

myApimain.tsx1 match

@maximilian•Updated 1 year ago
1export function myApi(name) {
2 console.email("hi " + name);
3}

myApimain.tsx1 match

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

social_data_api_project3 file matches

@tsuchi_ya•Updated 19 mins ago

new-val-api-21 file match

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