Quick answer
Извини́те
izviníte — to get attention and to apologise — the same word
The options
Getting attention versus apologising
Извини́те works for both. For a real apology, прости́те carries more weight — use it when you actually did something. For stepping on a foot, извини́те is plenty.
The polite question opener
Almost every question to a stranger starts the same way: Извини́те, скажи́те, пожа́луйста, где метро́? It sounds long, but it is the standard and it works every time.
What you hear back
Typical mistakes
Извини́ to a stranger
Извини́те
The -те makes it polite; without it you are using ты.
Я извиня́юсь.
Извини́те.
Я извиня́юсь literally means “I excuse myself” and is widely considered poor style.
Check yourself
You want to ask a stranger for directions. How do you start?