- 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
- Now and Format Date (
YYYY-MM-DD HH:mm) →time. - 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.
- Try: HTTP Request GET
- 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.