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/$%7Bart_info.art.src%7D?q=api&page=1011&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 11513 results for "api"(1176ms)

apiTestmain.tsx1 match

@maxdrake•Updated 1 year ago
1export let apiTest = (input) => {
2 return input + ", hi";
3};

chatGPTExamplemain.tsx2 matches

@maxdrake•Updated 1 year ago
1import { chatGPT } from "https://esm.town/v/maxdrake/chatGPT";
2
3export let chatGPTExample = async (API_KEY) => {
4 let repsonse_obj = await chatGPT(
5 "hello assistant",
6 [], // this can be an empty list, or if you're using this to continue a conversation, you can pass in someting of the form: https://platform.openai.com/docs/guides/chat/introduction
7 API_KEY
8 );
9 let response_text = repsonse_obj.message;

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myAPImain.tsx1 match

@haxzie•Updated 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

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

githubFollowersmain.tsx1 match

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

myApimain.tsx2 matches

@vawogbemi•Updated 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}

gptApiTemplate2 file matches

@charmaine•Updated 21 hours ago

mod-interview-api1 file match

@twschiller•Updated 1 day ago
apiv1
papimark21