Overview
Foreca is a professional weather data API used by businesses worldwide, offering global forecasts, current conditions, and weather alerts with high accuracy. It uses OAuth 2.0 authentication, so you first obtain an access token and then use it in subsequent data requests. Foreca is best suited for developers who need reliable, commercial-grade weather data with global coverage.
Beginner Tip
Use the token endpoint to exchange your credentials for a bearer token, then include that token as an Authorization header in every weather data request. Tokens expire, so build token refresh logic into your app from the start.
Available Data
Example Response
{
"location": "Tokyo",
"temperature": {
"current": 22,
"feels_like": 24,
"min": 18,
"max": 26
},
"condition": "Partly Cloudy",
"humidity": 65,
"wind": {
"speed": 12,
"direction": "NE"
},
"forecast": [
{
"date": "2025-01-16",
"high": 25,
"low": 17,
"condition": "Sunny"
}
]
} Field Reference
current.temperature Current air temperature at the requested location in degrees Celsius. current.symbolPhrase Human-readable weather description such as partly cloudy or heavy rain. current.windSpeed Current wind speed in km/h. current.relHumidity Relative humidity as a percentage (0-100). current.feelsLikeTemp Feels-like temperature in degrees Celsius accounting for wind and humidity. Implementation Example
const url = "https://developer.foreca.com/";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
headers: {
"Authorization": "Bearer YOUR_API_KEY"
}
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Matrix Score Breakdown
Partially tested on Apr 5, 2026
Technical Specifications
Similar APIs
View All →7Timer!
⭐ Beginner's Pick7Timer!
AccuWeather
AccuWeather's API provides highly detailed weather forecasts, current conditions, and severe weather alerts for locations around the world.
Aemet
Aemet OpenData is Spain's official meteorological agency API providing weather forecasts, observations, and climate data for Spanish territory including the Canary Islands and Balearics.
APIXU
APIXU (now rebranded as Weatherstack) is a weather data API that provides current conditions, forecasts, and historical weather for locations around the world.
AQICN
⭐ Beginner's PickAQICN (Air Quality Index CN) provides real-time air quality data for over 1,000 cities worldwide, including PM2.5, PM10, ozone, and other pollutant readings.