Hi @Dancing Strawberry ,
- It's the same as you get on the default "Communication site". For example: the site url is https://tenant.sharepoint.com/sites/test. The api call would be like this:
https://tenant.sharepoint.com/sites/test/_api/web/lists?$filter=BaseTemplate eq 101&$select=EnableVersioning,Title
.
If you want to get the porperty for a specific library, you could use this api call :
https://tenant.sharepoint.com/sites/test/_api/web/lists/getbytitle('Documents')
2.To get settings for SharePoint admin center, the api should be: https://tenant-admin.sharepoint.com/_api/Microsoft.Online.SharePoint.TenantManagement.Office365Tenant
The property RequireAnonymousLinksExpireInDays is the duration to expiration for "Anyone links".
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.