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=1032&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 12060 results for "api"(1679ms)

8 fetchJSON(url, {
9 headers: {
10 "trakt-api-key": "Mock",
11 "trakt-api-version": "2",
12 },
13 });
15 for (const show of TV_SHOWS_WATCHED) {
16 const resp = await makeReqTo(
17 `https://api.trakt.tv/shows/${show}/seasons?extended=episodes`
18 );
19 const hash = cyrb53(resp);
21 const newestSeason = Math.max(...resp.map((x) => +x.number));
22 const newSsnJSON = await makeReqTo(
23 `https://api.trakt.tv/shows/${show}/seasons/${newestSeason}`
24 );
25 console.email(

wee1main.tsx1 match

@valUpdated 1 year ago
2
3export let wee1 = fetchJSON(
4 "https://api.val.town/express/@val.wee2",
5 {
6 method: "POST",

refreshPoemWidgetmain.tsx2 matches

@crsvenUpdated 1 year ago
12 timeZone: timeZone || defaultTimeZone,
13 };
14 const timeForApi = date.toLocaleTimeString("en-GB", {
15 ...baseTimeParams,
16 hourCycle: "h23",
17 });
18 const poem = await getPoemForTime(timeForApi);
19 const timeForMessage = date.toLocaleTimeString("en-US", baseTimeParams);
20 const message = `${timeForMessage}: ${poem}`;

IPmain.tsx1 match

@zzzUpdated 1 year ago
1// https://api.val.town/v1/express/zzz.IP
2export async function IP(req, res) {
3 const ip = req.get("true-client-ip") ??

myApi2main.tsx2 matches

@dpetroukUpdated 1 year ago
1import { myApi } from "https://esm.town/v/dpetrouk/myApi";
2
3export const myApi2 = (name) => myApi(name + ", my friend");

myApimain.tsx1 match

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

myApimain.tsx1 match

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

valTownApiExampleSearchmain.tsx2 matches

@tmcwUpdated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export let valTownApiExampleSearch = (async () => {
4 const query = new URLSearchParams({ query: "lodash", limit: "4" });
5 const response = await fetch(`https://api.val.town/v1/search/vals?${query}`);
6 const json = await response.json();
7 return json;

blocks_innermain.tsx1 match

@tmcwUpdated 1 year ago
3export let blocks_inner = async (req, res) => {
4 const [_, user, id, ...file] = req.path.split("/");
5 const gist = await fetch(`https://api.github.com/gists/${id}`).then((r) =>
6 r.json()
7 );

twitterAPIDownmain.tsx2 matches

@stevekrouseUpdated 1 year ago
1// set by stevekrouse.checkIfTwitterAPIIsDown at 2023-05-09T17:45:30.441Z
2export let twitterAPIDown = {
3 "down": false,
4 "reason": "search returned 4 results at Tue May 09 2023 17:45:30 GMT+0000 (Coordinated Universal Time)"

social_data_api_project3 file matches

@tsuchi_yaUpdated 1 day ago

simple-scrabble-api1 file match

@bryUpdated 4 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