IdentificationController¶
- class pyinaturalist.controllers.IdentificationController(client)¶
Bases:
BaseControllerController for Identification requests
Methods
- __call__(identification_id, **params) Identification | None¶
Get a single identification by ID
Example
>>> client.identifications(16227955)
- Parameters:
identification_id (
int) – A single identification ID- Return type:
- __init__(client)¶
- from_ids(identification_ids, **params) Paginator[Identification]¶
Get one or more identifications by ID
Notes
API reference: GET /identifications/{id}
Examples
>>> ids = client.identifications.from_ids(700305837).all() >>> ids = client.identifications.from_ids([700305837, 700306322]).all()
- search(current_taxon, own_observation, is_change, taxon_active, observation_taxon_active, id, ...) Paginator[Identification]¶
Search identifications
Notes
API reference: GET /identifications
- Parameters:
current_taxon (
bool|None) – ID’s taxon is the same it’s observation’s taxonown_observation (
bool|None) – ID was added by the observeris_change (
bool|None) – ID was created as a results of a taxon changetaxon_active (
bool|None) – ID’s taxon is currently an active taxonobservation_taxon_active (
bool|None) – Observation’s taxon is currently an active taxonrank (
str|Iterable[str] |None) – ID’s taxon must have this rank # Multiple choiceobservation_rank (
str|Iterable[str] |None) – Observation’s taxon must have this rank # Multiple choiceuser_id (
int|Iterable[int] |str|Iterable[str] |None) – Identifier must have this user IDuser_login (
str|Iterable[str] |None) – Identifier must have this user logincurrent (
bool|None) – Most recent Identification on a observation by a usercategory (
Union[Literal['improving','supporting','leading','maverick'],Iterable[Literal['improving','supporting','leading','maverick']],None]) – Type of identificationplace_id (
int|Iterable[int] |None) – Observation must occur in this placequality_grade (
Union[Literal['casual','needs_id','research'],Iterable[Literal['casual','needs_id','research']],None]) – Observation must have this quality gradetaxon_id (
int|Iterable[int] |None) – Identification taxa must match the given taxa or their descendantsobservation_taxon_id (
int|Iterable[int] |None) – Observation taxa must match the given taxa or their descendantsiconic_taxon_id (
int|Iterable[int] |None) – Identification iconic taxon IDobservation_iconic_taxon_id (
int|Iterable[int] |None) – Observation iconic taxon IDlrank (
str|None) – Identification taxon must have this rank or higherhrank (
str|None) – Identification taxon must have this rank or lowerobservation_lrank (
str|None) – Observation taxon must have this rank or higherobservation_hrank (
str|None) – Observation taxon must have this rank or lowerwithout_taxon_id (
int|Iterable[int] |None) – Exclude Identifications of these taxa and their descendantswithout_observation_taxon_id (
int|Iterable[int] |None) – Exclude Identifications of observations of these taxa and their descendantsd1 (
date|datetime|str|None) – Must be observed on or after this dated2 (
date|datetime|str|None) – Must be observed on or before this dateobservation_created_d1 (
date|datetime|str|None) – Observation must be created on or after this dateobservation_created_d2 (
date|datetime|str|None) – Observation must be created on or before this dateobserved_d1 (
date|datetime|str|None) – Observation must be observed on or after this dateobserved_d2 (
date|datetime|str|None) – Observation must be observed on or before this dateper_page (
int|None) – Number of results to return in a page. The maximum value is generally 200, unless otherwise notedcount_only (
bool|None) – Only return a count of results; alias forper_page=0reverse (
bool|None) – Reverse the order of results; alias fororder='descending'
- Return type:
Example
Get all of your own species-level identifications:
>>> ids = client.identifications.search(user_login='my_username', rank='species').all()