How to get the contacts who received an email in the last time frame?

I feel like this should be a relatively simple thing to do but have not been able to find a way to connect the dots and nothing comes up on google. How do I get the contacts who have been sent an email in the last week?

Hi Derek!
You can find contacts who has been sent a campaign in the last week with advanced search.

  1. Click Contacts on the left menu.
  2. Click the search field, then click “Advanced Search.”
  3. The segment builder will appear. Click the conditions dropdown.
  4. Click “Actions” > “Has been sent.” And you should be able to add a date range to search.
  5. Next, click the value field to select a specific campaign to search for contacts who were sent that campaign. Or, you can choose “Any campaign” to look for all contacts who were sent any campaign.
  6. Click the “Search” button.

Sorry, I meant in the API! Do you by chance know how to do it with the API