Fetch URL
Fetch a remote URL and retrieve the response body

Fetch URL Dialog
This sub-action behaves much like the URL commands in Nightbot and many other bots.
Parameters
URL
Text required
Enter the URL to fetch
Only
If you need support for additional methods such as
GET requests are supported at this time.If you need support for additional methods such as
POST, utilize C# sub-actions. An example can be found here.Variable Name
Text required
Enter the name of the variable to store the response in
Parse result as JSON
Toggle
Default:
false
Optionally parse the result as JSON
Multiple variables will be populated, with the Variable Name you provided as the root key
Parse JSON Example
A request to
A request to
https://catfact.ninja/fact, with variable name jsonResult, would populate the variables %jsonResult.fact% and %jsonResult.length%Headers
Table
Optionally add custom headers to modify the HTTP request
Variables
| Name | Type | Description |
|---|---|---|
Example Value: {
"fact": "Both humans and cats have identical regions in the brain responsible for emotion.",
"length": 81
}
If Parse result as JSON is disabled: The full text of the response body | ||
Example Value: <variableName>.fact: "Both humans and cats have identical regions in the brain responsible for emotion."
If Parse result as JSON is enabled: All json properties will be dynamically mapped to variables by key |