I’m a boy, how do I convince my parents to let me get earrings?

I would have a list of reasons of why you think that getting earrings is a good idea. I don’t advise saying something like, “my friends have them, too.” That sounds like peer pressure. Try saying something like, ‘I feel this is a way to express myself.’ It sounds pretty cheesy, but it has merit. List some people that they know and admire who have earrings as well, people who have been successful. Try putting a lot of research into it, as the more dedicated you seem the more it may convince them.
I would also consider where your parents are coming from in refusing to let you have your ears pierced. Unfortunately, a male person with pierced ears often has greater trouble finding a job than a female. Your parents probably know this. Take this into account when you are asking – try having some good counterpoints. If you are mature in asking, presenting your research, and remain calm, you have a pretty good chance. It’s also important to ask at the right time. Tell them you want to talk about something important to you, and ask them to set aside some of their time to do so. Asking while mom is on a phone call or dad is trying make dinner isn’t the best idea, because their focus won’t be completely on you, and you trying to get their attention will probably add a bit to their stress and make them irritated.