Endonym (also autonym "self name") is a Greek/English word for a name that a people or country calls themselves or their language. Exonym (also xenonym "foreign name") is a Greek/English word for the opposite, or what a stranger would call someone else's country, people or language. Endonym means "inside name"; while exonym means "outside name".
Source: tatoeba (11746169)