When a visitor first interacts with your site in a number of ways — such as submitting a contact form or subscribing to a newsletter — they're added to your site's Contact List. Once that happens, their details are available through the Contacts API.
Here are some examples of how a visitor could be converted to a contact: