The
rq.response object provides access to all details of the API response in your Requestly scripts. You can use these properties and methods primarily in post-response scripts to process, validate, and extract data from API responses.
Properties and Methods
rq.response.body
The body of the response as a string.
Example:
rq.response.responseTime
The time taken by the request to complete, in milliseconds.
Example:
rq.response.headers
An list of header rows each having key, value for each custom header you create.
Example:

