실습 1 · 외부 JSON API를 그대로 가져오기

서버(FastAPI)가 외부 API를 호출하고, 받은 JSON을 이 페이지에 그대로 끼워 넣었습니다.

서울의 현재 대기질

측정 시각: 2026-11-05T10:00

미세먼지(PM10): 48.2 μg/m³

초미세먼지(PM2.5): 40.2 μg/m³

외부 API가 보내준 원본 JSON

필요 없는 정보(좌표, 생성 시간, 시간대 등)도 섞여 있는 걸 볼 수 있어요.

{
  "current": {
    "interval": 3600,
    "pm10": 48.2,
    "pm2_5": 40.2,
    "time": "2026-11-05T10:00"
  },
  "current_units": {
    "interval": "seconds",
    "pm10": "\u03bcg/m\u00b3",
    "pm2_5": "\u03bcg/m\u00b3",
    "time": "iso8601"
  },
  "elevation": 34.0,
  "generationtime_ms": 0.22220611572265625,
  "latitude": 37.6,
  "longitude": 127.0,
  "timezone": "Asia/Seoul",
  "timezone_abbreviation": "GMT+9",
  "utc_offset_seconds": 32400
}

Data: Copernicus Atmosphere Monitoring Service (CAMS) · via Open-Meteo.com