Get batch id from URL parameters.