| 
                                                
                                                
                                                    Costa Rica CR: External Debt: AMT: PPG: Official Creditors: Multilateral: Conces... (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.937
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: AMT: PPG: Official Creditors (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 297.915
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: AMT: PPG: Private Creditors: Bonds (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 500.000
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: AMT: PPG: Private Creditors: Commercial Banks (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 599.851
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: AMT: Private Non-Guaranteed (PNG): Bonds (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.000
            
                                            2017
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2017
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: AMT: PNG: Commercial Banks and Other Creditors (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 1,076.910
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: AMT: PPG: Private Creditors: Others (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 9.554
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: AMT: PPG: Private Creditors (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 1,109.405
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: Principal Arrears: Public and Publicly Guaranteed ... (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.000
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: Principal Arrears: Official Creditors (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.000
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: Principal Arrears: Private Creditors (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.000
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1971 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: Principal Forgiven (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.000
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1971 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: Principal Rescheduled (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.000
            
                                            2014
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1983 - 2014
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: Principal Rescheduled: Official (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.000
            
                                            2014
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1983 - 2014
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: Principal Rescheduled: Private (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.000
            
                                            2012
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1983 - 2012
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: COM: Commitments: Public and Publicly Guaranteed (... (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 1,428.859
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: COM: Commitments: The International Bank for Recon... (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 420.000
            
                                            2016
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2016
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: COM: Commitments: International Development Associ... (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.000
            
                                            2010
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1999 - 2010
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: COM: Commitments: Official Creditors (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 1,320.359
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: COM: Commitments: Private Creditors (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 108.500
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: Currency Composition of PPG Debt: Deutsche Mark (%)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.000
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: Currency Composition of PPG Debt: Euro (%)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.126
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: Currency Composition of PPG Debt: French Franc (%)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.000
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: Currency Composition of PPG Debt: Japanese Yen (%)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 2.300
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: Currency Composition of PPG Debt: Multiple Currencies (%)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.000
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: Currency Composition of PPG Debt: All Other Currencies (%)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 1.219
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: Currency Composition of PPG Debt: SDR (%)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.000
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: Currency Composition of PPG Debt: Swiss Franc (%)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.000
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: Currency Composition of PPG Debt: Pound Sterling (%)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.000
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: Currency Composition of PPG Debt: USD (%)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 96.356
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: Forgiveness or Reduction (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.000
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1971 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: DIS: PPG: Official Creditors: Bilateral (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 49.548
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: DIS: PPG: Official Creditors: Bilateral: Concessio... (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 49.345
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: DIS: IMF Purchases (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.000
            
                                            2014
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2014
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: DIS: Disbursements: Long-Term and IMF (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 4,479.767
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: DIS: Disbursements: Long-Term (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 4,479.767
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: DIS: Disbursements: Private Non-Guaranteed (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 2,716.494
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: DIS: Disbursements: Public and Publicly Guaranteed (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 1,763.273
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: International Development Association: Grants (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.000
            
                                            2016
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2016
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: DIS: Public and Publicly Guaranteed (PPG): The Int... (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 150.650
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: DIS: PPG: International Development Association (I... (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.000
            
                                            2011
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1999 - 2011
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: DIS: PPG: Official Creditors: Multilateral (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 1,604.424
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: DIS: PPG: Official Creditors: Multilateral: Conces... (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.000
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: DIS: PPG: Official Creditors (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 1,653.972
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: DIS: PPG: Private Creditors: Bonds (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.000
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1978 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: DIS: PPG: Private Creditors: Commercial Banks (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 21.801
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: DIS: Private Non-Guaranteed (PNG): Bonds (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 300.000
            
                                            2017
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            2013 - 2017
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: DIS: PNG: Commercial Banks and Other Creditors (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 2,716.494
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: DIS: PPG: Private Creditors: Others (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 87.500
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: DIS: PPG: Private Creditors (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 109.301
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: DOD: Stocks: Concessional (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 326.161
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: Concessional Debt: % of Total External Debt (%)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 1.172
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: DOD: PPG: Official Creditors: Bilateral (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 463.544
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: DOD: PPG: Official Creditors: Bilateral: Concessio... (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 326.153
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: Stocks: Total Change (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 2,203.084
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: Stocks: % of Exports of Goods, Services and Primar... (%)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 131.553
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1977 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: Stocks: % of GNI (%)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 60.333
            
                                            2022
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2022
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: DOD: Use of IMF Credit (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 1,520.418
            
                                            2021
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2021
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: DOD: Stocks: Private Non-Guaranteed (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 16,295.051
            
                                            2023
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2023
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: DOD: Stocks: Public and Publicly Guaranteed (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 15,082.915
            
                                            2023
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2023
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: Short-Term Debt: % of Total Reserves (%)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 40.994
            
                                            2023
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2023
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: Short-Term Debt: % of Exports of Goods, Services a... (%)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 15.617
            
                                            2023
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1977 - 2023
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: Short-Term Debt: % of Total External Debt (%)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 13.892
            
                                            2023
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2023
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: Debt Forgiveness Grants (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.000
            
                                            2017
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2017
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: DOD: Public and Publicly Guaranteed (PPG): The Int... (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 1,291.554
            
                                            2021
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2021
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: DOD: PPG: International Development Association (I... (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.000
            
                                            2011
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2011
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: DOD: PPG: Official Creditors: Multilateral (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 4,127.554
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: Multilateral Debt: % of Total External Debt (%)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 14.837
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: DOD: PPG: Official Creditors: Multilateral: Conces... (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.008
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: DOD: The International Bank for Reconstruction and... (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 1,561.551
            
                                            2022
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2022
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: DOD: PPG: Official Creditors (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 4,591.098
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: DOD: PPG: Private Creditors: Bonds (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 5,750.000
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: DOD: PPG: Private Creditors: Commercial Banks (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 905.071
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: DOD: Private Non-Guaranteed (PNG): Bonds (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 2,150.000
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            2013 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: DOD: PNG: Commercial Banks and Other Creditors (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 10,741.398
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: DOD: PPG: Private Creditors: Others (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 94.166
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: DOD: Stocks: Long-Term: Private Sector (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 12,891.398
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: DOD: PPG: Private Creditors (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 6,749.237
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: DOD: Stocks: Long-Term: Public Sector (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 11,340.335
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: Residual: Stock-Flow Reconciliation (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 -565.313
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: DOD: Stocks: Variable Rate (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 17,300.461
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: Buyback (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.000
            
                                            2014
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            2014 - 2014
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: Stock: Reduction (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.000
            
                                            2014
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1987 - 2014
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: Stock: Rescheduled (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.000
            
                                            2014
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1988 - 2014
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: Average Grace Period on New External Debt Commitme... (Year)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 1.401
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: Average Grace Period on New External Debt Commitme... (Year)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 1.321
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: Average Grace Period on New External Debt Commitme... (Year)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 2.368
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: Average Grant Element on New External Debt Commitm... (%)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 9.583
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: Average Grant Element on New External Debt Commitm... (%)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 9.408
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: Average Grant Element on New External Debt Commitm... (%)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 11.708
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: Average Interest on New External Debt Commitments (%)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.607
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: Average Interest on New External Debt Commitments:... (%)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.653
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: Average Interest on New External Debt Commitments:... (%)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.055
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: INT: PPG: Official Creditors: Bilateral (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 11.977
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: INT: PPG: Official Creditors: Bilateral: Concessio... (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 7.237
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: INT: Interest Payments: Total (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 1,395.410
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: Exports: fob: Emerging and Developing Economies: Emerging and Dev... (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.133
            
                                            2023
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            2010 - 2023
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: Interest Payments: % of Exports of Goods, Services... (%)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 6.599
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1977 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: Interest Payments: % of GNI (%)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 2.457
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: INT: IMF Charges (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.210
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1974 - 2018
                                         |