# Working with Recently Viewed Information

The examples in this section use REST API Query and Recently Viewed resources to programmatically retrieve and update recently viewed record information.

- **[View Recently Viewed Records](/docs/platform/api-rest/guide/dome-see-recently-viewed.md)**

  Use the Recently Viewed Items resource to get a list of recently viewed records.

- **[Mark Records as Recently Viewed](/docs/platform/api-rest/guide/dome-mark-records-as-recently-viewed.md)**

  To mark a record as recently viewed using REST API, use the Query resource with a `FOR VIEW` or `FOR REFERENCE` clause. Use SOQL to mark records as recently viewed to ensure that information such as the date and time the record was viewed is correctly set.
