Station AcademyActivity referenceRPAi StationConsultingAurora Academy
Academy/Station Academy/Level P/Project: from a web API to a local report
Level P · Practical projects

Project: from a web API to a local report

Advanced project. Call a public test API, read values from the JSON answer, handle failures and write a report file.

Advanced≈ 30 min (estimate)Windows, macOSSource-verified
Before this lesson
HTTP requests and APIs, Try/Catch and error handling
You will learn to
  • Request JSON from an API
  • Extract values with JSON paths
  • Write a report
  • Handle network failures

Scenario. Each morning you check a value from a web service and keep a log of it. Here we use httpbin.org, a public test service, as a stand-in.

Build it

  1. Now and Format Date (YYYY-MM-DD HH:mm) → time.
  2. Try/Catch, On Error retry, Max Retries 2, Save Error To problem.
    • Try: HTTP Request GET https://httpbin.org/json, Timeout (ms) 10000 → response.
    • Try: Parse Data json, $.slideshow.title → title.
    • Try: Parse Data json, $.slideshow.author → author.
    • Catch: Write File append {{time}};FAILED;{{problem}} to {{folder}}/api-log.txt.
  3. Write File append {{time}};{{title}};{{author}} to {{folder}}/api-log.txt.

Optional improvements

  • Use If Condition to log a warning when a value changes from the previous run (read the last line of the log first).
  • Move the request into its own workflow and call it with Invoke Workflow.

Activities in this lesson

HTTP Request · Parse Data · Try/Catch · Write File · Now · Format Date · Log

Saved only in this browser.

Source-verified. Steps were checked against the Station source code and authentic screenshots. Not yet executed step by step in the app. Written against RPAi Station for macOS 0.1.0 (1) (RPAi_Station_2.0 @ port/macos 9864e96) and the Windows source (RPAi_Station_2.0 @ codex/native-station e68f16d). Reviewed 2026-11-30. UI labels may differ slightly in other versions; see versions and changes.