If you intend to stay in touch with the person you’ve just met, you can use this phrase to ask them for their phone number. You can also use email instead of a phone number.
Similarly, you can use the more informal “Can I get your …?”
“Can I get your phone number?”
It would be great to see you again sometime. What’s your phone number?