Optional Inputs
Date range : Returns emails from within the given date range.
Contains text : Returns emails that contain the given words.
Contains exact text: Returns emails that contain the given words exactly.
From: Returns emails sent from the given people.
To: Returns emails sent to the given people.
Subject: Returns emails where the subject contains the given words.
Label: Returns emails with the given label.
Unread: Returns emails that are either read or unread, depending upon the input.
Starred: Returns emails that are starred.
Has attachment: Returns emails that have attachments.
Advanced search : An Gmail search query, suitable for advanced Gmail users.
💡 For a list of available options, see Prefer plain text: If specified, plain text emails are returned by default instead of HTML emails