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/$%7Bsuccess?q=api&page=1036&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 11762 results for "api"(4447ms)

myApimain.tsx1 match

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

myApimain.tsx1 match

@tylergawUpdated 1 year ago
1export function myApi(name) {
2 return "Hello " + name;
3}

myApimain.tsx1 match

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

myAPImain.tsx1 match

@haxzieUpdated 1 year ago
1import { untitled_ivoryPuma } from "https://esm.town/v/haxzie/untitled_ivoryPuma";
2
3export function myAPI(message) {
4 return "hello" + untitled_ivoryPuma();
5}

githubFollowersmain.tsx1 match

@JanJakesUpdated 1 year ago
3// GitHub followers
4export let githubFollowers = fetchJSON(
5 "https://api.github.com/users/stevekrouse/followers"
6);

githubFollowersmain.tsx1 match

@rldUpdated 1 year ago
3// Github followers
4export let githubFollowers = fetchJSON(
5 "https://api.github.com/users/roskideluge/followers",
6);

myApimain.tsx2 matches

@vawogbemiUpdated 1 year ago
1//https://api.val.town/v1/run/vawogbemi.myApi?args=["vawogbemi","12"]
2export function myApi(name, age) {
3 return { "hi ": name, "im": age };
4}

myApimain.tsx1 match

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

getCNNNewsShortmain.tsx1 match

@fab1anUpdated 1 year ago
3export async function getCNNNewsShort() {
4 const response = await fetch(
5 "https://saurav.tech/NewsAPI/everything/cnn.json"
6 );
7 const data = await response.json();

myApimain.tsx1 match

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

new-val-api-21 file match

@shouserUpdated 3 hours ago
This is an example of using the API to create a val.

gpt-image-test

@CaptainJackUpdated 19 hours ago
测试 gpt image 的不同 api 能否满足图片生成要求
apiv1
papimark21