You can use APIs from services like Semrush or Ahrefs