> For the complete documentation index, see [llms.txt](https://doc.vapi.co/tr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.vapi.co/tr/en/tr-turkey-datasets-and-api-reference/medicines/drug-search-1.md).

# Drug Search

### Endpoint: /drugs

[API URL](/tr/en/getting-started/api-url.md)

### Request Method: <mark style="color:green;">GET</mark>

### Header Parameter

<table><thead><tr><th width="154">parameter</th><th width="138">type</th><th>definition</th></tr></thead><tbody><tr><td>Authorization</td><td>string</td><td>Bearer &#x3C;API Key><a data-mention href="#curl-istek-oernegi">#curl-istek-oernegi</a> <a data-mention href="/tr/en/getting-started/identity-verfication.md">Identity Verfication</a></td></tr></tbody></table>

### Request Parameters

<table><thead><tr><th width="153">parameter</th><th width="140">type</th><th width="383">definition</th><th>compulsory</th></tr></thead><tbody><tr><td>name</td><td>string</td><td>Aratılmak istenen isim ilacın ismi. Girilen değer ilaç isminin başlangıcından itibaren aranır</td><td>no</td></tr><tr><td>page</td><td>integer</td><td>Page number <a data-mention href="/tr/en/getting-started/response-structure.md">Response Structure</a></td><td>no</td></tr><tr><td>per-page</td><td>integer</td><td>The number of records to return per page. Upper limit is 200.  <a data-mention href="/tr/en/getting-started/response-structure.md">Response Structure</a></td><td>no</td></tr></tbody></table>

### Response Parameter

The drug list can be viewed under the [Drug List](/tr/en/tr-turkey-datasets-and-api-reference/medicines/drug-list.md#cevap-parametreleri) section.

### <mark style="color:blue;">curl</mark> Request example

```
curl --location 'https://api.vapi.co/drugs?name=aspiri' \
--header 'Authorization: Bearer API KEY'
```

### <mark style="color:blue;">postman</mark> Request example

<figure><img src="https://content.gitbook.com/content/yoqXCLsgP4CqhklelIUV/blobs/rkEvbxk3z4IyQTJgjY6w/Screen%20Shot%202024-03-21%20at%2016.13.13.png" alt=""><figcaption></figcaption></figure>

### Response example

```json
{
    "data": [
        {
            "drug": {
                "id": 276,
                "name": "ASPİRİN"
            }
        },
        {
            "drug": {
                "id": 4556,
                "name": "ASPİRİN COMPLEX"
            }
        },
        {
            "drug": {
                "id": 277,
                "name": "ASPİRİN FORTE"
            }
        },
        {
            "drug": {
                "id": 278,
                "name": "ASPİRİN PLUS C"
            }
        }
    ],
    "_links": {
        "self": {
            "href": "https://api.vapi.co/drugs?name=aspiri&page=1&per-page=200"
        },
        "first": {
            "href": "https://api.vapi.co/drugs?name=aspiri&page=1&per-page=200"
        },
        "last": {
            "href": "https://api.vapi.co/drugs?name=aspiri&page=1&per-page=200"
        }
    },
    "_meta": {
        "totalCount": 4,
        "pageCount": 1,
        "currentPage": 1,
        "perPage": 200
    },
    "success": true
}
```
