Historical Analytics Data (more than 30 days)

APIs still exist: Netlify Analytics API - #15 by hrishikesh

That thread is an example and those endpoints are likely deprecated: Analytics v1 API Deprecation, but you can still check the UI and get the current endpoints.

They’re partly official as in, the UI uses those, but they’re undocumented for the public. Almost everything that the UI does would be available via APIs, so if this is a major requirement, you can use the dev tools to get the endpoints that you want.