1.21.1 • Published 2 years ago

yf-web-scraper v1.21.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Yahoo Finance Data

Scrapes the Yahoo Finance website to pull financial data about a company.

Object keysTypeExample
tickerStringABBV
nameStringAbbvie Inc.
priceFloat153.80
averageDividendPaymentsPerYearInteger4
averageDividendPayoutMonthsArray[3,6,9,12]
bookValuePerShareFloat9.22
categoryStringHealthcare
consecutiveYearsOfDividendGrowthInteger8
consecutiveYearsOfDividendPaymentsInteger9
currencyStringUSD
currentRatioFloat0.81
debtToEquityRatioFloat451.44
dilutedEPSFloat6.97
dividendHistoryArray[{ date: 2022-04-12T16:00:00.000Z, amount: 1.41 },...]
dividendYieldFloat0.0368
EBITDAInteger24749000000
EPSFloat3.43
exDividendDateString2022-07-12T16:00:00.000Z
fiftyDayMovingAverageFloat149.83
fiftyTwoWeekHighFloat175.91
fiftyTwoWeekLowFloat105.56
fiveYearAnnualGrowthEstimateFloat0.0187
freeCashFlowInteger22047000000
incomeFromOperationsInteger19460000000
industryStringDrug Manufacturers—General
interestCoverageRatioFloat7.007268063274903
interestExpenseInteger2339000000
leveredFreeCashFlowInteger19240000000
marketCapInteger270620000000
netIncomeInteger12410000000
newsArray[{source: "Investor's Business Daily",link: 'https://finance.yahoo.com/m/c91b9937-b4d4-31a2-b8b5-6c408522c083/5-nyse-stocks-to-watch-and.html',headline: '5 NYSE Stocks To Watch And Buy: Here Are Fundamental And Technical Reasons Why',excerpt: "There's no better time than to build a strong watchlist during a serious market correction. This story covers five NYSE stocks to watch and consider buying. In 2022, the NYSE's composite index is outperforming its Nasdaq sibling."},...]
numberOfAnalystsInteger12
operatingCashflowInteger22810000000
operatingMartinFloat0.3541
payoutRatioFloat0.3541
PERatioFloat10.92
pricesByYearAndMonthObject{'2022': {'0': [Array],'1': [Array],'2': [Array],'3': [Array],'4': [Array],'5': [Array],'6': [Array]}}
priceToBookRatioFloat16.62
priceToFreeCashFlowFloat12.35
profitMarginFloat0.22
quarterlyEarningsGrowthFloat0.264
quarterlyRevenueGrowthFloat0.041
returnOnAssetsFloat0.0855
returnOnEquityFloat0.8312
revenueInteger56730000000
shareholderEquityFloat272226000000.00003
sharesOutstandingInteger1770000000
tenYearAverageDividendYieldFloat0.03698200381876895
tenYearDividendGrowthRateFloat0.16311628992319557
tenYearDividendVolatilityFloat0.40109297777764435
threeYearAverageEarningsGrowthFloat0.55
threeYearAverageRevenueGrowthFloat0.3
totalAssetsInteger146529000
totalCashInteger7570000000
totalDebtInteger73650000000
totalLiabilitiesInteger131093000
twoHundredDayMovingAverageFloat136.88
typeStringStock
yearOnYearEarningsGrowthFloat1.52
yearOnYearRevenueGrowthFloat0.23

How To

  1. Install the package.
npm install yf-scraper
  1. Import the package.
import YahooFinance from 'yf-web-scraper'
  1. Provide the ticker symbol (e.g. '3017') and (if non-US, optional) the exchange (e.g. 'HK').
await YahooFinance('ticker', 'exchange').then((data) => {
  // data
}).catch((error) => {
  // error
})

Notes

  • It will return normalized raw data, e.g. "26440000000" instead of "26.44B".
  • Note that UK-listed companies statistics are returned in pence, not pounds
1.21.1

2 years ago

1.19.2

2 years ago

1.19.1

2 years ago

1.21.0

2 years ago

1.20.1

2 years ago

1.20.2

2 years ago

1.20.0

2 years ago

1.20.3

2 years ago

1.11.0

2 years ago

1.10.1

2 years ago

1.10.0

2 years ago

1.4.6

2 years ago

1.4.5

2 years ago

1.4.4

2 years ago

1.4.3

2 years ago

1.4.2

2 years ago

1.4.1

2 years ago

1.4.0

2 years ago

1.4.7

2 years ago

1.3.6

3 years ago

1.3.5

3 years ago

1.3.4

3 years ago

1.3.3

3 years ago

1.3.2

3 years ago

1.3.1

3 years ago

1.2.5

3 years ago

1.3.0

3 years ago

1.2.4

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago