# 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": {}
}

```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tutelar.io/tutelar-api-document/web-crawling/crawled-download-pdf.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
