Demo
From a prompt to a chart.
Half a minute: hand the prompt below to an AI coding assistant, paste your key into a .env file, and it pulls the data and plots it. The chart is real, straight from this API.
In short
- Paste the prompt into the assistant.
- Paste your key into
.env. The only manual step. - Keep the CSV and the chart.
XKDR Forum
Hand this out
The prompt
Prompt
Use the India Air Quality API from XKDR Forum. Docs: https://airquality.xkdr.org/#docs. My key is in .env as AQI_API_KEY.
Pull the daily mean PM2.5 for Delhi for November 2024, save it as CSV, and plot it against India's 60 µg/m³ daily standard.Why it works
The assistant reads the endpoint reference, calls GET /v1/measurements with the filters in the prompt, and gets tidy CSV back. No SDK, no scraping, no cleaning.
Every number in the demo is real: 1,200 rows for the month, and 30 days that all sat above the 24-hour standard. Swap the city, the pollutant or the dates and the same prompt still works.