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=None, own_observation=None, is_change=None, taxon_active=None, observation_taxon_active=None, id=None, rank=None, observation_rank=None, user_id=None, user_login=None, current=None, category=None, place_id=None, quality_grade=None, taxon_id=None, observation_taxon_id=None, iconic_taxon_id=None, observation_iconic_taxon_id=None, lrank=None, hrank=None, observation_lrank=None, observation_hrank=None, without_taxon_id=None, without_observation_taxon_id=None, d1=None, d2=None, observation_created_d1=None, observation_created_d2=None, observed_d1=None, observed_d2=None, id_above=None, id_below=None, page=None, per_page=None, order=None, order_by=None, count_only=None, reverse=None, only_id=None, **kwargs) Paginator[Identification]¶
Search identifications
Notes
API reference: GET /identifications
- Parameters:
current_taxon (
Optional[bool]) – ID’s taxon is the same it’s observation’s taxonown_observation (
Optional[bool]) – ID was added by the observeris_change (
Optional[bool]) – ID was created as a results of a taxon changetaxon_active (
Optional[bool]) – ID’s taxon is currently an active taxonobservation_taxon_active (
Optional[bool]) – Observation’s taxon is currently an active taxonrank (
Union[str,Iterable[str],None]) – ID’s taxon must have this rank # Multiple choiceobservation_rank (
Union[str,Iterable[str],None]) – Observation’s taxon must have this rank # Multiple choiceuser_id (
Union[int,Iterable[int],str,Iterable[str],None]) – Identifier must have this user IDuser_login (
Union[str,Iterable[str],None]) – Identifier must have this user logincurrent (
Optional[bool]) – Most recent Identification on a observation by a usercategory (
Union[str,Iterable[str],None]) – Type of identificationplace_id (
Union[int,Iterable[int],None]) – Observation must occur in this placequality_grade (
Union[str,Iterable[str],None]) – Observation must have this quality gradetaxon_id (
Union[int,Iterable[int],None]) – Identification taxa must match the given taxa or their descendantsobservation_taxon_id (
Union[int,Iterable[int],None]) – Observation taxa must match the given taxa or their descendantsiconic_taxon_id (
Union[int,Iterable[int],None]) – Identification iconic taxon IDobservation_iconic_taxon_id (
Union[int,Iterable[int],None]) – Observation iconic taxon IDlrank (
Optional[str]) – Identification taxon must have this rank or higherhrank (
Optional[str]) – Identification taxon must have this rank or lowerobservation_lrank (
Optional[str]) – Observation taxon must have this rank or higherobservation_hrank (
Optional[str]) – Observation taxon must have this rank or lowerwithout_taxon_id (
Union[int,Iterable[int],None]) – Exclude Identifications of these taxa and their descendantswithout_observation_taxon_id (
Union[int,Iterable[int],None]) – Exclude Identifications of observations of these taxa and their descendantsd1 (
Union[date,datetime,str,None]) – Must be observed on or after this dated2 (
Union[date,datetime,str,None]) – Must be observed on or before this dateobservation_created_d1 (
Union[date,datetime,str,None]) – Observation must be created on or after this dateobservation_created_d2 (
Union[date,datetime,str,None]) – Observation must be created on or before this dateobserved_d1 (
Union[date,datetime,str,None]) – Observation must be observed on or after this dateobserved_d2 (
Union[date,datetime,str,None]) – Observation must be observed on or before this dateper_page (
Optional[int]) – Number of results to return in a page. The maximum value is generally 200, unless otherwise notedcount_only (
Optional[bool]) – Only return a count of results; alias forper_page=0reverse (
Optional[bool]) – 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()