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%22Image%20title%22?q=api&page=1045&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 11885 results for "api"(1039ms)

ankiNudgemain.tsx1 match

@petermillspaugh•Updated 1 year ago
33 <p>
34 I intend to build and refine a lifetime Anki habit. I'd like to Ankify what I learn from coding, books, podcasts, conversations, etc.
35 My primary interest is remembering software engineering concepts/syntax/commands, e.g. SQL queries, git sequences, keyboard shortcuts, browser APIs, system design mental models, Rust patterns, etc.
36 I also plan to Ankify tangential and completely unrelated topics like the history of computing, computer hardware, brain science, ophthalmology, cooking science and ingredients, and what friends do for work.
37 If there's anything I think is worth remembering for the rest of my life, I should Ankify it.

myApimain.tsx1 match

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

myApimain.tsx1 match

@deverts•Updated 1 year ago
1import { myCt } from "https://esm.town/v/deverts/myCt";
2
3export function myApi(name, age) {
4 return "hi " + name + " " + age + " (" + myCt + ")";
5}

myApimain.tsx1 match

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

fetchValTownAPImain.tsx4 matches

@pomdtr•Updated 1 year ago
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
2
3export async function fetchValTownAPI(
4 apiToken: string,
5 path: string,
6 options?: RequestInit,
12 path = "/v1" + path;
13 }
14 return fetchJSON(`https://api.val.town${path}`, {
15 ...options,
16 headers: {
17 "Authorization": `Bearer ${apiToken}`,
18 ...(options?.headers || {}),
19 },

untitled2342187main.tsx2 matches

@byrneml•Updated 1 year ago
1// Get news from different sources I care about
2export let untitled2342187 = interface LeNews {
3 feedlyAPI: {
4 name: String,
5 desc: String,
8}
9
10export async function giveMeLeNews({ feedlyAPI }: LeNews) {
11 return "Works";
12}

elevenlabsTTSmain.tsx4 matches

@ale_annini•Updated 1 year ago
3
4export const elevenlabsTTS = async (req, res) => {
5 // https://platform.openai.com/docs/api-reference/images/create
6 // https://ale_annini-elevenlabstts.express.val.run/?args=[%22{\%22text\%22:\%22it%20beautiful\%22}%22]
7 const payload = {
13 },
14 };
15 const voiceId = "21m00Tcm4TlvDq8ikWAM"; // https://api.elevenlabs.io/v1/voices
16 const audio = await fetch(
17 `https://api.elevenlabs.io/v1/text-to-speech/${voiceId}`,
18 {
19 method: "POST",
20 headers: {
21 "Accept": "audio/mpeg",
22 "xi-api-key": process.env.ELEVENLABS_API_KEY,
23 "Content-Type": "application/json",
24 },

myApimain.tsx1 match

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

myApimain.tsx1 match

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

getMunichSwimCapacitmain.tsx1 match

@fgeierst•Updated 1 year ago
23 async function fetchCount(id) {
24 const endpoint =
25 `https://functions.api.ticos-systems.cloud/api/gates/counter?organizationUnitIds=${id}`;
26 const response = await fetch(endpoint, {
27 headers: {

social_data_api_project3 file matches

@tsuchi_ya•Updated 11 hours ago

simple-scrabble-api1 file match

@bry•Updated 1 day ago
apiv1
papimark21