As per my understanding from below documents user has to provide our app "Full Disk Access" from System Preferences -> Security & Privacy settings to access Safari's Web history file. There is no API we can use to get Full Disk Access from user. Also it is not a recommended way by Apple since currently Data Vaults are completely private to Apple.
Please confirm @eskimo.
https://developer.apple.com/forums/thread/678819
https://developer.apple.com/forums/thread/114452?answerId=352695022#352695022
Topic:
App & System Services
SubTopic:
Core OS
Tags: