You use the 'quarterly' financial statements and add the parameter 'limit=4' which will provide data from the last 4 quarters, and then sum the fields for the desired values.