Question: how to apply for a social security number outside the us?
Answer: Make an appointment to visit the Federal Benefits Unit (FBU) office. Contact the office of the FBU at the closest US Embassy or Consulate in your country of residence. ... 
Make an appointment to visit to the Embassy/Consulate without an FBU office.