UserCount

class pyinaturalist.models.UserCount(id=None, activity_count=0, created_at=NOTHING, icon=None, icon_url=None, identifications_count=0, journal_posts_count=0, login=None, name=None, observations_count=0, orcid=None, roles=NOTHING, site_id=None, count=0, observation_count=0, species_count=0)

Bases: pyinaturalist.models.user.User

An iNaturalist user, with an associated count of filtered IDs or observations

Attributes

Name

Type

Description

id

int

Unique record ID

activity_count

int

Combined user activity including observations, identifications, and journal posts

created_at

datetime

Date and time the user was registered

icon

str

URL for small user icon

icon_url

str

URL for medium user icon

identifications_count

int

Number of identifications the user has made

journal_posts_count

int

Number of journal posts the user has made

login

str

User login/username

name

str

User real name or display name

observations_count

int

Number of observations the user has made

orcid

str

ORCID iD

roles

List[str]

User roles on inaturalist.org

site_id

int

Site ID for iNaturalist network members, or 1 for inaturalist.org

count

int

Filtered count for the user

observation_count

int

Filtered count for the user’s observations

species_count

int

Filtered count for the user’s unique species observed

Methods

__init__(id=None, activity_count=0, created_at=NOTHING, icon=None, icon_url=None, identifications_count=0, journal_posts_count=0, login=None, name=None, observations_count=0, orcid=None, roles=NOTHING, site_id=None, count=0, observation_count=0, species_count=0)

Method generated by attrs for class UserCount.

classmethod from_json(value, **kwargs)

Flatten out count + user fields into a single-level dict before initializing

Return type

UserCount

classmethod from_json_file(value)

Initialize a collection of model objects from a JSON string, file path, or file-like object

Return type

List[TypeVar(T, bound= BaseModel)]

classmethod from_json_list(value)

Initialize a collection of model objects from an API response or response results

Return type

List[TypeVar(T, bound= BaseModel)]

to_json()

Convert this object back to JSON (dict) format

Return type

Dict[str, Any]