
First, find out who actually owns the domain
Your domain and your website are two different things, and they're not always with the same company. Run a WHOIS lookup on your domain name to see who it's registered to. If it's registered to the developer's own account instead of yours, that's the actual problem.
Dig up the original paperwork
Check your email for renewal receipts. domain and hosting renewals usually come with a yearly charge, search your inbox for the provider's name
Check your bank or card statements. a recurring charge to GoDaddy, Namecheap, or a hosting company often reveals the account it's billed to
Ask the developer directly, in writing. a short, polite, specific request for the login often works better than a vague one
If you genuinely can't get it back
Sometimes the account is gone for good. If that happens, the practical move is to register a new domain you control yourself, under your own name and your own account, and rebuild from there. It's not the outcome you wanted, but it's a clean one, and it never has to happen again.
How to make sure this never happens again
Whoever builds your next website, the domain and hosting account should be registered in your name, under your own email and your own payment method, from day one. A good provider will set it up that way without you having to ask.
