I'm pretty sure DDG is just using Bing's Web Search API https://azure.microsoft.com/en-us/services/cognitive-service...
I think they also use Bing to serve (and earn a commission on) Bing ADS too, but I don't see that documented in the Search API so it may be separate.