Hey Joey1,
it looks like you initialized the api without user credentials. Without login you are only able to access live data. Try initializing the api like this:
api = OpenSkyApi(USERNAME, PASSWORD)
Take a look at the
documentation
for further details. See
this page
for limitations like the one you experienced.
Cheers,
Marco