Reading issue events via API or sentry-cli?

We’re interested in accessing the events for issues to programmatically get the associated JSON instead of manually looking through the issues via the website.

Is this possible? If so, any pointers to where to start?

Thanks