{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/api-ninjas-com/json-schema/api-ninjas-com-air-quality-response-schema.json",
  "title": "AirQualityResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/api-ninjas-com-air-quality-api-openapi.yml#/components/schemas/AirQualityResponse",
  "type": "object",
  "properties": {
    "overall_aqi": {
      "type": "integer",
      "description": "Overall Air Quality Index."
    },
    "CO": {
      "$ref": "#/$defs/Pollutant"
    },
    "PM10": {
      "$ref": "#/$defs/Pollutant"
    },
    "SO2": {
      "$ref": "#/$defs/Pollutant"
    },
    "PM2.5": {
      "$ref": "#/$defs/Pollutant"
    },
    "O3": {
      "$ref": "#/$defs/Pollutant"
    },
    "NO2": {
      "$ref": "#/$defs/Pollutant"
    }
  },
  "$defs": {
    "Pollutant": {
      "type": "object",
      "properties": {
        "concentration": {
          "type": "number",
          "description": "Concentration of the pollutant in micrograms per cubic meter."
        },
        "aqi": {
          "type": "integer",
          "description": "Air Quality Index for the specific pollutant."
        }
      }
    }
  }
}