The border search exception is a doctrine of United States criminal law that allows searches and seizures at international borders and their functional equivalent without a warrant or probable cause.
This doctrine is not actually an exception to the Fourth Amendment, but rather to the Amendment's requirement for a warrant or probable cause. Balanced against the sovereign's interests at the border are the Fourth Amendment rights of entrants. Not only is the expectation of privacy less at the border than in the interior, the Fourth Amendment balance between the interests of the Government and the privacy right of the individual is also struck much more favorably to the Government at the border. This balance at international borders means that routine searches are "reasonable" there, and therefore do not violate the Fourth Amendment's proscription against "unreasonable searches and seizures".
Despite federal law allowing certain federal agents to conduct search and seizures within 100 miles of the border into the interior of the United States, the Supreme Court has clearly and repeatedly confirmed that the border search exception applies only at international borders and their functional equivalent (such as international airports).
The U.S. Customs and Border Protection (CBP) officers, U.S. Border Patrol agents, U.S. Immigration and Customs Enforcement Special Agents, and U.S. Coast Guard officers (E4 grade and above) who are all customs officers (those tasked with enforcing Title 19 of the United States Code) with the U.S. Department of Homeland Security, are permitted to search travelers and their belongings at the American border without probable cause or a warrant. Pursuant to this authority, customs officers may generally stop and search the property of any traveler entering the United States at random, or even based largely on ethnic profiles.