Pulling user information to see if they are in a group

So im trying to make a group reward so when players join my group they get a reward, how would i make it check if the player joined the group?

Wouldn’t it be a API URL to contact steam servers to validate the information?
I wanted it to be hosted on my site, how would i go about doing that?.