> 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.md).

# Drug Search

### Endpoint: /products

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

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

### Header Parameters

<table><thead><tr><th width="154">parameter</th><th width="114">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 Parameter

<table><thead><tr><th width="153">parameter</th><th width="140">type</th><th width="367">definition</th><th>compulsory</th></tr></thead><tbody><tr><td>name</td><td>string</td><td>The name to be searched for is the name of the drug. The entered value is searched for starting from the beginning of the drug name.</td><td>no</td></tr><tr><td>barcode</td><td>string</td><td>barcode to be search</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 be included on a page. The upper limit is 200. <a data-mention href="/tr/en/getting-started/response-structure.md">Response Structure</a></td><td>no</td></tr><tr><td>drugtype</td><td>integer</td><td>Drug type ID  <a data-mention href="/tr/en/tr-turkey-datasets-and-api-reference/medicines/drug-type.md">Drug Type</a></td><td>no</td></tr></tbody></table>

### Response Parameter

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

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

Name search example:&#x20;

<pre><code><strong>curl --location 'https://api.vapi.co/products?name=aspiri' \
</strong>--header 'Authorization: Bearer &#x3C;API Anahtarı>'                                        
</code></pre>

**Barcode search example:**

```
curl --location 'https://api.vapi.co/products?barcode=8699546010011' \
--header 'Authorization: Bearer <API Anahtarı>'   
```

**Drug type search result:**

```
curl --location 'https://api.vapi.co/products?drugtype=1' \
--header 'Authorization: Bearer <API Anahtarı>'   
```

**Name ve barcode search example:**&#x20;

<pre><code><strong>curl --location 'https://api.vapi.co/products?name=aspiri&#x26;barcode=8699546010011' \
</strong>--header 'Authorization: Bearer &#x3C;API Anahtarı>'
</code></pre>

Search example by name, barcode, and drug type:

<pre><code><strong>curl --location 'https://api.vapi.co/products?drugtype=1&#x26;name=aspiri&#x26;barcode=8699546010011' \
</strong>--header 'Authorization: Bearer &#x3C;API Anahtarı>'   
</code></pre>

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

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

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

### Response example

```json
{
    "data": [
        {
            "product": {
                "id": 10008,
                "name": "ASPİRİN COMPLEX Oral Süspansiyon İçin Granül İçeren Saşe 500 mg/30 mg 10 saşelik ambalaj"
            },
            "drug": {
                "id": 4556,
                "name": "ASPİRİN COMPLEX"
            },
            "drugform": {
                "id": 7873,
                "name": "Oral Süspansiyon İçin Granül İçeren Saşe 500 mg/30 mg"
            },
            "barcodes": [
                {
                    "barcode": "8699546241231",
                    "skrsStatus": "Aktif"
                }
            ],
            "published": true
        },
        {
            "product": {
                "id": 10009,
                "name": "ASPİRİN COMPLEX Oral Süspansiyon İçin Granül İçeren Saşe 500 mg/30 mg 20 saşelik ambalaj"
            },
            "drug": {
                "id": 4556,
                "name": "ASPİRİN COMPLEX"
            },
            "drugform": {
                "id": 7873,
                "name": "Oral Süspansiyon İçin Granül İçeren Saşe 500 mg/30 mg"
            },
            "barcodes": [
                {
                    "barcode": "8699546241248",
                    "skrsStatus": "Aktif"
                }
            ],
            "published": true
        },
        ...
    ],
    "_links": {
        "self": {
            "href": "https://api.vapi.co/products?name=aspiri&page=1&per-page=200"
        },
        "first": {
            "href": "https://api.vapi.co/products?name=aspiri&page=1&per-page=200"
        },
        "last": {
            "href": "https://api.vapi.co/products?name=aspiri&page=1&per-page=200"
        }
    },
    "_meta": {
        "totalCount": 6,
        "pageCount": 1,
        "currentPage": 1,
        "perPage": 200
    },
    "success": true
}
```
