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.
akalanala avatar
akalanala
fuchsiaMosquito
HTTP
An interactive, runnable TypeScript val by akalanala
0
mariaoliveira avatar
mariaoliveira
tangibleWhiteJaguar
HTTP
Forked from mewtru/valentine
0
stevekrouse avatar
stevekrouse
wikidata
Script
Query Wikidata via SPARQL Usage // get the death date for a person @stevekrouse.wikidata(`SELECT ?person ?personLabel ?death_date WHERE { ?person rdfs:label "Henry Kissinger"@en; wdt:P31 wd:Q5 . # Ensure the entity is a human OPTIONAL { ?person wdt:P570 ?death_date . # Try to find a date of death } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }`) Learn more https://agg-shashank.medium.com/an-introduction-to-using-wikidata-apis-a678ee6d2968
0
vladimyr avatar
vladimyr
json_viewer
Script
Forked from stevekrouse/json_viewer
0
chatathip avatar
chatathip
ForJackeyy
HTTP
Forked from mewtru/valentine
0
wilt avatar
wilt
pug
Script
Pug HTML Template Renderer This function is equivalent to pug.render - it takes a Pug template string and renders it to an HTML string. import(npm:pug) doesn't work in Val.Town due to Pug's usage of new Function , which is forbidden for security reasons, so this function uses Val.Town's eval API instead. Example const myEndpoint = async (req: express.Request, res: express.Response) => { const html = await @wilt.pug("p Hello #{name}!", {name: "Pug"}); res.status(200); res.send(html); }
0
kaleidawave avatar
kaleidawave
ezno_check
Script
Check a snippet using Ezno. Example @kaleidawave.ezno_check( "const x: string = 20", );
0
feep avatar
feep
nameNationality
Script
// Predict the nationality of a name
0
stevekrouse avatar
stevekrouse
formDataEx
Script
// set by stevekrouse.form at 2023-08-28T20:38:45.006Z
0
rozek avatar
rozek
GDI_URLParserService
HTTP
Forked from rozek/GDI_ServerTimeService
0
tmcw avatar
tmcw
pekoExample
HTTP
peko This is an example of using the tiny peko example with Val Town - it's a small router that lets you build web apps using the standard Request & Response objects. Peko just provides routing - matching URLs with functions - and lets you create your own Response object. Server examples Hono Peko Itty Router Nhttp
0
tmcw avatar
tmcw
urlQueryStringExample
HTTP
This example shows how to get the query parameters out of a request with the Web API. Check out the searchParams object for more ways to handle query parameters.
0
mgruel avatar
mgruel
objectMap
Script
Forked from stevekrouse/objectMap
0
rororowyourboat avatar
rororowyourboat
returnFortyTwo
HTTP
An interactive, runnable TypeScript val by rororowyourboat
0
rym avatar
rym
home
Script
// Access via https://api.val.town/v1/express/rym.home
1
sjerred avatar
sjerred
renderFormAndSaveData
HTTP
Forked from andreterron/renderFormAndSaveData
0