Downloading raw files from github repositories using NPM library

Hello,

I’m working on a library to help developers bundle LICENSEs and NOTICEs into a single file.
I’m using legally under the hood for detecting dependencies and what kind of licenses they use.

Is it legal to try to download licenses and notices from dependency repositories from library code by accessing https://raw.githubusercontent.com?

Thank you in advance!