# Crawled Download Pdf&#x20;

## Get Crawled Pdf

<mark style="color:blue;">`GET`</mark> `https://secctrl.tutelar.io/api/v1/web-crawling/get-crawl-results?case_id=<caseId>&download=pdf`

{% tabs %}
{% tab title="401: Unauthorized " %}
{ "message": "Invalid authentication credentials" }
{% endtab %}
{% endtabs %}

#### Query Parameters

| Name                                       | Type   | Description                                                                                          |
| ------------------------------------------ | ------ | ---------------------------------------------------------------------------------------------------- |
| case\_id<mark style="color:red;">\*</mark> | String | You need to provide the website Case ID that you already received in the Initiate Crawl Response API |
| download                                   | String | You need to provide the download=pdf as a parameter                                                  |
|                                            |        |                                                                                                      |

**Sample response**

{% tabs %}
{% tab title="200: OK " %}

```
Content-Type: application/pdf

Complete data stream of the file contents.
```

{% endtab %}

{% tab title="202: Accepeted" %}

```json
{
  "success": true,
  "code": "4999",
  "message": "The PDF download for caseId - <caseId> is in progress. Please try again after some time!",
  "data": {}
}
```

{% endtab %}

{% tab title="422: Unprocessable Entity " %}

```json
{
    "success": false,
    "code": "4998",
    "message": "Please provide case id",
    "data": {}
}

{
    "success": false,
    "code": "4998",
    "message": "Something went wrong, while generating pdf donwload",
    "data": {}
}
```

{% endtab %}
{% endtabs %}

**Success response**

```json
Complete data stream of the file contents. 
```

**In progress response**

```json
{
  "success": true,
  "code": "4999",
  "message": "The PDF download for caseId - <caseId> is in progress. Please try again after some time!",
  "data": {}
}
```

**Failure response**

```json
{
    "success": false,
    "code": "4998",
    "message": "Please provide case id",
    "data": {}
}

{
    "success": false,
    "code": "4998",
    "message": "Something went wrong, while generating pdf donwload",
    "data": {}
}

```
