Accidentally deleted history in Safari. Is there any way to get it back?
No, once you delete history, it is removed from the database. 

That database is backed up, so you can use your backup method (Time Machine backup, etc) to restore the following files:

~/Library/Safari/History*