Please use the following web-api within about two thousands times in a day per one research group,
because server resources are very limited.
(This restriction will be relaxed in the near future)
You can visualize a molecular by accessing the following URL.
http://pccdb.org/search_pubchemqc/view_mol/<int:PCCDB-ID>
You can also use the following URL, where only one SMILES representation is used to generated 2D and 3D molecular structures. Here, we do not use any quantum chemistry calculation results. Please note this point.
http://pccdb.org/tools/view_mol_from_smiles/<smiles>
If a SMILES representation contains characters not permitted in URL, please encode it using the "encodeURIComponent()" in Javascript etc. Our "2D conversion tool" may be easy to use this URL, because it automatiically create links for molecules.
You can get several electronic structure properties through Web APIs.
The following Web API return a Json data containing several basic properties, such as PCCDB-ID, Canonical SMILES, HOMO-LUMO gap,
HOMO energy, LUMO energy, Excitation energy, and so on.
http://pccdb.org/search_pubchemqc/get_basic_property/ver0.2/<int:PCCDB-ID>
For example, we can obtain a Json by using "curl" command.
$ curl http://pccdb.org/search_pubchemqc/ver0.2/get_basic_property/1
{
"homo_lumo_gap": 4.512,
"homo_energy": -4.528,
"lumo_energy": -0.016,
"excitation_energy": 3.749,
etc ...
}
If a molecule does not exist in the database, "null (None)" is returned.
$ curl http://pccdb.org/search_pubchemqc/get_basic_property/ver0.2/2
null
For example you can also get a Json data in a Python script.
import requests
res = requests.get("http://pccdb.org/serach_pubchemqc/get_basic_property/ver0.2/1")
if res.status_code==200:
prop_json = res.json()
print prop_json
To get a molecular strucure optmized by the B3LYP/6-31G* method, you can use the following Web API.
http://pccdb.org/search_pubchemqc/get_3D_coords_and_charges/ver0.2/<int:PCCDB-ID>
The Mulliken and Lowdin charges are also obtained from the returned Json.
You can get SDF-format molecular data by using the following Web API.
http://pccdb.org/search_pubchemqc/get_sdf/ver0.2/<int:PCCDB-ID>