gives the total number of seconds to request one byte from the specified URL.


gives the specified timing.

Details and Options

  • The URL may be specified as "url" or URL["url"]. IPAddress["host:protocol"] is also supported.
  • The URL given can be just a host name, in which case the default HTTP port (80) is assumed.
  • If a URL cannot be reached, URLResponseTime returns $Failed.
  • Possible properties in URLResponseTime include:
  • Allan association of all timings
    "ConnectionTimes"an association of timings related to connection steps
    "HostConnection"time until connection to host is established
    "HTTPRedirect"time spent on all redirection steps, if any
    "NameLookup"time until DNS lookup completed
    "PreTransfer"time to complete all steps prior to data transfer initiation
    "SSLHandshake"time until SSL handshake completed
    "TransactionTotal"total time for the complete request
    "TransferInitiation"time until the first byte of data is received
  • URLResponseTime[url] is equivalent to URLResponseTime[url,"TransactionTotal"].
  • URLResponseTime takes the following option:
  • TimeConstraint60time to wait for URL to respond
  • Option settings t are interpreted as t seconds. Settings involving Quantity can also be used.


open allclose all

Basic Examples  (1)

Find how long it takes to receive a byte from www.wolfram.com:

Click for copyable input

Scope  (6)

Options  (1)

Properties & Relations  (2)

See Also

PingTime  AbsoluteTiming  URLRead  URLExecute

Introduced in 2017