San Pedro is a district of the Pérez Zeledón canton, in the San José province of Costa Rica. It is located 30 kilometers south of San Isidro de El General. San Pedro, a district of historical significance, was established on 5 October 1951 by Ley 1360, Anexa de Buenos Aires.