openSenseMap API
Overview
openSenseMap is an open-source platform that aggregates real-time sensor data from community-operated personal weather stations called senseBoxes, spread across the globe. No API key is required, so you can query live environmental measurements including temperature, humidity, air pressure, and air quality instantly. It is a great API for citizen science projects, smart city dashboards, and learning about IoT data.
Beginner Tip
Use the bounding box (bbox) parameter to narrow results to a geographic area so you are not downloading every senseBox on the planet. The API returns GeoJSON, so results plug directly into mapping libraries like Leaflet or Mapbox.
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
_id Unique identifier for the senseBox station. name User-defined name of the senseBox set by its owner. currentLocation.coordinates GeoJSON coordinates array [longitude, latitude] of the senseBox. sensors Array of sensor objects, each with a title (e.g., Temperature), unit, and lastMeasurement value. sensors[].lastMeasurement.value The most recent measurement value recorded by this sensor as a string. exposure Deployment type of the senseBox: outdoor, indoor, or mobile. Implementation Example
const url = "https://api.opensensemap.org/";
const response = await fetch(url);
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
Fully tested on Apr 5, 2026
Technical Specifications
Related Tags
Similar APIs
View All →7Timer!
⭐ Beginner's Pick7Timer!
AviationWeather
AviationWeather.gov is a free NOAA service that provides official aviation weather data including METARs, TAFs, PIREPs, and SIGMETs used by pilots and flight planners.
Hong Kong Obervatory
⭐ Beginner's PickThe Hong Kong Observatory Open Data API provides free access to weather observations, forecasts, earthquake reports, and climate data for Hong Kong and the surrounding region.
MetaWeather
MetaWeather provides programmatic access to weather via REST API.
ODWeather
⭐ Beginner's PickODWeather is a free weather and webcam API from OceanDrivers that provides real-time marine and coastal weather data including wind, waves, and temperature.