Batch
Run a batch
POST/batch
1 credit per item
Several operations in one call: up to 25 items on Starter, 100 on Pro and Business. Free has no batch. Each item uses one credit; the call uses one rate-limit slot. Items fail on their own: check ok on each result.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
lang | query | "en" | "de" | "fr" | Language of text fields. Free: en.Default: en |
Request body
| Name | Type | Description |
|---|---|---|
| items | object[] | |
| items[].op | "toxicity" | "care" | "resolve" | "plant" | |
| items[].name | string | |
| items[].id | string | |
| items[].family | string |
Response fields
| Name | Type | Description |
|---|---|---|
| data | object | |
| data.results | object[] | |
| data.results[].index | integer | |
| data.results[].ok | boolean | |
| data.results[].data | Same as the single endpoint. | |
| data.results[].error | object | |
| data.results[].error.code | string | |
| data.results[].error.message | string | |
| meta | object | |
| meta.plan | "free" | "starter" | "pro" | "business" | |
| meta.lang | "en" | "de" | "fr" | |
| meta.dataVersion | string | Data release that answered. |
| meta.credits | object[] | Data credits to show, e.g. Catalogue of Life (CC BY 4.0). |
| meta.credits[].name | string | |
| meta.credits[].url | string | |
| meta.credits[].license | string | |
| meta.credits[].for | string | |
| meta.attribution | object | Free plan: the attribution you must display. |
| meta.attribution.required | boolean | |
| meta.attribution.text | string | |
| meta.attribution.url | string | |
| meta.creditsUrl | string | Where the full credits are listed (the credits page; JSON at GET /credits). |
Responses
- 200One result per item, in order.
- 400A parameter is missing or invalid.
- 401The API key is missing, not valid or revoked.
- 403Not included in your plan: German or French on Free (
plan_lang), or batch on Free (plan_batch). Or the key is not active yet: its account has not accepted the Terms of Service in the dashboard (terms_not_accepted). - 429Too many requests per second (
rate_limited) or no credits left in this period (quota_exceeded). Wait forRetry-Afterseconds.