URLResponseTime
✖
URLResponseTime
gives the total number of seconds to request one byte from the specified URL.
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:
-
All an 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:
-
TimeConstraint 60 time to wait for URL to respond - Option settings t are interpreted as t seconds. Settings involving Quantity can also be used.
Examples
open allclose allBasic Examples (1)Summary of the most common use cases
Scope (6)Survey of the scope of standard use cases

https://wolfram.com/xid/0nx69kim4cwf6kg2a-djnpt6

Find the time elapsed to make a connection:

https://wolfram.com/xid/0nx69kim4cwf6kg2a-bwrmhj

Find the time to complete the SSL handshake:

https://wolfram.com/xid/0nx69kim4cwf6kg2a-b4yj53

Elapsed time from start until the first byte is received:

https://wolfram.com/xid/0nx69kim4cwf6kg2a-4rfi7

Total time to complete the request:

https://wolfram.com/xid/0nx69kim4cwf6kg2a-x9pfk


https://wolfram.com/xid/0nx69kim4cwf6kg2a-jg644o

Request only times related to connecting to the host:

https://wolfram.com/xid/0nx69kim4cwf6kg2a-ngayrs

URLResponseTime supports IPAddress objects:

https://wolfram.com/xid/0nx69kim4cwf6kg2a-otfz2w


https://wolfram.com/xid/0nx69kim4cwf6kg2a-wbnjnf

Options (1)Common values & functionality for each option
TimeConstraint (1)

https://wolfram.com/xid/0nx69kim4cwf6kg2a-ffam5g


Properties & Relations (2)Properties of the function, and connections to other functions
"TransactionTotal" is the default property:

https://wolfram.com/xid/0nx69kim4cwf6kg2a-8ky3tl


https://wolfram.com/xid/0nx69kim4cwf6kg2a-6cnc2m

URLResponseTime[host] will report the time to open a connection to the web server:

https://wolfram.com/xid/0nx69kim4cwf6kg2a-5vt5wn

PingTime gives the time to ping the host without opening any connection:

https://wolfram.com/xid/0nx69kim4cwf6kg2a-coo4p0

When both are available, PingTime will generally be faster:

https://wolfram.com/xid/0nx69kim4cwf6kg2a-9quqaz

Wolfram Research (2017), URLResponseTime, Wolfram Language function, https://reference.wolfram.com/language/ref/URLResponseTime.html.
Text
Wolfram Research (2017), URLResponseTime, Wolfram Language function, https://reference.wolfram.com/language/ref/URLResponseTime.html.
Wolfram Research (2017), URLResponseTime, Wolfram Language function, https://reference.wolfram.com/language/ref/URLResponseTime.html.
CMS
Wolfram Language. 2017. "URLResponseTime." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/URLResponseTime.html.
Wolfram Language. 2017. "URLResponseTime." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/URLResponseTime.html.
APA
Wolfram Language. (2017). URLResponseTime. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/URLResponseTime.html
Wolfram Language. (2017). URLResponseTime. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/URLResponseTime.html
BibTeX
@misc{reference.wolfram_2025_urlresponsetime, author="Wolfram Research", title="{URLResponseTime}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/URLResponseTime.html}", note=[Accessed: 24-March-2025
]}
BibLaTeX
@online{reference.wolfram_2025_urlresponsetime, organization={Wolfram Research}, title={URLResponseTime}, year={2017}, url={https://reference.wolfram.com/language/ref/URLResponseTime.html}, note=[Accessed: 24-March-2025
]}