Posts

Summary

Classes

Functions

get_posts(login, project_id, page, per_page, ...)

Search posts

Module Contents

pyinaturalist.v1.posts.get_posts(login, project_id, page, per_page, dry_run, session, ...) list[dict[str, Any]]

Search posts

Notes

Parameters:
  • login (str | None) – Return posts by this user

  • project_id (int | None) – Return posts from this project

  • page (int | None) – Pagination page number

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

  • dry_run (bool | None) – Just log the request instead of sending a real request

  • session (Session | None) – 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