How do I legally connect to the API?

Answer:
Read and accept the terms, choose a pricing plan, register your app, log in, get the API key, and complete payment.

Source