How do you get clomid?

Can I get clomid if I just ask the doctor or do you need tests ect?