My question is how does my router gets the external IP address? Does it uses a DHCP-like protocol? Is it ISP-dependent?
It's somewhat ISP-dependent. However, since most wired networks provide the same upper-layer services (i.e. either you get Ethernet, or some Ethernet emulation), practically all wired ISPs use one of these two protocols:
DHCP (and SLAAC for IPv6) – literally the same protocol as in your LAN, and it works in the same way. The exact implementation varies between ISPs though (e.g. some require special options and customize their issued router to make replacing it more difficult).
PPP – now commonly seen as "PPPoE" (PPP-over-Ethernet), originally this was the mechanism used by dial-up modem clients. In addition to address configuration, it can also handle client authentication via username/password.
As far as I know, cable (DOCSIS) always uses DHCP, while other connection types – e.g. ADSL, VDSL, fiber – can use either one, depending on what the ISP prefers. Note that a single connection will usually use DHCP or PPP(oE), but not both at the same time.
Meanwhile, mobile (such as 4G) doesn't imitate an Ethernet-style network and doesn't use DHCP nor PPPoE – instead it has everything built directly into the connection (bearer) establishment procedure, and as a result, all 4G ISPs use the same protocol. Unfortunately I don't have any more information about it.