As an affiliate, backlinks bringing referral visitors to your Websites / web site posts which are relevant on your topic, or no matter what you are marketing, would've niche relevance.
But, one method to measure https://www.linkedin.com/pulse/niche-relevant-dofollow-backlinks-why-theyre-crucial-seo-tony-peacock-1slzc/