youtube-dl scrapes the website, from what I can tell. The API has rate limits that youtube-dl would bypass in a few minutes if it were to use the official API.
That's primarily what's got the RIAA's panties in a twist, is that youtube-dl is 'bypassing' youtube's protection measures to prevent their site from being effectively scraped.