be detrimental to vs endanger

be detrimental to

endanger

verb
  • To put (someone or something) in danger; to risk causing harm to. 

How often have the words be detrimental to and endanger occurred in a corpus of books? (source: Google Ngram Viewer )