This is coming. There's already a couple of startups doing this. A lot of them operate in "stealth" so they don't attract the attention of ad blockers.
There's no API needed, all they require is for the website to set up a CNAME record. They're usually random and rotated often.
If you're familiar with the current arms race in ad fraud, there's a coming arms race for ad blocking.