Skip to main content
Python
import requests

url = 'https://api.simplex.sh/search_drugs'
headers = {
    'X-API-Key': 'your_api_key_here'
}
params = {
    'query': 'wegovy 1mg'
}

response = requests.get(url, headers=headers, params=params)
result = response.json()
for match in result['matches']:
    print(match['full_name'])
{
  "succeeded": true,
  "query": "<string>",
  "matches": [
    {
      "full_name": "<string>"
    }
  ]
}

Authorizations

X-API-Key
string
header
required

Simplex API Key

Query Parameters

query
string
required

Partial or full drug name to search for (e.g. "wegovy", "zepbound 5mg", "mounjaro auto-injectors"). Matched case-insensitively with exact > prefix > substring > token/fuzzy ranking.

limit
integer
default:10

Maximum number of matches to return (1-50). Defaults to 10.

Required range: 1 <= x <= 50

Response

200 - application/json

Search drugs response

succeeded
boolean
required

Whether the search executed successfully.

query
string
required

Echo of the query that was searched.

matches
object[]
required

Ranked list of matching drugs (best match first). Empty array if no match.