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/$%7Burl%7D?q=api&page=1055&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 11720 results for "api"(2205ms)

myApimain.tsx1 match

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

myApimain.tsx1 match

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

githubFollowersmain.tsx1 match

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

myApimain.tsx1 match

@lazeebeeUpdated 1 year ago
1export function myApi(name) {
2 return { "ale": 1 };
3}

myApimain.tsx1 match

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

githubReposmain.tsx1 match

@joodaloopUpdated 1 year ago
3// GitHub repos
4export let githubRepos = fetchJSON(
5 "https://api.github.com/users/stealsocks/repos",
6);

llmTSmain.tsx2 matches

@mrickUpdated 1 year ago
4 const { LLM, MODEL } = await import("npm:llm.ts");
5 return new LLM({
6 apiKeys: {
7 huggingface: process.env.HF_API_TOKEN,
8 },
9 }).completion({

buddhaQuoteOfTheDaymain.tsx1 match

@noaohUpdated 1 year ago
2
3export const buddhaQuoteOfTheDay = (async () => {
4 const resp = await fetch("https://buddha-api.com/api/today");
5 const j = await resp.json();
6 const { text, byName } = j;

myApimain.tsx1 match

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

myApimain.tsx1 match

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

gpt-image-test

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

new-val-api-21 file match

@shouserUpdated 1 day ago
This is an example of using the API to create a val.
apiv1
papimark21