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/$2?q=api&page=1656&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 18281 results for "api"(6176ms)

myApimain.tsx1 match

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

myApimain.tsx1 match

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

githubEventsmain.tsx1 match

@jamesdury•Updated 1 year ago
3export const githubEvents = (username) =>
4 fetchJSON(
5 `https://api.github.com/users/${username}/events`
6 );

myApimain.tsx1 match

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

gitHubReleaseTrackermain.tsx4 matches

@ianvph•Updated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2import { set } from "https://esm.town/v/std/set?v=11";
3import { postHogAPICapture } from "https://esm.town/v/ianvph/postHogAPICapture";
4import { email } from "https://esm.town/v/ianvph/email";
5import { phProjectAPIKey } from "https://esm.town/v/ianvph/phProjectAPIKey";
6import { newestReleaseId } from "https://esm.town/v/ianvph/newestReleaseId";
7import { parseXML } from "https://esm.town/v/stevekrouse/parseXML?v=1";
25 };
26 const captureData = {
27 key: phProjectAPIKey,
28 event: "new release",
29 properties: properties,
30 distinct_id: email,
31 };
32 postHogAPICapture(captureData);
33 await set("newestReleaseId", newestEntry.id);
34 return "new release captured";

dictmain.tsx1 match

@suhas•Updated 1 year ago
3export let dict = async (word: string) => {
4 const req = await fetch(
5 `https://api.dictionaryapi.dev/api/v2/entries/en/${word}`
6 );
7 const res = await req.json();

myApimain.tsx1 match

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

nameNationalitymain.tsx1 match

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

thisUrlmain.tsx1 match

@wilt•Updated 1 year ago
13 return `https://${userHandle}-${valName}.web.val.run`;
14 case "run":
15 return `https://api.val.town/v1/run/${userHandle}.${valName}`;
16 case "express":
17 return `https://${userHandle}-${valName}.express.val.run`;

activitypubmain.tsx1 match

@tmcw•Updated 1 year ago
48 preferredUsername: `bot`,
49 summary: `Photos from ${DOMAIN}.com`,
50 inbox: `https://${DOMAIN}/api/inbox`,
51 followers: `https://${DOMAIN}/u/bot/followers`,
52 icon: {

github-api1 file match

@cricks_unmixed4u•Updated 13 hours ago

beeminder-api4 file matches

@cricks_unmixed4u•Updated 14 hours ago
apiry
Kapil01