You are now able to obtain your travel history (foreign passport holders) online without the need to file a FOIA request. You will need your full name as it appears on your passport, date of birth and passport number. If you have a pending FOIA for this type of request you are asked to cancel the request as CBP is backlogged 10-12 months.
Please visit:
https://i94.cbp.dhs.gov/I94/request.html
Once you complete the form, click "GET TRAVEL HISTORY"
You will have the same information as the CBP office at the PoE or the Visa officer at the Embassy/Consulate. Be prepared, be informed.