---
title: "B053 Drug ID search"
method: POST
path: "/synapse/drug/autocomplete"
tags: ["Biopharmaceutical Dictionary Data"]
---

# B053 Drug ID search

`POST /synapse/drug/autocomplete`

## Request

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

Input the drug name and get the drug ID

## Request body

- B053DrugAutocompleteRequest
  - `prefix` string, required: keywords
  - `limit` integer, required: limit

## Response `200`

Successful b053 drug id search response.

- B053DrugAutocompleteResponse
  - `data` B053DrugAutocompleteDrugAutocompleteResponseDto[]: response data
    - `drug_id` string: ID
    - `display_name` B053DrugAutocompleteCommonName[]: Name
      - `lang` string: Language
      - `name` string: Drug,Target,Organization,Disease,Country/Location,DICT,Mechanism Action Name
  - `status` boolean, required: Status
  - `error_msg` string: Error Message
  - `error_code` integer, required: Error Code

## Other responses

- `201`: Created.
- `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)
