Skip to content

Gosset SDK โ€‹

Use Gosset data and predictions in Python applications, notebooks and automated workflows. The SDK and CLI use the same data API, so you can turn an interactive CLI query into a repeatable script.

Choose a starting point โ€‹

GoalGuide
Install the package and connect your accountGetting started
Query drugs, trials, companies, deals, news and conference abstractsProgrammatic data access
Predict trial progression from an NCT ID or trial parametersPTRS predictions
Combine trial predictions or find similar V4 trialsPTRS programs and similarity
Look up SDK method signatures and PTRS endpointsSDK and PTRS reference
Every REST endpoint, filter and response fieldREST API reference
See what changed recently, and what is comingWhat's new ยท Coming next

A first query โ€‹

python
from gosset import GossetClient

with GossetClient() as client:
    page = client.query(
        "drugs",
        where={"field": "target", "op": "is", "value": "TL1A"},
        fields=["drug_id", "name", "phase", "developers"],
        limit=10,
    )
    for drug in page["results"]:
        print(drug["name"], drug["phase"])

Set GOSSET_API_KEY before running the example. Your account determines which data and prediction services are available.

Gosset developer documentation