If you are dialing Costa Rica from the U.S., dial 011, then 506 (the country code), then the number. Within Costa Rica, you just need to dial the Costa Rican phone number.
Country Code 506
Ambulance/Red Cross/Police in San José 911
U.S. Embassy in San José 2519-2188
U.S. Embassy in San José website https://cr.usembassy.gov/
Bureau of Consular Affairs, Office of Public Affairs 1-888-407-4747
- number to call while outside U.S. (202) 501-4444
LANIC's site provides research and academic resources, as well as being a source for news, art, music and recipes from Latin America. Information can be found in English, Spanish and Portuguese. (Description taken from Wikipedia)