WLJS LogoWLJS Notebook

URLRead

URLRead[url] sends a request to a URL and reads back the response, returning it as a response object.

URLRead[assoc] sends a request to a URL built from an association of components and metadata elements.

URLRead[HTTPRequest[...]] sends a request specified by a symbolic HTTPRequest object.

URLRead[req, "elem"] returns only the element elem from the response.

Examples

Read from a URL:

URLRead["https://httpbin.org/get"]
(* HTTPResponse[...] *)

Get specific element:

URLRead["https://example.com", "Body"]
(* "<!doctype html>..." *)

Please visit the official Wolfram Language Reference for more details.

On this page