Share this page

# Get Trend Reports by ID

## Description

Returns a trend report in PDF format by the specified trend report ID.

## URL

Copy code

    /LoadTest/rest/domains/{domainName}/projects/{projectName}/TrendReports/{ID}/data

## Remarks

The PDF report generated by the API is hard-coded and cannot be configured by the user.

## HTTP Method

GET: Returns a trend report in PDF format.

## Request

Headers:

Content-Length: {length}

Host: {PCServer}

Cookies:

- Version 2020 (or later): LWSSO_COOKIE_KEY={LwssoCookie};

- Versions earlier than 2020: LWSSO_COOKIE_KEY={LwssoCookie};QCSession={QCSessionCookie};

Request Body:

None

## Response

Headers:

None

Cookies:

None

HTML Return Code:

One of the HTTP Return Codes

Upon success, returns HTTP status 200 (OK).

HTML Body:

Upon success, the response will contain the following information:

- The response header Content-Disposition contains the file name in the filename field’s value.
- The body of the request will contain the zipped file data.

Response Example

The following is an example of a response that was captured in proxy: (without the response body that contains the file stream):

    HTTP/1.1 200 OK
    Cache-Control: no-cache
    Pragma: no-cache
    Content-Length: 175211
    Content-Type: application/pdf
    Expires: -1
    Content-Disposition: attachment; filename=Trend1.pdf
    Date: Wed, 25 Nov 2015 16:43:08 GMT

## See Also

Add a Trend Report
Add run to Trend Report and get data by ID
Add run to Trend Report and get data by ID
TrendReports/{ID} XML
Get all Trend Reports
Set Trend Reports Baseline
Get or download Trend Report in XML format/file

Tips to improve your search results... LoadRunner Enterprise REST API Reference LRE REST API All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic(Undefined variable: _rscC_Basic_Variables.VersionLabel)