PM2.5 Open Data Portal API

⭐ Beginner's Pick Environment / No Auth Required Beginner HTTPS
Free to Use Varies (check documentation)

Overview

PM2.5 Open Data Portal provides free access to low-cost PM2.5 (fine particulate matter) sensor data from the LASS community network across Asia, particularly Taiwan. No API key is required, making it instantly accessible for developers and researchers. The API returns sensor readings in JSON format and supports filtering by device ID, location, or time range.

💡

Beginner Tip

No registration required — you can start fetching PM2.5 sensor data immediately using the REST endpoints. Use the /project/all/ endpoint to browse available data projects, then narrow down to specific device readings using a device ID.

Available Data

Use case: Integrate open low-cost pm2.5 sensor data data into web and mobile applications
PM2.5 Open Data Portal data via REST API
JSON-formatted response data
Freely accessible without authentication

Example Response

JSON Response
{
  "status": "success",
  "data": {
    "result": "Data from PM2.5 Open Data Portal",
    "description": "Open low-cost PM2.5 sensor data",
    "timestamp": "2025-01-15T10:00:00Z"
  }
}

Field Reference

device_id Unique identifier of the LASS sensor device that recorded the measurement
feeds Array of time-stamped sensor readings from the device
feeds[].AirBox.s_d0 PM2.5 concentration in micrograms per cubic meter (μg/m³) from the primary sensor channel
feeds[].timestamp ISO 8601 timestamp indicating when the measurement was recorded by the sensor
source Data source identifier indicating which sensor network or project provided the data

Implementation Example

const url = "https://pm25.lass-net.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

Empty feeds array No data is available for the requested device ID or time window
Check that the device ID exists using the /device/all endpoint, and try querying without a time range filter first
Connection timeout The LASS network API may have intermittent availability
Implement retry logic with exponential backoff; community APIs may have limited uptime compared to commercial services
Unexpected data format Different sensor types report different field names in the feeds array
Always check for field existence before accessing values, as fields vary by sensor model (e.g. s_d0 vs s_d1 for different PM channels)

Matrix Score Breakdown

🌐 Reachability 30/30
⚡ Speed 20/20
🔒 Security 15/15
🛠 Developer XP 15/20
✓ Reliability 7/15
Response Time 67ms

Fully tested on Apr 5, 2026

Technical Specifications

Auth No Auth
HTTPS REQUIRED
CORS UNKNOWN
Category Environment
Difficulty Beginner
Verified: 2026-04-04

Similar APIs

View All →