> 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/alternatif-ilaclar.md).

# Alternatif İlaçlar

### Endpoint: /alternatives

[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 Parameters

<table><thead><tr><th width="153">parameter</th><th width="110">type</th><th width="367">definition</th><th>compulsory</th></tr></thead><tbody><tr><td>id</td><td>integer</td><td>The unique product ID assigned to the drug. This information can be retrieved from the id field in the /products endpoint.</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 Parameters

#### <mark style="color:green;">data</mark> [Response Structure](/tr/en/getting-started/response-structure.md)

<table><thead><tr><th width="232">parameter</th><th width="222">type</th><th>definition</th></tr></thead><tbody><tr><td>product</td><td>productList</td><td><a data-mention href="#productlist">#productlist</a></td></tr><tr><td>alternatives</td><td>productList[]</td><td><a data-mention href="#productlist">#productlist</a></td></tr></tbody></table>

#### <mark style="color:green;">productList</mark>

<table><thead><tr><th width="126">parameter</th><th width="123">type</th><th>definition</th></tr></thead><tbody><tr><td>product</td><td>product </td><td><a data-mention href="#product">#product</a></td></tr><tr><td>drug</td><td>drug </td><td><a data-mention href="#drug">#drug</a></td></tr><tr><td>drugform</td><td>drug </td><td><a data-mention href="#drugform">#drugform</a></td></tr><tr><td>barcodes</td><td>barcodes </td><td><a data-mention href="#barcodes">#barcodes</a></td></tr><tr><td>published</td><td>boolean</td><td><mark style="color:green;"><strong>true</strong></mark> = For cases where the product and its information are actively published.<br><mark style="color:red;"><strong>false</strong></mark> = For cases where the product and its information have been unpublished for various reasons (company request, regulations, erroneous records, etc.).</td></tr></tbody></table>

#### <mark style="color:green;">product</mark>

<table><thead><tr><th width="137">parametre</th><th width="105">tipi</th><th>açıklama</th></tr></thead><tbody><tr><td>id</td><td>integer</td><td>product unique id</td></tr><tr><td>name</td><td>string</td><td><p>Product name (constructed in the format: drug + drug form + product).</p><p></p><p><img src="https://content.gitbook.com/content/yoqXCLsgP4CqhklelIUV/blobs/EUH0b4O85R6hDLSJpl5t/image.png" alt="" data-size="original"></p><p> </p></td></tr></tbody></table>

#### <mark style="color:green;">drug</mark>

<table><thead><tr><th width="137">parametre</th><th width="105">tipi</th><th>açıklama</th></tr></thead><tbody><tr><td>id</td><td>integer</td><td>The ID of the drug associated with the product</td></tr><tr><td>name</td><td>string</td><td><p>the name of drug</p><p><br>For example:</p><p>"CALPOL Suspension 120 mg/5 ml 150 ml bottle"</p><p>for</p><p><mark style="color:red;">drug: CALPOL</mark></p><p><img src="https://content.gitbook.com/content/yoqXCLsgP4CqhklelIUV/blobs/EUH0b4O85R6hDLSJpl5t/image.png" alt="" data-size="original"></p><p> </p></td></tr></tbody></table>

#### <mark style="color:green;">drugform</mark>

<table><thead><tr><th width="131">parametre</th><th width="125">tipi</th><th>açıklama</th></tr></thead><tbody><tr><td>id</td><td>integer</td><td>id of the drugform of the product</td></tr><tr><td>name</td><td>string</td><td><p>the name of drug form</p><p></p><p>For example:</p><p>"CALPOL Suspension 120 mg/5 ml 150 ml bottle"</p><p>for</p><p><mark style="color:red;">drugform: Süspansiyon 120 mg/5 ml</mark><br><img src="https://content.gitbook.com/content/yoqXCLsgP4CqhklelIUV/blobs/lwtR1K2s6hKAIyPmVGdE/image.png" alt=""></p></td></tr></tbody></table>

#### <mark style="color:green;">barcodes</mark>

<table><thead><tr><th width="134">parametre</th><th width="123">tipi</th><th>açıklama</th></tr></thead><tbody><tr><td>barcode</td><td>integer</td><td>The barcode of the product. It can be 12 or 13 digits.</td></tr><tr><td>skrsStatus</td><td>string</td><td><p>The SKRS status associated with the barcode. It describes the barcode defined in the Health Coding Reference Server (SKRS) and its current status. The returned value will be active, passive, or null (unlisted).</p><p>A drug's barcode may change under certain conditions. For this reason, a single drug can have multiple barcodes (the same drug may exist in the market under different barcodes), and each barcode may have a different SKRS status. </p></td></tr></tbody></table>

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

```
curl --location 'https://api.vapi.co/alternatives' \
--header 'Authorization: Bearer <API Anahtarı>'
```

```
curl --location 'https://api.vapi.co/alternatives/802' \
--header 'Authorization: Bearer <API Anahtarı>'
```

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

**List Query**

<figure><img src="https://content.gitbook.com/content/yoqXCLsgP4CqhklelIUV/blobs/t6foJI8ZbjZgBzv1kIAK/Screen%20Shot%202024-04-15%20at%2016.07.04.png" alt=""><figcaption></figcaption></figure>

**Single Query**

<figure><img src="https://content.gitbook.com/content/yoqXCLsgP4CqhklelIUV/blobs/sN611uZDYjleGHJ9tBht/Screen%20Shot%202024-04-15%20at%2016.32.48.png" alt=""><figcaption></figcaption></figure>

### Response Ezample

**List Result**

```json
{
    "data": [
        {
            "product": {
                "id": 591,
                "name": "VECTAVİR Krem %1 2 g'lık tüp"
            },
            "alternatives": [
                {
                    "product": {
                        "id": 591,
                        "name": "VECTAVİR Krem %1 2 g'lık tüp"
                    },
                    "drug": {
                        "id": 3432,
                        "name": "VECTAVİR"
                    },
                    "drugform": {
                        "id": 5623,
                        "name": "Krem %1"
                    },
                    "barcodes": [
                        {
                            "barcode": "8692255000915",
                            "skrsStatus": "Pasif"
                        },
                        {
                            "barcode": "8699504350203",
                            "skrsStatus": "Pasif"
                        },
                        {
                            "barcode": "8692255002186",
                            "skrsStatus": "Aktif"
                        }
                    ],
                    "published": true
                }
            ]
        },
        {
            "product": {
                "id": 10818,
                "name": "MİLK THİSTLE Kapsül 50 kapsüllük ambalaj"
            },
            "alternatives": []
        },
        {
            "product": {
                "id": 999,
                "name": "CONVULEX CR Tablet 300 mg 50 tabletlik ambalaj"
            },
            "alternatives": [
                {
                    "product": {
                        "id": 998,
                        "name": "CONVULEX CR Tablet 500 mg 50 tabletlik ambalaj"
                    },
                    "drug": {
                        "id": 14825,
                        "name": "CONVULEX CR"
                    },
                    "drugform": {
                        "id": 1271,
                        "name": "Tablet 500 mg"
                    },
                    "barcodes": [
                        {
                            "barcode": "8699510030168",
                            "skrsStatus": "Pasif"
                        }
                    ],
                    "published": true
                },
                ...
            ]
        },
        ...
    ],
    "_links": {
        "self": {
            "href": "https://api.vapi.co/alternatives?page=1&per-page=200"
        },
        "first": {
            "href": "https://api.vapi.co/alternatives?page=1&per-page=200"
        },
        "last": {
            "href": "https://api.vapi.co/alternatives?page=1&per-page=200"
        }
    },
    "_meta": {
        "totalCount": 66,
        "pageCount": 1,
        "currentPage": 1,
        "perPage": 200
    },
    "success": true
}
```

**Single Result**

```json
{
    "data": {
        "product": {
            "id": 802,
            "name": "MABTHERA İV İnf. İçin Konsantre Çözelti İçeren Flakon 100 mg/10 ml 2x10 ml'lik flakon"
        },
        "alternatives": [
            {
                "product": {
                    "id": 29137,
                    "name": "NOVEX İV İnfüzyonluk Çözelti İçin Konsantre 500 mg/50 ml 1x50 ml'lik flakon"
                },
                "drug": {
                    "id": 17202,
                    "name": "NOVEX"
                },
                "drugform": {
                    "id": 21544,
                    "name": "İV İnfüzyonluk Çözelti İçin Konsantre 500 mg/50 ml"
                },
                "barcodes": [
                    {
                        "barcode": "8699514760054",
                        "skrsStatus": null
                    }
                ],
                "published": true
            },
            {
                "product": {
                    "id": 29956,
                    "name": "RUXİENCE İV İnfüzyonluk Çözelti Hazırlamak İçin Konsantre 500 mg/50 ml 1x50 ml'lik flakon"
                },
                "drug": {
                    "id": 17689,
                    "name": "RUXİENCE"
                },
                "drugform": {
                    "id": 22213,
                    "name": "İV İnfüzyonluk Çözelti Hazırlamak İçin Konsantre 500 mg/50 ml"
                },
                "barcodes": [
                    {
                        "barcode": "8681308771049",
                        "skrsStatus": "Aktif"
                    }
                ],
                "published": true
            },
            {
                "product": {
                    "id": 803,
                    "name": "MABTHERA İV İnf. İçin Konsantre Çözelti İçeren Flakon 500 mg/50 ml 1x50 ml'lik flakon"
                },
                "drug": {
                    "id": 1940,
                    "name": "MABTHERA"
                },
                "drugform": {
                    "id": 3212,
                    "name": "İV İnf. İçin Konsantre Çözelti İçeren Flakon 500 mg/50 ml"
                },
                "barcodes": [
                    {
                        "barcode": "8699505763378",
                        "skrsStatus": "Aktif"
                    }
                ],
                "published": true
            },
            {
                "product": {
                    "id": 16031,
                    "name": "MABTHERA SC Enj. İçin Çözelti İçeren  Flakon 1400 mg/11.7 ml 1x11.7 ml'lik flakon"
                },
                "drug": {
                    "id": 1940,
                    "name": "MABTHERA"
                },
                "drugform": {
                    "id": 12724,
                    "name": "SC Enj. İçin Çözelti İçeren  Flakon 1400 mg/11.7 ml"
                },
                "barcodes": [
                    {
                        "barcode": "8699505772813",
                        "skrsStatus": "Aktif"
                    }
                ],
                "published": true
            },
            {
                "product": {
                    "id": 21396,
                    "name": "REDDİTUX İV İnf. Çöz. Haz. İçin Konsantre Flakon 500 mg/50 ml 1x50 ml'lik flakon"
                },
                "drug": {
                    "id": 12270,
                    "name": "REDDİTUX"
                },
                "drugform": {
                    "id": 14892,
                    "name": "İV İnf. Çöz. Haz. İçin Konsantre Flakon 500 mg/50 ml"
                },
                "barcodes": [
                    {
                        "barcode": "8680885576023",
                        "skrsStatus": "Aktif"
                    }
                ],
                "published": true
            },
            {
                "product": {
                    "id": 24578,
                    "name": "TRUXİMA İV İnfüzyon İçin Konsantre İçeren Flakon 500 mg/50 ml 1x50 ml'lik flakon"
                },
                "drug": {
                    "id": 13998,
                    "name": "TRUXİMA"
                },
                "drugform": {
                    "id": 17553,
                    "name": "İV İnfüzyon İçin Konsantre İçeren Flakon 500 mg/50 ml"
                },
                "barcodes": [
                    {
                        "barcode": "8680614140129",
                        "skrsStatus": "Aktif"
                    }
                ],
                "published": true
            }
        ]
    },
    "success": true
}
```
