Utility & web · Step
Get JSON from the web
Call a web address and read its JSON answer. HTTPS only, at most 10 web calls per run.
http.get_json
In a flow
“When a button is clicked, get JSON from the web.”
Get the weather from an API and post data.temp.
What it does
Call a web address and read its JSON answer. HTTPS only, at most 10 web calls per run. It's a step: it runs when the white wire reaches it, then the flow carries on from its Then pin. It gives 6 values later steps can use. Find it under Utility & web in the palette.
When to use it
Use it for odds and ends: call a web address and read its JSON answer. HTTPS only, at most 10 web calls per run.
When not to
If nothing should change in Discord, a value node or a check is lighter.
Typical wiring
Sockets: settings you can wire
- Address Text needed
-
The web address to call. It must start with https://. Variables allowed.
What goes there: Type it in the side panel, or wire in text. e.g. Hello there
If it's empty: Needed. Publish lists it until it's set or wired; the step can't run without it.
Connects fromA member's variablesAccept applicationAdd a Notion pageAdd a Trello cardAdd an emojiAdd to number in objectAdd up timesAdd working daysand 844 more
Values it gives
- Status Number
-
The answer's status code: 200 is OK, 404 not found. e.g. 200
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toAccount ageActive membersAddAdd answer to formAdd soundboard soundAdd timeAdd to a counterAdd to a leaderboardand 718 more
- Worked Yes / no
-
True for a status from 200 to 299. e.g. true
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toAdd a forum tagAdd onboarding questionAdd to a counterAlarms that are dueAndAutoMod: Discord's word listsBluesky latest postBoard as emojiand 572 more
- Answer Text
-
The whole answer as JSON text, for Get from object. Empty when it wasn't JSON or is over 4000 characters. e.g. {"name": "Sam"}
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toAccept applicationAdd a forum tagAdd a labelAdd a Notion pageAdd a row to a Google SheetAdd a staff noteAdd a stickerAdd a Trello cardand 577 more
- Value Text
-
What was at Read, as text (JSON text for a list or object). e.g. Sam
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toAccept applicationAdd a forum tagAdd a labelAdd a Notion pageAdd a row to a Google SheetAdd a staff noteAdd a stickerAdd a Trello cardand 577 more
- Value as a number Number
-
What was at Read, as a number, 0 if it isn't one. e.g. 42
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toAccount ageActive membersAddAdd answer to formAdd soundboard soundAdd timeAdd to a counterAdd to a leaderboardand 718 more
- Found Yes / no
-
True when Read found something in the answer. e.g. true
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toAdd a forum tagAdd onboarding questionAdd to a counterAlarms that are dueAndAutoMod: Discord's word listsBluesky latest postBoard as emojiand 572 more