Most DJs get their music from resources like DJ pools which are both paid and free. There is a subscription scheme that works on a monthly or yearly basis. Some also allow downloading music legally.