---
title: "P020 PDF"
method: GET
path: "/basic-patent-data/pdf-data"
tags: ["Patent Basic Data"]
---

# P020 PDF

`GET /basic-patent-data/pdf-data`

## Request

- Base URL: `https://connect.patsnap.com`
- URL: `https://connect.patsnap.com/basic-patent-data/pdf-data`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/patsnap/apis/patsnap-open-platform-api/docs/basic-patent-data/pdf-data/get.ts> (a function with typed inputs; its response is checked against the schema)

Receive patent PDF document pathway by patent_id or patent_number.

## Query parameters

- `patent_id` string: patent_id
- `patent_number` string: patent_number
- `replace_by_related` integer: When the PDF of current patent is unavailable, whether to replace it with the PDF of its family patent？default not to replace: 1. Yes 0: No

## Response `200`

Successful p020 pdf response.

- P020BasicPatentDataPdfDataResponse
  - `data` P020BasicPatentDataPdfDataPatentPdfResponse[]: response data
    - `pn` string: patent number
    - `pdf` P020BasicPatentDataPdfDataPdfDocument
      - `path` string: pdf path
    - `patent_id` string: patent id
    - `pn_related` string: patent number of related patent (provided only if the substitute is made using the text of the same family patent)
  - `status` boolean, required: Status
  - `error_msg` string: Error Message
  - `error_code` integer, required: Error Code

## Other responses

- `401`: Unauthorized.
- `403`: Forbidden.
- `404`: Not Found.

---

[API](https://skmtc.dev/patsnap/apis/patsnap-open-platform-api.md) - [All operations](https://skmtc.dev/patsnap/apis/patsnap-open-platform-api/llms.txt) - [OpenAPI document](https://skmtc.dev/patsnap/apis/patsnap-open-platform-api/revisions/c2264a0de595?raw)
