---
title: "Nearest known drugs, with how IVIVE fared on each"
method: POST
path: "/api/prediction/similarity"
tags: ["prediction"]
---

# Nearest known drugs, with how IVIVE fared on each

`POST /api/prediction/similarity`

## Request

- Base URL: `https://api.ivive.app`
- URL: `https://api.ivive.app/api/prediction/similarity`
- Auth: OAuth 2 (password, token URL `/api/auth/login`)

Most similar reference drugs (Tanimoto, Morgan r2) with observed and IVIVE-predicted plasma CL.

## Request body

- SimilarityRequest
  - `smiles` string, required
  - `n` integer

## Response `200`

Successful Response

- SimilarityResponse: Values passed on from public datasets; sources and licences: https://ivive.app/sources.
  - `neighbours` Neighbour[], required
    - `name` string, required
    - `smiles` string, required
    - `similarity` number, required
    - `cl_obs` number, required: Observed plasma CL, mL/min/kg.
    - `cl_pred_ws` number, required: IVIVE plasma CL from the drug's measured inputs, well-stirred.
    - `cl_pred_pt` number, required: Same, parallel-tube.
    - `source` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/ivive/apis/ivive-app-api.md) · [All operations](https://skmtc.dev/ivive/apis/ivive-app-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ivive/apis/ivive-app-api/revisions/a67615eaf584?raw)
