[BETA VERSION] API

The MAD API enables programmatic access to MAD in unique and advanced ways. We design a REST API that allows users to access structures and topologies of molecules parameterized with the Martini coarse-grained force field. This API allows users to download files and retrieve information from the database, making it easy to access and work with the data.
The advantages of having this API include: Here is a notebook detailing an example of the use of api for pedagogical purposes( Download)

Techical part

In our case, we only prodivide the GET method to download molecule files or have forcefield information. This is the format of the route :
https://mad.ibcp.fr/api/molecule/get/[forcefield]/[molecule_name][.extention]/[version]
Parameter Type Default Description
Forcefield string None Which forcefield do you want (exemple : martini22, martini3001)
Molecule name string None Name (Alias) of your molecule (example : POPE)
File type string .zip You can ask for a specific type of file ('.itp', '.gro', '.pdb') or you can download everything in zip format, in this case adds '.zip' or nothing).
Version string 1.0 (Optional) If your molecule has several version you can ask for a specific version.

Exemple