Pharma

Search pharmaceutical compounds

Find pharmaceutical compounds either by target characteristics (the −4…+4 scale) or by example drugs you already know. Provide exactly one of examples or preferences. Results are ranked by similarity to the request.

post/api/v1/pharma/search

Request body

examplesstring[]

Known drug names to find similar compounds for (fuzzy-matched). 1–50 entries.

preferencesobject

Map of characteristic name to desired value on the −4…+4 scale. Omit a characteristic to ignore it. Use GET /api/v1/pharma/characteristics for the available names.

limitinteger

Max results (1–100, default 20).

include_characteristicsboolean

Include each result's characteristic scores in the response.

Example request

{
  "examples": [
    "aspirin",
    "ibuprofen"
  ],
  "preferences": {
    "Neuroactive": 3,
    "Immunoactive": -2
  }
}

Response

Ranked compound recommendations (pass-through from Moore Metrics).

dataobject