open-api
  1. Services
open-api
  • Introduction
  • Making requests
  • Services
    • Automatic Image Recognition
      POST
    • Single Molecule Recognition
      POST
    • Multiple Molecules Recognition
      POST
    • Table Recognition
      POST
    • User Consumption Records
      GET
  1. Services

Single Molecule Recognition

POST
http://124.71.184.180:9001/open-api/single_molecule
Upload a picture containing one molecule, and the system will give the identification result.

Request

Header Params
X-Authorization-With
stringΒ 
required
token authentication (character length is 32)
Example:
RiXhvDPYFZvjyKbvLqakYHiYywhIDqhF
Body Params multipart/form-data
file
fileΒ 
required
picture file (png, jpg)

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://124.71.184.180:9001/open-api/single_molecule' \
--header 'X-Authorization-With: RiXhvDPYFZvjyKbvLqakYHiYywhIDqhF' \
--form 'file=@""'

Responses

🟒200Success
application/json
Body
code
integerΒ 
status code
required
status code
msg
stringΒ 
operation information
required
operation information
data
objectΒ 
data
required
returned data results
smiles_list
array[string]
smiles array
required
recognized smiles list information
mol_list
array[string]
mol array
required
recognized mol list information
Example
{
    "code": 200,
    "msg": "Success",
    "data": {
        "smiles_list": [
            "[R1]/C1=C2/C3=CC(=CC=C3N1[R2])[A]C([R10])C([Y][W])C(=O)N1[X4]C([X1]CC1)C(=O)OCC(C)(C)C2"
        ],
        "mol_list": [
            "\n     RDKit          2D\n\n 33 36  0  0  0  0  0  0  0  0999 V2000\n    0.7084   -7.6355    0.0000 C   0  0  0  0  0  1  0  0  0  0  0  0\n    1.7236   -7.6364    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0\n    2.2784   -6.8221    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0\n    3.1850   -7.1227    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0\n    4.0517   -6.6162    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0\n    4.9103   -7.1297    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0\n    4.9096   -8.1471    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0\n    4.0536   -8.6497    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0\n    3.1934   -8.1468    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0\n    2.2788   -8.4526    0.0000 N   0  0  0  0  0  0  0  0  0  0  0  0\n    1.9278   -9.7686    0.0000 C   0  0  0  0  0  1  0  0  0  0  0  0\n    6.5810   -5.9016    0.0000 C   0  0  0  0  0  2  0  0  0  0  0  0\n    6.5864   -4.0736    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0\n    7.9951   -5.0890    0.0000 C   0  0  0  0  0  1  0  0  0  0  0  0\n    7.4398   -3.5661    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0\n    8.3009   -4.0699    0.0000 C   0  0  0  0  0  2  0  0  0  0  0  0\n    9.3623   -4.1243    0.0000 C   0  0  0  0  0  1  0  0  0  0  0  0\n    7.4419   -2.5970    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0\n    8.3081   -2.0402    0.0000 O   0  0  0  0  0  0  0  0  0  0  0  0\n    6.5805   -2.0335    0.0000 N   0  0  0  0  0  0  0  0  0  0  0  0\n    5.7686   -2.5945    0.0000 C   0  0  0  0  0  2  0  0  0  0  0  0\n    4.9128   -2.0322    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0\n    4.9139   -1.0201    0.0000 C   0  0  0  0  0  2  0  0  0  0  0  0\n    5.7708   -0.5067    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0\n    6.5780   -1.0737    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0\n    4.0547   -2.6001    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0\n    3.1921   -2.0332    0.0000 O   0  0  0  0  0  0  0  0  0  0  0  0\n    4.0540   -3.5627    0.0000 O   0  0  0  0  0  0  0  0  0  0  0  0\n    3.1854   -4.0768    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0\n    3.0861   -5.0914    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0\n    3.6927   -6.0037    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0\n    4.2047   -4.8373    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0\n    2.1722   -5.8547    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0\n  1  2  1  0\n  2  3  2  0\n  3  4  1  0\n  4  5  2  0\n  5  6  1  0\n  6  7  2  0\n  7  8  1  0\n  8  9  2  0\n  9  4  1  0\n  9 10  1  0\n 10  2  1  0\n 10 11  1  0\n  6 12  1  0\n 13 12  1  0\n 13 14  1  0\n 13 15  1  0\n 15 16  1  0\n 16 17  1  0\n 15 18  1  0\n 18 19  2  0\n 18 20  1  0\n 20 21  1  0\n 22 21  1  0\n 22 23  1  0\n 23 24  1  0\n 24 25  1  0\n 25 20  1  0\n 22 26  1  0\n 26 27  2  0\n 26 28  1  0\n 28 29  1  0\n 29 30  1  0\n 30 31  1  0\n 30 32  1  0\n 30 33  1  0\n 33  3  1  0\nM  RAD  8   1   2  11   2  12   3  14   2  16   3  17   2  21   3  23   3\nA    1\nR1\nA   11\nR2\nA   12\nA\nA   14\nR10\nA   16\nY\nA   17\nW\nA   21\nX4\nA   23\nX1\nM  END\n"
        ]
    }
}
🟠405Invalid user
🟠401Insufficient permissions
🟠402Invalid request
🟠400Illegal request
🟠403Request limits
🟠406Invalid file
Previous
Automatic Image Recognition
Next
Multiple Molecules Recognition
Built with