Piecewise

Build chat bots with blocks

fetch URL (url) as (type) table

In Internet

Jump to block

Fetch and parse the content of a URL as a JSON or XML table. Parse errors return an empty table and print a warning.

Parameters

Parameter name Parameter type Required? Description
url String The URL to fetch.
type any Specify how to parse the resulting response.

Output

table, Array, String - The parsed result of fetching the specified URL.