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.
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
arrudaricardo avatar
arrudaricardo
echo_http
HTTP
An interactive, runnable TypeScript val by arrudaricardo
0
sky_porie_fire443 avatar
sky_porie_fire443
deepLTranslatorApp
HTTP
@jsxImportSource https://esm.sh/react
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
stevekrouse avatar
stevekrouse
queryParams
HTTP
Forked from neverstew/queryParams
1
nbbaier avatar
nbbaier
getVideoInfo
Script
Get YT Video Information Given a youtube video url, this val returns a small amount of information about the video: title, channel title, and the description. It uses the Youtube Data API v3, so you need to bring your own API key to get it to work (see here about setting up an API key).
0
rdimartino avatar
rdimartino
basic_auth
HTTP
Basic Auth Middleware A middleware for wrapping an HTTP val with Basic authentication. See https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication See also: https://www.val.town/v/pomdtr/basicAuth for a different approach
0