get credit for (something)
To receive praise, admiration, or acknowledgement for some task, achievement, or accomplishment. Often (but not always) used when someone is praised for something they did not actually do. Even though Jenny did all the hard work on the project, Mary was the one who got credit for it. It's good to see Professor Wilson getting credit for her findings.
get credit for
Receive acknowledgment or praise for some accomplishment, as in Bill got all the credit for attracting a big audience. Similarly, give credit for means "acknowledge" or "praise," as in We should give the pianist credit for her work in the program. [Mid-1700s]