Posts#

Summary#

Classes

Functions

get_posts(**params)

Search posts

Module Contents#

pyinaturalist.v1.posts.get_posts(**params)#

Search posts

Notes

Parameters:
  • login (Optional[str]) – Return posts by this user

  • project_id (Optional[int]) – Return posts from this project

  • page (Optional[int]) – Pagination page number

  • per_page (Optional[int]) – Number of results to return in a page. The maximum value is generally 200 unless otherwise noted

  • dry_run (Optional[bool]) – Just log the request instead of sending a real request

  • session (Optional[Session]) – An existing Session object to use instead of creating a new one

Example

Get journal posts from user ‘username’

>>> response = get_posts(login='username')
Return type:

List[Dict[str, Any]]

Returns:

List containing journal posts from the iNaturalist site