Add function to make tract API requests, adding retries as there often seem to be 500 responses