Check whether a card/dashboard was last viewed

Is there a way to check when a card/dashboard was last viewed via the Metabase API? I know the other method is to look at the Metabase view_log table.

Context I am trying to write a script to filter for cards/dashboard that was last viewed past a certain date then archiving them.

Thanks in advance