For Agents
Read real-time air quality index and pollutant data for any city, coordinate, or map region worldwide.
Install Jentic One Beta
Jentic One is a self-hosted execution layer for AI agents. It lets your agent call the AQICN Air Quality Index API, or any other public or private API you need. You set the rules, the agent never sees your credentials, and every call is logged.
Two steps, two machines. Install the instance in a safe environment, then register your agent from wherever it runs.
Step 1: Jentic One Host machine
# On the machine that will host your Jentic One instance:
curl -fsSL https://raw.githubusercontent.com/jentic/jentic-one/main/tools/install.sh | shStep 2: Agent machine
# On the machine where your agent runs (keep this separate from the instance):
curl -fsSL https://raw.githubusercontent.com/jentic/jentic-one/main/tools/install.sh | sh
jentic register # connects your agent to your Jentic One instanceJentic One is in public beta. The setup above keeps your agent separate from the instance, which is what you want before using real credentials: an agent running as the same OS user as Jentic One can read its stored keys directly. Just evaluating? A single local install is fine to start. See the secure deployment guide for the tiers.
What an agent can do with AQICN Air Quality Index API.
Look up the real-time AQI and pollutant breakdown for a named city
Resolve the AQI for the user's current location using IP geolocation
Fetch AQI for arbitrary latitude and longitude coordinates
GET STARTED
Use for: I need to check the current air quality in a specific city, Get the AQI at a given latitude and longitude, Find air quality stations near a place name, List all monitoring stations within a bounding box
Not supported: Does not handle weather forecasting, pollen data, or historical archives — use for real-time air quality index lookups only.
Jentic publishes the only available OpenAPI specification for AQICN Air Quality Index API, keeping it validated and agent-ready. AQICN provides real-time air quality index data for over 1,000 cities worldwide, including individual pollutant readings such as PM2.5, PM10, NO2, CO, SO2, and Ozone. The API supports city lookups by name, IP-based geolocation, latitude/longitude coordinates, station search, and bounding-box map queries. Authentication is via an API token passed as a query parameter.
Search the AQICN station directory by name or keyword
List monitoring stations and their AQI within a map bounding box
Patterns agents use AQICN Air Quality Index API for, with concrete tasks.
★ City-Level Air Quality Lookup
Fetch the current AQI for a named city and surface the dominant pollutant alongside the index value. Travel and outdoor-activity products use this to give users a one-glance read on whether to go outside, change plans, or take protective measures. The /feed/{city} endpoint returns a single JSON object with the city's AQI, dominant pollutant, and individual readings.
Call GET /feed/{city} for the requested city name and return the AQI value plus the dominant pollutant in plain English.
Coordinate-Based AQI for Mobile Apps
When a mobile app has the user's GPS coordinates, query AQICN by lat/lng to get the AQI from the closest monitoring station. Outdoor fitness and weather apps use this to show hyperlocal air quality without asking the user for their city. The /feed/geo:{lat};{lng} endpoint returns the nearest station's reading and identifies which station was used.
Call GET /feed/geo:{lat};{lng} with the user's coordinates and return the AQI, dominant pollutant, and the name of the nearest station.
Map Overlay of Stations
Render a map of monitoring stations and their AQI values inside a visible bounding box. Air quality dashboards and environmental research tools use this to show regional patterns without making one call per station. The /map/bounds endpoint returns all stations within a lat/lng box in a single response.
Call GET /map/bounds with the user's current map viewport coordinates and return the list of stations with their AQI values for rendering.
AI Agent Air Quality Briefings via Jentic
An assistant agent that drafts a daily morning briefing can call AQICN through Jentic to include today's air quality alongside weather and calendar context. The agent searches for the AQI lookup operation, loads the schema, and executes the city feed call without managing the API token. Jentic resolves the token from its credential vault.
Use Jentic search 'check the air quality in a city', load the schema for GET /feed/{city}, then execute with the user's home city and return the AQI for the briefing.
5 endpoints — jentic publishes the only available openapi specification for aqicn air quality index api, keeping it validated and agent-ready.
METHOD
PATH
DESCRIPTION
/feed/{city}
Get AQI for a city
/feed/here
Get AQI for the IP geolocation
/feed/geo:{lat};{lng}
Get AQI by coordinates
/search
Search stations by name
/map/bounds
List stations in a bounding box
/feed/{city}
Get AQI for a city
/feed/here
Get AQI for the IP geolocation
/feed/geo:{lat};{lng}
Get AQI by coordinates
/search
Search stations by name
/map/bounds
List stations in a bounding box
Three things that make agents converge on Jentic-routed access.
Credential isolation
AQICN tokens are stored encrypted in the Jentic vault. Agents receive scoped access — the raw token never enters the agent's context and is injected at request time as the token query parameter.
Intent-based discovery
Agents search by intent (e.g. 'check the air quality in a city') and Jentic returns matching AQICN operations with their input schemas, so the agent can call the right endpoint without browsing docs.
Time to first call
Direct AQICN integration: a few hours to handle token registration, response shape, and station selection edge cases. Through Jentic: under 15 minutes — search, load schema, execute.
Alternatives and complements available in the Jentic catalogue.
Specific to using AQICN Air Quality Index API through Jentic.
Why is there no official OpenAPI spec for AQICN Air Quality Index API?
AQICN does not publish an OpenAPI specification. Jentic generates and maintains this spec so that AI agents and developers can call AQICN Air Quality Index API via structured tooling. It is validated against the live API and kept up to date. Get started at https://app.jentic.com/sign-up.
What authentication does the AQICN API use?
AQICN uses an API token passed as a query parameter named token on every request. Tokens are issued free for non-commercial use at aqicn.org/data-platform/token. Through Jentic, the token is stored encrypted in the vault and never enters the agent's context.
Can I get historical air quality data with this API?
No. The endpoints in this spec return real-time and forecast values only. Historical archive access is offered separately by AQICN under their data platform — contact AQICN for bulk historical data.
What pollutants are included in the AQI response?
City and geo feeds return individual readings for PM2.5, PM10, NO2, CO, SO2, and Ozone where the station reports them, plus the dominant pollutant identifier and weather context such as temperature and humidity.
What are the rate limits for the AQICN API?
AQICN enforces a rate limit of around 1,000 requests per second per token in practice; the OpenAPI spec does not declare a fixed value. For heavy production use, contact AQICN to request a higher quota.
How do I check the AQI in a city through Jentic?
Install Jentic with pip install jentic, search for 'check the air quality in a city', load the schema for GET /feed/{city}, then execute with the city name. Jentic injects the token automatically.