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/?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 11714 results for "api"(874ms)

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}

myApimain.tsx1 match

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

untitled_silverGoosemain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

@feynmanUpdated 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

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

gpt-image-test

@CaptainJackUpdated 19 mins 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.
papimark21
socialdata
Affordable & reliable alternative to Twitter API: ➡️ Access user profiles, tweets, followers & timeline data in real-time ➡️ Monitor profiles with nearly instant alerts for new tweets, follows & profile updates ➡️ Simple integration