SAN JOSE, Costa Rica — Costa Rican and Panamanian officials on Tuesday arrested nearly 50 people linked to an international network suspected of smuggling migrants from Africa, Asia and the Caribbean through Central America and toward the United States, prosecutors said.

In one of the largest operations against people smugglers conducted in the country, Costa Rican migration police and prosecutors raided 36 locations near the country’s borders with Panama and Nicaragua, arresting 37 suspected members of the network.

In Panama, federal police arrested 12 people connected to the same network, local authorities said.

The number of migrants crossing the region to reach the United States has grown in recent years, stoking tensions between the Trump administration and Mexico and Central America.

Stephen Madden, deputy director of Costa Rica’s migration police, said the criminal network charged between $7,000 and $20,000 to transport each migrant.