A building block for your next idea.
Add a current-weather panel to a city guide using a server-side request.
Know before you build
Register for a key. Free access has plan-specific quotas and feature limits; confirm the current pricing and attribution terms before launch.
Check current provider documentation ↗Your first request
Start with this documented example. Replace credential placeholders with your own test credentials. Browser execution depends on the provider’s CORS policy.
curl --request GET 'https://api.weatherapi.com/v1/current.json?key=YOUR_API_KEY&q=Sofia'Practical questions
What can I build with WeatherAPI.com?+
Add a current-weather panel to a city guide using a server-side request.
Does WeatherAPI.com need authentication?+
The reviewed example is listed as “API key”. Register for a key. Free access has plan-specific quotas and feature limits; confirm the current pricing and attribution terms before launch.
Can I call WeatherAPI.com from a browser?+
Browser access depends on the provider’s CORS policy for your origin, method, and headers. The playground makes a direct request and cannot bypass those restrictions.
Sources & confidence
Provider documentation was reviewed on 16 September 2026. This is not a live availability test or an endorsement.
Source catalogs can become outdated. Read our review and attribution policy. Plain-text guide ↗