Back to APIs list

US Congress Stock Trading API examples & templates

Use these vals as a playground to view and fork US Congress Stock Trading API examples and templates on Val Town. Run any example below or find templates that can be used as a pre-built solution.
dthyresson avatar
dthyresson
airportCodeMapRedirector
HTTP
IATA Airport Code Map Redirector I needed way redirect to a map for a given aiport given an IATA airport code . This way is it's a simple proxy redirect and I can change if I want to use Google Maps or another service (or change zoom levels, etc) without having to update the link. Usage: Boston Logan: https://iata.thyresson.io?q=bos
0
charmaine avatar
charmaine
googleGeminiAPI
Script
Gemini API A simple and easy to use client for the Gemini API This template shows you how to use the Gemini. This starter template was ported from this one on Docs . To run it: Click Fork on this val Get your Gemini API key Add it to your Environment Variables as GEMINI_API_KEY Click Run on this script val
0
octref avatar
octref
handleForm
Script
An interactive, runnable TypeScript val by octref
0
pomdtr avatar
pomdtr
illIndigoVicuna
HTTP
An interactive, runnable TypeScript val by pomdtr
0
yo_0 avatar
yo_0
autocompleteCityByName
Script
An interactive, runnable TypeScript val by yo_0
0
sky_porie_fire443 avatar
sky_porie_fire443
deepLTranslatorApp
HTTP
@jsxImportSource https://esm.sh/react
0
arrudaricardo avatar
arrudaricardo
echo_http
HTTP
An interactive, runnable TypeScript val by arrudaricardo
0
lecoto avatar
lecoto
blob_admin
HTTP
Forked from stevekrouse/blob_admin
0
sky_porie_fire443 avatar
sky_porie_fire443
translateTextAPI
HTTP
用于中转谷歌翻译api
0
mattx avatar
mattx
parse_cookies
Script
parse_cookies Parses Cookie headers into objects. jar : Value of the Cookie header decoder : Function to run on all cookie names and values. This is to get around character limitations (see RFC 6265 ). There is no formal standard, but as most sites prefer URL encoding, it is the default. x => x can be used as a way to disable decoding.
0
rafter avatar
rafter
saveFormData
Express (deprecated)
Forked from vtdocs/saveFormData
0
maxm avatar
maxm
resyAuth
Script
Forked from vtdocs/resyAuth
0
devdoshi avatar
devdoshi
validators
Script
Usage: async (rawInput) => { const validators = await @devdoshi.validators(); const inputSchema = validators.inputSchema(); const input = inputSchema.safeParse(rawInput); }
0
omgwtfbrblolttyl avatar
omgwtfbrblolttyl
writeFileEndpoint
Express (deprecated)
TODO: [ ] get token from header [ ] decode using secret from env [ ] look up globs for user with id from token [ ] get path from req.body [ ] test path against all globs for user [ ] if none pass, 403 with message [ ] if any pass, write val to db with path as key (overwrite if exists) [ ] return new value
1
supersayan avatar
supersayan
getAllVideosInYoutubePlaylist
Script
Get All Videos in a Youtube Playlist using the Youtube Data API v3 Reference: https://developers.google.com/youtube/v3/docs/playlistItems/list
1
rozek avatar
rozek
HTTP_RequestBody
HTTP
An interactive, runnable TypeScript val by rozek
0