Generating CSV export via API as link
Is there a way that the API generates a CSV file for a collection/library on the fly, i.e. as a link that can be used within another app. Database tools like Ninox or Google Sheets have this functionality, and I assume the Zotero API could handle it, too, but maybe an additional service is needed that takes care of the query etc.
Right answer below
Supported formats can be accessed via link: https://www.zotero.org/support/dev/web_api/v3/basics#export_format
I get only the first 24 results and the unique keys change after every refresh...
See the documentation for details on how to paginate requests.
Using https://api.zotero.org/groups/2536132/items/top?key=...&format=csv
will get you the first 100 top level items in a CSV
For the API key, you'd want to create & set one in the settings: https://www.zotero.org/settings/keys ; don't copy it from the webpage (or where is the one that's always changing?)
As for the key, I was not talking about the API key, but about the first column ("Key"), the unique identifier. Those keep changing (and have also minuscles) once I request the CSV.
It will change the keys after a refresh (at least on my machine)
See e.g. https://api.zotero.org/users/475425/items/X42A7DEE?v=3&format=csv