| 
                                                
                                                
                                                    Costa Rica CR: External Debt: INT: IMF Charges (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.210
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1974 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: INT: Interest Payments: Long-Term (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 1,264.666
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: INT: Interest Payments: Private Non-Guaranteed (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 573.740
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: INT: Interest Payments: Public and Publicly Guaran... (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 690.926
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: INT: Interest Payments: Short-Term (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 130.534
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1980 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: INT: Public and Publicly Guaranteed (PPG): The Int... (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 26.234
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: INT: PPG: International Development Association (I... (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.002
            
                                            2010
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2010
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: INT: PPG: Official Creditors: Multilateral (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 170.617
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: INT: PPG: Official Creditors: Multilateral: Conces... (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.043
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: INT: PPG: Official Creditors (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 182.594
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: INT: PPG: Private Creditors: Bonds (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 422.828
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: INT: PPG: Private Creditors: Commercial Banks (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 82.621
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: INT: Private Non-Guaranteed (PNG): Bonds (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 126.560
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            2014 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: INT: PNG: Commercial Banks and Other Creditors (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 447.180
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: INT: PPG: Private Creditors: Others (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 2.883
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: INT: PPG: Private Creditors (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 508.332
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: Interest Arrears: Public and Publicly Guaranteed (... (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.000
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: Net Change in Interest Arrears (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.000
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: Interest Arrears: Official Creditors (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.000
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: Interest Arrears: Private Creditors (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.000
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1973 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: Interest Forgiven (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.000
            
                                            2014
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1990 - 2014
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: Interest Rescheduled: Capitalized (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.000
            
                                            2014
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1983 - 2014
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: Interest Rescheduled: Official (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.000
            
                                            2014
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1983 - 2014
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: Interest Rescheduled: Private (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.000
            
                                            2012
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1983 - 2012
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: Average Maturity on New External Debt Commitments (Year)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 5.501
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: Average Maturity on New External Debt Commitments:... (Year)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 5.727
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: Average Maturity on New External Debt Commitments:... (Year)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 2.744
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: NFL: Net Financial Flows: Bilateral (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 33.234
            
                                            2023
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2023
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: NFL: PPG: Official Creditors: Bilateral: Concessio... (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 38.235
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: NFL: Net Flows: Portfolio Investment: Bonds: Publi... (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.000
            
                                            2022
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2022
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: NFL: Net Flows: Total (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 2,826.672
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: NFL: Net Flows: Long-Term (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 1,995.537
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: NFL: Net Flows: Private Non-Guaranteed (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 155.663
            
                                            2023
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2023
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: NFL: Net Flows: Public and Publicly Guaranteed (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 355.953
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: NFL: Net Flows: Short-Term (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 831.135
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: Net Official Flows from UN Agencies: IFAD (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 -0.170
            
                                            2012
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1983 - 2012
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: NFL: Net Financial Flows: IMF Concessional (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.000
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: NFL: Net Financial Flows: IMF Nonconcessional (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 514.599
            
                                            2020
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2020
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: NFL: Net Financial Flows: The International Bank f... (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 -11.319
            
                                            2023
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2023
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: NFL: Net Financial Flows: International Developmen... (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 -0.082
            
                                            2011
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1971 - 2011
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: NFL: Net Financial Flows: Multilateral (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 -172.359
            
                                            2023
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2023
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: NFL: PPG: Official Creditors: Multilateral: Conces... (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 -0.937
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: NFL: Net Financial Flows: Others (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 -73.336
            
                                            2023
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2023
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: NFL: European Bank for Reconstruction and Developm... (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.000
            
                                            2017
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2017
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: NFL: International Finance Corporation: Private No... (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 -8.187
            
                                            2021
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2021
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: NFL: Public and Publicly Guaranteed (PPG): Officia... (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 -139.125
            
                                            2023
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2023
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: NFL: PPG: Private Creditors: Bonds (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.000
            
                                            2022
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2022
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: NFL: PPG: Private Creditors: Commercial Banks (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 -226.078
            
                                            2023
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2023
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: Net Flows and Net Transfers (NFL): Commercial Bank... (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 479.585
            
                                            2023
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2023
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: NFL: Private Non-Guaranteed (PNG): Bonds (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 -850.000
            
                                            2021
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            2013 - 2021
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: NFL: PNG: Commercial Banks and Other Creditors (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 705.663
            
                                            2023
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2023
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: NFL: PPG: Private Creditors: Others (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 -2.282
            
                                            2022
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2022
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: NFL: PPG: Private Creditors (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 1,773.922
            
                                            2023
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2023
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: NFL: Net Financial Flows: Regional Development Ban... (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 -0.463
            
                                            2020
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2020
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: NFL: Net Financial Flows: Regional Development Ban... (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 252.569
            
                                            2021
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2021
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: Net Official Flows from UN Agencies: UNAIDS (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.024
            
                                            2017
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            2006 - 2017
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: Net Official Flows from UN Agencies: UNICEF (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.985
            
                                            2022
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2022
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: Net Official Flows from UN Agencies: UNHCR (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.558
            
                                            2022
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1980 - 2022
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: Net Official Flows from UN Agencies: UNDP (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.394
            
                                            2022
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1968 - 2022
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: Net Official Flows from UN Agencies: UNFPA (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.769
            
                                            2022
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1977 - 2022
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: Net Official Flows from UN Agencies: UNTA (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.740
            
                                            2008
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1969 - 2008
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: NTR: PPG: Official Creditors: Bilateral (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 -0.302
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: NTR: PPG: Official Creditors: Bilateral: Concessio... (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 30.998
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: NTR: Net Transfers: Total (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 1,431.262
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: NTR: Net Transfers: Long-Term (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 730.871
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: NTR: Net Transfers: Private Non-Guaranteed (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 1,065.844
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: NTR: Net Transfers: Public and Publicly Guaranteed... (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 -334.973
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: NTR: Public and Publicly Guaranteed (PPG): The Int... (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 88.982
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: NTR: PPG: International Development Association (I... (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 -0.082
            
                                            2011
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2011
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: NTR: PPG: Official Creditors: Multilateral (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 1,173.765
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: NTR: PPG: Official Creditors: Multilateral: Conces... (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 -0.980
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: NTR: PPG: Official Creditors (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 1,173.463
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: NTR: PPG: Private Creditors: Bonds (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 -922.828
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: NTR: PPG: Private Creditors: Commercial Banks (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 -660.671
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: NTR: Private Non-Guaranteed (PNG): Bonds (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 -126.560
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            2013 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: NTR: PNG: Commercial Banks and Other Creditors (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 1,192.404
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: NTR: PPG: Private Creditors: Others (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 75.063
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: NTR: PPG: Private Creditors (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 -1,508.436
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: Net Official Development Assistance and Official Aid Received: Cu... (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 639.890
            
                                            2022
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1960 - 2022
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: Net Official Development Assistance Received: Current Price (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 639.890
            
                                            2022
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1960 - 2022
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: Net Official Development Assistance Received: % of Gross Capital ... (%)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 5.222
            
                                            2022
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1960 - 2022
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: Net Official Development Assistance Received: % of Gross National... (%)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.995
            
                                            2022
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1960 - 2022
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: Net Official Development Assistance Received: % of Imports of Goo... (%)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 1.960
            
                                            2022
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1977 - 2022
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: Net Official Development Assistance Received per Capita: Current ... (USD)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 125.919
            
                                            2022
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1960 - 2022
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: Net Official Development Assistance Received: % of Central Govern... (%)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 3.232
            
                                            2022
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1973 - 2022
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: TDS: PPG: Official Creditors: Bilateral (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 49.850
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: TDS: PPG: Official Creditors: Bilateral: Concessio... (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 18.347
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: Total Debt Service: % of Exports of Goods, Service... (%)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 14.641
            
                                            2023
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1977 - 2023
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: Total Debt Service: % of GNI (%)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 6.311
            
                                            2023
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2023
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: TDS: IMF Repurchases and Charges (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 161.451
            
                                            2023
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2023
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR:(GDP) Gross Domestic ProductDeflator: YoY% (%)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.364
            
                                            2020
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1961 - 2020
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR:(GDP) Gross Domestic ProductVolume Index: YoY% (%)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 -4.540
            
                                            2020
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1961 - 2020
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: TDS: Debt Service: Long-Term (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 3,748.896
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: TDS: Debt Service: Private Non-Guaranteed (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 1,650.650
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: Debt Service: % of Exports (%)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 7.778
            
                                            2023
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1977 - 2023
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: TDS: Debt Service: Public and Publicly Guaranteed ... (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 2,536.701
            
                                            2023
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2023
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: Public and Publicly Guaranteed Debt Service: % of ... (%)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 3.152
            
                                            2023
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2023
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: Public and Publicly Guaranteed Debt Service: % of ... (%)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 7.307
            
                                            2023
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1977 - 2023
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: TDS: PPG: The International Bank for Reconstructio... (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 61.668
            
                                            2018
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2018
                                         | 
                                    
                                
                            
                                
                                    
                                        
                                            
                                            
                                            | 
                                                
                                                
                                                    Costa Rica CR: External Debt: TDS: PPG: International Development Association (I... (USD mn)
                                                
                                             | 
                                        
                                        
                                            
                                            
                
                 0.082
            
                                            2011
                                         | 
                                        
                                        
                                        
                                            yearly
                                         | 
                                        
                                            1970 - 2011
                                         |