This is a wrapper client around the SportsData.io NFL REST API. You will need to register for a data subscription (https://sportsdata.io/developers/api-documentation/nfl)
yarn add sportsdataio-nfl
Pass your api key
const client = require("sportsdataio-nfl")(API_KEY)
const getPlayersData = client.getPlayerDetails()