How exactly did they get access to the Facebook Ad Library API? You need special permission for that: https://www.facebook.com/ads/library/api/
Also, per those docs, ad spend is a range; I'm not sure how the article infers exact values.
Also, per those docs, ad spend is a range; I'm not sure how the article infers exact values.
Per the page you linked, as long as you verify your ID/location, are from one of the countries where the Ad Library has launched, and agree to the Facebook Platform Policy, you can get access.