Can I check subscriptions on something like a google form?

I’d like to make a form that will only submit if the connected user is subscribed to x channel. I have absolutley no idea how to even start a I have never used this API before.