The credit rating, also called rating, or debt rating, measures the ability of a country, government or company to service its debt. The higher the risk of default on the debt, the lower the rating it will receive because of the risk involved in investing in it. Therefore, in theory, thanks to the rating that debt issues receive, potential investors know what risk of default they face when investing in that debt.
The rating is done by rating agencies. Rating agencies, or rating agencies, rate financial products or assets of companies, states or regional governments (autonomous communities and federal states). The main rating agencies are Moody's, Standard & Poor's (S&P) and Fitch, which provide long- and short-term debt ratings. Each uses its own scale, although they all use an alphabetical system to determine the credit rating.
You can see the credit rating of the different countries at: rating by country