>>> import requests
>>> from pprint import pprint
>>> r = requests.get('https://platform-api.opentargets.io/v3/platform/public/search',
params={"q":"NOD2","size":1})
>>> pprint(r.json())
https://docs.targetvalidation.org/tutorials/api-tutorials/find-the-id-of-a-target-or-disease
Find the ID of a target or disease
docs.targetvalidation.org
https://opentargets.readthedocs.io/en/stable/index.html#installation
opentargets-py - Python client for the Open Targets Platform REST API — opentargets 3.1.15 documentation
This client allows you to query the API automatically handling all the calls and returning data in a pythonic way. This client is supported for Python 3.5 and higher. Works with lower versions (including python 2.7) on a best effort basis. Take a look at t
opentargets.readthedocs.io
pip install opentargets==3.1.14