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%20%22Optional%20title%22?q=api&page=1065&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 11835 results for "api"(1068ms)

testApimain.tsx1 match

@clayway•Updated 1 year ago
1export async function testApi(request: Request): Promise<Response> {
2 if (request.method !== "POST") {
3 return Response.json({

myApimain.tsx1 match

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

githubEventsmain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

@acmu•Updated 1 year ago
1import { nameList } from "https://esm.town/v/acmu/nameList";
2
3export function myApi() {
4 return nameList;
5}

mathFactmain.tsx1 match

@lin_junming•Updated 1 year ago
2
3export let mathFact = fetchText(
4 "http://numbersapi.com/random/math",
5);

myApimain.tsx1 match

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

extractRandomCardImagemain.tsx1 match

@fab1an•Updated 1 year ago
4 try {
5 const response = await fetch(
6 "https://deckofcardsapi.com/api/deck/new/draw/?count=1"
7 );
8 const data = await response.json();

simple-scrabble-api1 file match

@bry•Updated 4 hours ago

social_data_api_project3 file matches

@tsuchi_ya•Updated 12 hours ago
snartapi
apiv1