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?q=api&page=1018&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 12213 results for "api"(1587ms)

nameNationalitymain.tsx1 match

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

createIssuemain.tsx1 match

@andy_blumUpdated 1 year ago
31 ],
32 headers: {
33 "X-GitHub-Api-Version": "2022-11-28",
34 },
35 });

githubEventsmain.tsx1 match

@sdanUpdated 1 year ago
3// GitHub events
4export let githubEvents = fetchJSON(
5 "https://api.github.com/users/stevekrouse/events",
6);

githubUsermain.tsx1 match

@stevekrouseUpdated 1 year ago
3// Github profile
4export let githubUser = fetchJSON(
5 "https://api.github.com/users/stevekrouse"
6);

eval_main.tsx1 match

@stevekrouseUpdated 1 year ago
2
3export let eval_ = (code, args?) =>
4 fetchJSON("https://api.val.town/v1/eval", {
5 method: "POST",
6 body: JSON.stringify({

rimeAPIExmain.tsx1 match

@stevekrouseUpdated 1 year ago
1import { runVal } from "https://esm.town/v/std/runVal";
2
3export const rimeAPIEx = await runVal("stevekrouse.rime", {
4 text: "hello friend",
5 speaker: "young_female_latina-4",

measureValTownE2emain.tsx2 matches

@stevekrouseUpdated 1 year ago
7 for (let i = 0; i < count; i++) {
8 let start = Date.now();
9 await fetch("https://api.val.town/eval/(()=%3E1+1)()");
10 evalTimes.push(Date.now() - start);
11 }
22 for (let i = 0; i < count; i++) {
23 let start = Date.now();
24 await fetch("https://api.val.town/eval/@healeycodes.addOnes()");
25 userFuncTimes.push(Date.now() - start);
26 }

bskySocialExmain.tsx2 matches

@stevekrouseUpdated 1 year ago
2
3export let bskySocialEx = (async () => {
4 const { default: api } = await import("npm:@atproto/api");
5 const service = "https://bsky.social";
6 const agent = await new api.BskyAgent({ service });
7 await agent.login({
8 identifier: process.env.blueskyEmail,

dmmain.tsx2 matches

@stevekrouseUpdated 1 year ago
1import { email } from "https://esm.town/v/std/email?v=9";
2import { dms } from "https://esm.town/v/stevekrouse/dms";
3import { verifyAPIAuth } from "https://esm.town/v/stevekrouse/verifyAPIAuth";
4
5export async function dm(message, auth) {
6 let { handle, error } = await verifyAPIAuth(auth);
7 if (!handle)
8 return error;

weatherGovGridmain.tsx1 match

@stevekrouseUpdated 1 year ago
3export function weatherGovGrid({ lat, lon }): Promise<WeatherData> {
4 return fetchJSON(
5 `https://api.weather.gov/points/${lat},${lon}`,
6 );
7}

social_data_api_project3 file matches

@tsuchi_yaUpdated 2 days ago

simple-scrabble-api1 file match

@bryUpdated 5 days ago
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