Kindwise Identification API
The Identification API from Kindwise — 3 operation(s) for identification.
The Identification API from Kindwise — 3 operation(s) for identification.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/kindwise-com:kindwise-com-identification-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Plant.id v3 Identification API
description: 'Documentation for API v2 can be found here. Or see overview of changes between versions. Plant.id is a machine learning-based service to identify indoor plants, wildflowers, trees, grasses, and other plant species from images. Additionally, Plant.id can evaluate the health of plants and detect various diseases, vermins or pests. To use the API you need to get an API key. To use API from **python**, use SDK: kindwise API client. ### How to use this documentation
This is a description of an important part of the API. The specification of the endpoints is given below. In the right column, you can find example calls of these endpoints (on the right you can toggle between different examples). You can also open this documentation directly on postman, where you can see endpoints and examples, and you can also try it out (after providing your API key). More implementation examples can be found here. # Authentication
You should provide the `Api-Key` header with your API key. You can request it here. # Identification request
There are two methods to create a new identification:
1. using `application/json` request - all attributes including images are encoded in json body - see the example
2. using `multipart/form-data` request - attributes are sent in text fields; images are sent as files - see the example
Attributes:
- **`images`**
- `application/json`: a list of strings (required) with one or more images of the plant you want to identify of either:
- image(s) encoded as strings in Base64,
- public URL(s) of images
- `multipart/form-data` - all images in file fields (names of file fields are not important)
- `latitude` - float (optional) - geographic coordinate, increases the identification accuracy
- `longitude` - float (optional) - geographic coordinate, increases the identification accuracy
- `similar_images` - boolean (optional) - if `true`, the model also selects images similar to the provided images for each suggestion
- `custom_id` - int (optional) - a unique identifier, can be used to access the identification results
- `datetime` - str (optional) - to improve results, e.g. for images taken at different seasons, specify the date when the images were taken in ISO format with variable precision (e.g. `2023-06-22` for days or `2023-06-22T11:28` for minutes)
- `health` - str (optional)
- `only` - response contains only health assessment
- `auto` - the health assessment response is included only if a plant is labelled as diseased (`is_healthy=false`). The total credit depends on whether health assessment is returned (**2 credits**) or not (**1 credit**). - `all` - response contains both plant species classification and health assessment; for such identification, **2 credits** are charged (1 for taxa classification and 1 for health assessment)
- `suggestion_filter` - dict (optional) in format `{"classification": "FILTER_NAME (filter examples below)"}` - restricts the output of the model to specified list of classes (region or plant type) and adjusts the probabilities. The lists can be combined with logical operators and parentheses. The lists are available here. Examples:
- Vegetables - `{"classification": "vegetable"}`
- Houseplants and wild plants in Europe - `{"classification": "houseplant OR continent__europe"}`
- Trees in Europe and North America - `{"classification": "(continent__northern_america OR continent__europe) AND tree"}`
- `classification_level` - str (optional) - classification model can give plant identification at 3 levels of taxonomy: genus, species and infraspecies (includes cultivars, subspecies, varieties and trademarks). This attribute allows to adjust which type of taxon is presented in response.'
version: 1.0.0
contact: {}
servers:
- url: https://plant.id
security:
- apiKey: []
tags:
- name: Identification
paths:
/api/v3/identification:
post:
summary: Create identification
description: Send images for identification. See above for description of response and request body.
operationId: createIdentification
parameters:
- name: details
in: query
schema:
type: string
example: common_names,url,description,taxonomy,rank,gbif_id,inaturalist_id,image,synonyms,edible_parts,watering,propagation_methods
description: 'comma separetad list of requested plant details (optional)
see detail description above'
- name: language
in: query
schema:
type: string
example: en
description: "two-letter [ISO 639-1 language code](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (optional, default `en`) - language of localized plant details \ncan be multiple (up to 3), separated by comma - i.e. (`en,de,sv`)"
- name: async
in: query
schema:
type: string
example: 'true'
description: 'boolean (optional) - if `true`: request does not wait for identification to complete and response does not contain `result` section; result can be later retrieved by next endpoint'
requestBody:
content:
application/json:
schema:
type: object
properties:
classification_level:
type: string
images:
type: array
items:
type: string
latitude:
type: number
longitude:
type: number
similar_images:
type: boolean
examples:
Create identification:
value:
classification_level: genus
images:
- https://plant.id/static/oak.jpg
latitude: 49.207
longitude: 16.608
similar_images: true
multipart/form-data:
schema:
type: object
properties:
image1:
type: string
format: binary
latitude:
type: string
example: '49.207'
longitude:
type: string
example: '16.608'
similar_images:
type: string
example: 'true'
responses:
'201':
description: Basic / All details / Multilingual details / With custom_id / With suggestion filter / With custom datetime / Async / Classification and health assessment / Url image / mutlipart/form-data / With cultivars / Raw classification suggestions / Only genus
content:
application/json:
schema:
$ref: '#/components/schemas/Identification'
'401':
description: error - invalid API key
content:
text/plain: {}
'429':
description: error - out of credits
content:
text/plain: {}
tags:
- Identification
/api/v3/identification/{access_token}:
parameters:
- name: access_token
in: path
required: true
schema:
type: string
description: '`access_token` retrieved on identification creation (or provided `custom_id`)'
get:
summary: Retrieve identification
description: 'Can be used to
- retrieve identification result when identification is created with `async=True`
- retrieve past identifications (available for 6 months)
- retrieve identification results with different details or languages'
operationId: retrieveIdentification
parameters:
- name: details
in: query
schema:
type: string
example: common_names,url,description,taxonomy,rank,gbif_id,inaturalist_id,image,synonyms,edible_parts,watering,propagation_methods
description: 'comma separetad list of requested plant details (optional)
see detail description above'
- name: language
in: query
schema:
type: string
example: en
description: two-letter [ISO 639-1 language code](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (optional, default `en`) - language of localized plant details can be multiple (up to 3), separated by comma - i.e. (`en,de,sv`)
responses:
'200':
description: Basic / With custom_id
content:
application/json:
schema:
$ref: '#/components/schemas/Identification'
tags:
- Identification
delete:
summary: Delete identification
operationId: deleteIdentification
responses:
'202':
description: Basic
content:
text/plain: {}
tags:
- Identification
/api/v3/identification/{access_token}/feedback:
parameters:
- name: access_token
in: path
required: true
schema:
type: string
description: '`access_token` retrieved on identification creation (or provided `custom_id`)'
post:
summary: Send feedback
description: 'Can be used to send a user feedback to an identification.
Specifics:
- data must be in the form of JSON
- recommended structure is either `rating` - a number from 0-5 or `comment` - a text comment from the user. Or include both
- We will attach feedback to identification and it will be returned in next retrieve of identification.
Feedback can help us improve our model, so thank you for sending it.'
operationId: sendFeedback
requestBody:
content:
application/json:
schema:
type: object
properties:
comment:
type: string
rating:
type: number
examples:
Send feedback:
value:
comment: Identified poisonous plant, saved my cat! Thanks.
rating: 5
multipart/form-data:
schema:
type: object
properties: {}
responses:
'200':
description: Submit / Retrieve with feedback
content:
application/json:
schema:
type: object
properties:
access_token:
type: string
completed:
type: number
created:
type: number
custom_id: {}
feedback:
type: object
properties:
comment:
type: string
rating:
type: number
input:
type: object
properties:
datetime:
type: string
images:
type: array
items:
type: string
latitude:
type: number
longitude:
type: number
similar_images:
type: boolean
message:
type: string
model_version:
type: string
result:
type: object
properties:
classification:
type: object
properties:
suggestions:
type: array
items:
type: object
properties:
details:
type: object
properties:
entity_id:
type: string
language:
type: string
id:
type: string
name:
type: string
probability:
type: number
similar_images:
type: array
items:
type: object
properties:
citation:
type: string
id:
type: string
license_name:
type: string
license_url:
type: string
similarity:
type: number
url:
type: string
url_small:
type: string
is_plant:
type: object
properties:
binary:
type: boolean
probability:
type: number
threshold:
type: number
sla_compliant_client:
type: boolean
sla_compliant_system:
type: boolean
status:
type: string
'400':
description: error - empty feedback
content:
text/plain: {}
'404':
description: error - wrong access token
content:
text/plain: {}
tags:
- Identification
components:
schemas:
Identification:
type: object
properties:
access_token:
type: string
example: 404GtKcjq7BLtT7
completed:
type:
- number
- 'null'
example: 1690793121.504057
created:
type: number
example: 1690793121.072337
custom_id:
type:
- number
- 'null'
input:
$ref: '#/components/schemas/Input'
model_version:
type: string
example: insect_id:1.0.1
result:
$ref: '#/components/schemas/Result'
sla_compliant_client:
type: boolean
example: true
sla_compliant_system:
type: boolean
example: true
status:
type: string
example: COMPLETED
additionalProperties: false
Input:
type: object
properties:
datetime:
type: string
example: '2023-07-31T08:45:21.072337+00:00'
images:
type: array
items:
type: string
latitude:
type:
- number
- 'null'
example: 49.207
longitude:
type:
- number
- 'null'
example: 16.608
similar_images:
type: boolean
example: true
ValueWithCitation:
type:
- object
- 'null'
properties:
value:
type: string
citation:
type:
- string
- 'null'
license_name:
type: string
license_url:
type: string
additionalProperties: false
Suggestion:
type: object
properties:
id:
type: string
name:
type: string
probability:
type: number
similar_images:
$ref: '#/components/schemas/SimilarImages'
details:
anyOf:
- $ref: '#/components/schemas/Details'
- $ref: '#/components/schemas/DetailsMultipleLanguages'
additionalProperties: false
DiseaseDetails:
type: object
properties:
entity_id:
type: string
language:
type: string
local_name:
type: string
description:
type: string
url:
type:
- string
- 'null'
treatment:
type: object
properties:
chemical:
type: array
items:
type: string
biological:
type: array
items:
type: string
prevention:
type: array
items:
type: string
additionalProperties: false
classification:
type: array
items:
type: string
common_names:
type:
- array
- 'null'
items:
type: string
cause:
type:
- string
- 'null'
additionalProperties: false
Details:
type: object
properties:
entity_id:
type: string
language:
type: string
gbif_id:
type: number
inaturaarray_id:
type: number
rank:
type: string
taxonomy:
$ref: '#/components/schemas/Taxonomy'
common_names:
type:
- array
- 'null'
items:
type: string
description:
$ref: '#/components/schemas/ValueWithCitation'
image:
$ref: '#/components/schemas/ValueWithCitation'
images:
type: array
items:
$ref: '#/components/schemas/ValueWithCitation'
url:
type:
- string
- 'null'
additionalProperties: false
SimilarImages:
type: array
items:
type: object
properties:
id:
type: string
similarity:
type: number
url:
type: string
url_small:
type: string
citation:
type: string
license_name:
type: string
license_url:
type: string
additionalProperties: false
DiseaseSuggestion:
type: object
properties:
id:
type: string
name:
type: string
probability:
type: number
similar_images:
$ref: '#/components/schemas/SimilarImages'
details:
anyOf:
- $ref: '#/components/schemas/DiseaseDetails'
- $ref: '#/components/schemas/DetailsMultipleLanguages'
additionalProperties: false
Result:
type: object
properties:
is_plant:
type: object
properties:
probability:
type: number
threshold:
type: number
binary:
type: boolean
additionalProperties: false
classification:
type: object
properties:
suggestions:
type: array
items:
$ref: '#/components/schemas/Suggestion'
is_healthy:
type: object
properties:
probability:
type: number
threshold:
type: number
binary:
type: boolean
additionalProperties: false
disease:
type: object
properties:
suggestions:
type: array
items:
$ref: '#/components/schemas/DiseaseSuggestion'
additionalProperties: false
additionalProperties: false
DetailsMultipleLanguages:
type: object
Taxonomy:
type: object
properties:
kingdom:
type: string
phylum:
type: string
class:
type: string
order:
type: string
family:
type: string
genus:
type: string
additionalProperties: false
securitySchemes:
apiKey:
type: apiKey
name: Api-Key
in: header