Search your web browsing history in Safari on Mac
You can search your browsing history to quickly find webpages you visited.
In the Safari app on your Mac, choose History > Show All History.
Type in the Search field at the top-right corner of the window.
Safari uses iCloud to keep your browsing history the same on your iPhone, iPad, iPod touch, and Mac computers that have Safari turned on in iCloud preferences. On your iPhone, iPad, or iPod touch, go to Settings > [your name] > iCloud, then make sure Safari is turned on. Your Mac can keep your browsing history for as long as a year, while some iPhone, iPad, and iPod touch models keep browsing history for a month. To change how often your Mac removes items from your history, see Change General preferences in Safari.