ultimate-api
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
ultimate-api [2020/04/11 12:18] – flack | ultimate-api [2020/07/20 13:41] – flack | ||
---|---|---|---|
Line 6: | Line 6: | ||
You can find in the examples below the full URLs you have to use. | You can find in the examples below the full URLs you have to use. | ||
- | Examples are demonstrated with [[https://github.com/jkbrzt/ | + | Examples are demonstrated with [[https://httpie.org/|HTTPie]]. |
Only the most important request/ | Only the most important request/ | ||
Line 28: | Line 28: | ||
* 100 searches / day | * 100 searches / day | ||
- | For authenticated users: | + | For authenticated users (access token required, see below): |
* 100 searches / minute | * 100 searches / minute | ||
Line 627: | Line 627: | ||
You can notice that you get lower prices but those prices are only valid in the context where you order the compounds together. | You can notice that you get lower prices but those prices are only valid in the context where you order the compounds together. | ||
+ | |||
+ | |||
+ | |||
+ | ===== Quote Request API ===== | ||
+ | |||
+ | == Endpoint: == | ||
+ | < | ||
+ | |||
+ | == Example API request: == | ||
+ | < | ||
+ | echo ' | ||
+ | QWPFQODIGUYSLE-UHFFFAOYSA-N" | ||
+ | </ | ||
+ | |||
+ | Mandatory fields: | ||
+ | * **compounds**: | ||
+ | * list of InChIKeys (which you get from search results for example). For example: < | ||
+ | * list of InChIKey, amount pairs. This is useful if you want to request quote for different amounts. For example: < | ||
+ | * **customer_name**: | ||
+ | * **customer_last_name**: | ||
+ | * **delivery_country**: | ||
+ | |||
+ | |||
+ | Optional fields: | ||
+ | * **customer_email**: | ||
+ | * **amount**: Amount per molecule (mg). (default: 1) | ||
+ | * **currency**: | ||
+ | |||
+ | |||
+ | |||
+ | == Example request: === | ||
+ | < | ||
+ | POST / | ||
+ | Accept: application/ | ||
+ | Accept-Encoding: | ||
+ | Authorization: | ||
+ | Content-Type: | ||
+ | |||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | ] | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | == Example response: === | ||
+ | < | ||
+ | HTTP/1.1 201 CREATED | ||
+ | Allow: GET, POST, HEAD, OPTIONS | ||
+ | Content-Type: | ||
+ | |||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | </ | ||
+ | |||
+ |
ultimate-api.txt · Last modified: 2021/05/25 14:27 by flack