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.
freecrayon avatar
freecrayon
zodStringToJSON_example
Script
// usually this will be passed to you by your Server (i.e. SvelteKit, Remix)
0
peterqliu avatar
peterqliu
getReverseDependencies
Script
Forked from rlesser/getReverseDependencies
0
visnup avatar
visnup
beacon
HTTP
Cross-origin cookie test Reacquaint myself with how modern browsers deal with cross-origin cookies. Specifically, how aggressive does Safari limit them nowadays? (Answer: very aggressive, to the point of just disabling them.) This endpoint simply tries to assign a 28-day-from-now-expiring device cookie when requested, providing all of the obligatory-in-2024 cookie flags and headers to allow cross-origin support. You can request it from another origin in different browsers and inspect if cookies are sent back or not (either via sendBeacon or fetch(..., {credentials: "include"}) or in the iframe browser preview below). Chrome and Firefox subsequently send back a persistent cookie; Safari does not. Edge probably does what Chrome does. I dunno what Braze does.
0
andreterron avatar
andreterron
formResponses
Script
// set by andreterron.form_handler at 2023-09-14T15:04:57.786Z
0
evol avatar
evol
labLoginBanUser
HTTP
Forked from todepond/labLoginBanUser
0
kora avatar
kora
sonnet
Script
Anthropic Claude Claude 3.5 Sonnet
0
hyperNURb2 avatar
hyperNURb2
tell
Script
An interactive, runnable TypeScript val by hyperNURb2
0
ampp avatar
ampp
WikiImage
HTTP
Forked from jamiedubs/nftImage
0
apitman avatar
apitman
decentauthdemo
HTTP
// export default handler;
1
mittzy avatar
mittzy
loginredux_login
HTTP
An interactive, runnable TypeScript val by mittzy
0
stevekrouse avatar
stevekrouse
parseSendGridEmail
Script
An interactive, runnable TypeScript val by stevekrouse
0
stevekrouse avatar
stevekrouse
myTestForm
Script
// set by stevekrouse.handleFormExample at 2023-04-12T16:18:06.208Z
0
damidina avatar
damidina
cheerioScraper
Script
cheerioScraper This val scrapes a website to extract all the URLs from anchor ( <a> ) tags using the cheerio library. Usage import scrapeWebsite from 'val:damidina.cheerioScraper'; const urls = await scrapeWebsite('https://example.com'); console.log(urls);
0
nbbaier avatar
nbbaier
flakyMoccasinDragonfly
Script
An interactive, runnable TypeScript val by nbbaier
0
neverstew avatar
neverstew
bbc6MusicSpotifyRedirect
HTTP
BBC Radio 6 Now Playing on Spotify This uses a fantastic website and pulls a link out of it, automatically redirecting you there. Go straight to https://neverstew-bbc6MusicSpotifyRedirect.web.val.run
0
iamseeley avatar
iamseeley
generateImageHandler
HTTP
An interactive, runnable TypeScript val by iamseeley
0