Back to APIs list

Weather API examples & templates

Use these vals as a playground to view and fork Weather API examples and templates on Val Town. Run any example below or find templates that can be used as a pre-built solution.
ejfox avatar
todaystats
@ejfox
HTTP (preview)
* This tool fetches real-time data from various free APIs to create a JSON object * representing the current state of the world from different perspectives. * Data is cached for 30 minutes using Val Town's SQLite database to reduce API calls and improve performance.
mxderouet avatar
remember
@mxderouet
Script
An interactive, runnable TypeScript val by mxderouet
fraasi avatar
moon_phase
@fraasi
Script
An interactive, runnable TypeScript val by fraasi
meshack254 avatar
handleDiscordInteraction
@meshack254
Script
An interactive, runnable TypeScript val by meshack254
webup avatar
chatSampleFunctionSingle
@webup
Script
An interactive, runnable TypeScript val by webup
vladimyr avatar
json_viewer
@vladimyr
Script
Forked from stevekrouse/json_viewer
nmsilva avatar
forbetEventScrapper
@nmsilva
Script
// TODO: remove this line
smalldogenergy avatar
tgWebhook
@smalldogenergy
Script
An interactive, runnable TypeScript val by smalldogenergy
iamseeley avatar
LandingPage
@iamseeley
Script
@jsxImportSource https://esm.sh/hono@latest/jsx
all avatar
Countdown2
@all
HTTP
// This val will serve an HTML countdown timer to April 14, 2025.
yawnxyz avatar
apricotTurkey
@yawnxyz
Script
An interactive, runnable TypeScript val by yawnxyz
ejfox avatar
nasa
@ejfox
HTTP (preview)
* This program creates an HTTP server that fetches various data from NASA APIs * and returns a JSON response with a collection of interesting information about today. * It uses multiple NASA APIs to gather diverse space-related data, including real-time imagery * and additional interesting data points.
janpaul123 avatar
getValsContextWindow
@janpaul123
Script
An interactive, runnable TypeScript val by janpaul123
stevekrouse avatar
apricotTurkey
@stevekrouse
Script
Forked from yawnxyz/apricotTurkey
stevekrouse avatar
valleGetValsContextWindow
@stevekrouse
HTTP (preview)
Forked from janpaul123/valleGetValsContextWindow
roadlabs avatar
valleGetValsContextWindow
@roadlabs
Script
Forked from janpaul123/valleGetValsContextWindow