API ENS domain names

Is there a list or an API of domain names available? If so where is it.

Thanks I am new to all this.

OK I got into the documentation and it is not clear at all. Any example on how to query the API?