A Python API script you can run right now.

Open a script that reads an API response and prints a report, run it in the browser, then ask the agent to change what it computes or writes.

What is in it

Python that turns a weather API response into a report.

  • main.py
  • forecast.json

What people make from it

  • A report from any JSON API
  • A data clean-up before a spreadsheet
  • A first script to learn requests and JSON

The first change to ask for

Change this script to also write the report as a CSV file and to flag every day below freezing.

Keep going

Questions.

Something else? Email hello@nerdly.us

No. The template opens in Code on your device and runs straight away; signing in is needed only when you ask the agent to change it.

No. Code runs in your browser: the agent writes the files, the preview shows the app as it is built, and Python and JavaScript programs run in a sandbox in the page.

Per prompt. Each model has a price per million tokens, shown on the models page and in the picker, and every agent step shows what it cost. Add money to one balance and use it in Code, Chat and through the API. A free account includes 10 messages a day, in Chat or as agent steps in Code, with no card; Plus and Pro include a set of models each day and never renew by themselves.

Yes. Download it as a .zip, or as a GitHub-ready repository with a README, a .gitignore and, for a web app, a workflow that publishes it on GitHub Pages when you push.

Open it and make it yours.

It opens in Code with the files, the preview and the task ready.

Open the api script template
Join on TelegramHelp