Weather
Last verified: April 1, 2026
This API uses OAuth for authentication, which is more involved than a simple API key but provides better security, especially when accessing user data.
Authorization header of your API requests.OAuth is commonly used by APIs that access personal data (like social media accounts). Many libraries exist to simplify the OAuth flow in every major programming language.
CORS support for this API is unknown. If you get cross-origin errors in the browser, try calling the API from your server instead.
Foreca is a free API in the Weather category. It uses OAuth for authentication, which provides secure access to user-specific data. This API supports HTTPS for secure connections and has unknown CORS support — test from your environment to confirm.
Foreca fits naturally into projects that touch the Weather space. Here are a few directions developers commonly take when working with APIs in this category — any of them could be a fit depending on the specific endpoints Foreca exposes:
If a specific use case isn't listed, scroll back to the code examples above and adapt the request shape to match the endpoint you need. Most Weather APIs follow similar request/response patterns, so the snippet that works for one endpoint usually works for the rest with small tweaks.
1. Skim the documentation first. Open the link above and look for two things: the base URL pattern and a list of available endpoints. Knowing both up front saves you from guessing parameter names or formats. Most providers also publish example responses next to each endpoint — copy one into your editor as a reference for the JSON shape your code will be parsing.
2. Register your application for OAuth. Foreca uses OAuth, so before you can call any endpoint you'll need to register a client application with the provider. That gives you a Client ID and Client Secret. Implementing the OAuth flow yourself is doable but tedious — most languages have a well-supported library that handles the redirect dance and token refresh for you. Use it.
3. Make a request from the command line. Before wiring an API into your application, send a single request with curl or your HTTP client of choice. Confirm that the response shape matches what the docs promised. If it doesn't, your application code would have hit the same surprise — better to find out now while you only have one terminal window to debug.
4. Wire it into your code. Once a manual request works, copy that request into your application as a function. Add error handling: APIs return 4xx and 5xx codes for client and server errors respectively, and your code needs to behave reasonably when one comes back. Our error-handling guide covers the patterns that make this less painful.
5. Test browser compatibility. CORS support for Foreca isn't documented in our directory. The fastest way to find out is a one-line test in a browser console — open devtools, run fetch(API_URL).then(r => r.json()).then(console.log), and watch for a CORS error in the network tab. If you see one, call the API from a backend instead.
http:// vs https:// will fail.Weather APIs deliver current conditions, forecasts, historical data, and severe weather alerts for locations worldwide. Build weather dashboards, travel planners, or outdoor activity apps with accurate meteorological data.
Foreca is one of dozens of free Weather APIs we've catalogued. Some are nearly interchangeable; others have distinct strengths and weaknesses that only become clear when you read their docs side-by-side. If Foreca doesn't quite fit your project, the Weather category page lists every alternative we know about, with auth and CORS columns so you can compare at a glance.
When evaluating Weather APIs, the criteria that matter most are typically: rate limits on the free tier, freshness of the underlying data, regional coverage (does it work for your users' geography?), and how active the provider's maintenance schedule is. APIs that haven't been updated in years tend to drift out of sync with the underlying data sources, even if they technically still respond.
Foreca is a weather API that can provide meteorological data such as temperature, humidity, wind speed, precipitation, and forecasts. The exact data fields depend on the API's endpoints — check the documentation for a full list of available weather parameters. Many weather APIs also provide UV index, air quality, and severe weather alerts.
Historical weather data availability varies by API. Some weather APIs like Foreca offer historical records going back years, while others focus only on current conditions and forecasts. Check the API documentation to see if historical endpoints are available and whether they require a different plan or rate limit.
Weather API accuracy depends on the data sources the provider uses (e.g., government stations, satellites, radar). Short-term forecasts (1-3 days) are generally reliable across most weather APIs, while extended forecasts become less accurate. Foreca may source data from national weather services or proprietary models — see their documentation for details on data sources and update frequency.
Most weather APIs support lookups by geographic coordinates (latitude/longitude), city name, or zip code. Foreca likely supports at least one of these methods. Coordinate-based lookups tend to be the most precise. Check the Weather category for other weather APIs if you need a specific lookup method.
Yes, Foreca is listed as a free public API. You will need to register an application to get OAuth credentials, but access is free. Some APIs have rate limits on their free tier, so check the official documentation for current limits.
Yes! According to our most recent health check (Foreca's last ping: 2026-04-01 13:44:04), this API is responding normally. We periodically verify all listed APIs to ensure they are still online and functioning.