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/$%7Burl%7D?q=api&page=988&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 12435 results for "api"(2688ms)

octopusAgilePricingmain.tsx1 match

@MattieTKUpdated 1 year ago
33 const locationCode = locationMap[location];
34 const octopusDataUrl =
35 `https://api.octopus.energy/v1/products/AGILE-BB-23-12-06/electricity-tariffs/E-1R-AGILE-BB-23-12-06-${locationCode}/standard-unit-rates/`;
36 const data = await fetch(octopusDataUrl);
37 let { results: results, next: next } = await data.json();

plumGazellemain.tsx2 matches

@lufafajoshuaUpdated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export async function postHogAPICapture({ key, event, properties, distinct_id }: {
4 key: string;
5 event: string;
8}) {
9 const body = {
10 "api_key": key,
11 "event": event,
12 "properties": properties,

dot_commain.tsx1 match

@horatiothomasUpdated 1 year ago
102 <li className="pb-2 sm:pb-1">
103 <span className={dateClass}>2013 Jun -</span>Software Engineer @{" "}
104 <Link href="http://firstround.com/">First Round Capital</Link>
105 </li>
106 <li className="pb-2 sm:pb-1">

transmitterREADME.md1 match

@curtcoxUpdated 1 year ago
1# Echo incoming request as JSON
2See https://developer.mozilla.org/en-US/docs/Web/API/Request
3
4

trpcmain.tsx1 match

@pomdtrUpdated 1 year ago
1const baseURL = `https://www.val.town/api/trpc`;
2
3export const trpc = {

trpcREADME.md1 match

@pomdtrUpdated 1 year ago
1# trpc
2
3 Access private Val Town apis.
4
5> ⚠️ trpc endpoints can change at any time

tapMochaToNodemain.tsx5 matches

@barelyhumanUpdated 1 year ago
53 const builder = recast.types.builders;
54
55 let tapImportIdentifier = "t";
56 const testUtils = [
57 "describe",
88 const specifier = path.node.specifiers[0];
89 if (specifier && specifier.local) {
90 tapImportIdentifier = specifier.local.name.toString();
91 }
92 return false;
96 recast.visit(ast, {
97 visitExpressionStatement(path) {
98 removeMochaGlobal(path as NodePath, tapImportIdentifier, {
99 asserts,
100 });
127function removeMochaGlobal(
128 path: NodePath,
129 tapImportIdentifier: string,
130 { asserts }: { asserts: typeof recast.types.namedTypes },
131) {
144
145 const calleeName = path.node.expression.callee.object.name;
146 if (calleeName !== tapImportIdentifier) {
147 return false;
148 }

vtOpenAPIREADME.md1 match

@stevekrouseUpdated 1 year ago
1null
2
3Migrated from folder: Archive/vtOpenAPI

vtOpenAPI_migratedREADME.md1 match

@stevekrouseUpdated 1 year ago
1Migrated from folder: Archive/vtOpenAPI

notehubREADME.md1 match

@rdimartinoUpdated 1 year ago
1# Notehub
2
3A set of helper functions for interacting with the Notehub API
4
5Requires `NOTEHUB_CLIENT_ID` and `NOTEHUB_CLIENT_SECRET` [environment variables](https://www.val.town/settings/environment-variables) to be configured.

vapi-minutes-db2 file matches

@henrywilliamsUpdated 3 hours ago

social_data_api_project3 file matches

@tsuchi_yaUpdated 3 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