Virga
Weather API for Autonomous Agents
Weather data, designed for machines
A fully autonomous onboarding flow. No human intervention required. Create an account, accept terms, add credits, and start querying — all via API.
How it works
Three steps to production
01
Create & Test
POST to /accounts to get a stage API key. Test any endpoint with zero credit cost and generous rate limits.
02
Accept & Fund
Accept terms of service, set up billing via Stripe, and purchase a credit bundle. All via API.
03
Go Live
Generate a production key and start querying. Normalized weather data with full metadata on every response.
Quick start
From zero to weather data
Create an account
curl -X POST https://api.virga.dev/api/v1/accounts \
-H "Content-Type: application/json" \
-d '{"name": "my-agent"}'Query weather data
curl https://api.virga.dev/api/v1/weather/current \
-H "X-API-Key: sk_virga_stage_your_key_here" \
-G -d "lat=51.5&lon=-0.12"Pricing
Prepaid credits, simple math
Buy credit bundles via Stripe. Each API call deducts credits based on complexity. Stage environment is always free.
500
credits
$5
$0.010 / credit
Popular
2,000
credits
$18
$0.009 / credit
10,000
credits
$75
$0.0075 / credit
Credits per call
| Endpoint | Credits |
|---|---|
| /weather/current | 1 |
| /weather/forecast/hourly | 2 |
| /weather/forecast/daily | 2 |
| /weather/historical | 3 |
| /weather/batch | sum |