https://github.com/gregfrasco/yahoo-finance-api
Scrapes yahoo finance earnings calendar.
https://github.com/gregfrasco/yahoo-finance-api
calendar earnings finance yahoo
Last synced: 2 months ago
JSON representation
Scrapes yahoo finance earnings calendar.
- Host: GitHub
- URL: https://github.com/gregfrasco/yahoo-finance-api
- Owner: gregfrasco
- License: mit
- Created: 2020-05-30T23:47:38.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T07:29:03.000Z (almost 3 years ago)
- Last Synced: 2025-05-19T16:48:54.183Z (5 months ago)
- Topics: calendar, earnings, finance, yahoo
- Language: TypeScript
- Homepage:
- Size: 1.08 MB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# yahoo-finance-api
[](https://www.npmjs.org/package/yahoo-finance-api)
[](http://npm-stat.com/charts.html?package=yahoo-finance-api)Scrapes yahoo finance earnings calendar from a given date.
## Installation
```
npm install yahoo-finance-api
``````
yarn install yahoo-finance-api
```
## Usage```ts
import { YahooFinance } from 'yahoo-finance-api';const earnings = await YahooFinance.getEarnings(new Date('2020-06-16')); // default new Date()
console.log(earnings);
// Upcoming Earning
[{
epsEstimate: 1.17,
epsReported: undefined,
epsSurprise: undefined,
reportDate: '2020-06-16',
symbol: 'ORCL',
company: 'Oracle Corp',
announceTime: 'After Market Close',
epsSurpriseDollar: undefined
}]
// Previous Earning
[{
epsEstimate: 2.33,
epsReported: 2.45,
epsSurprise: 5.15,
reportDate: '2020-06-11',
symbol: 'ADBE',
company: 'Adobe Inc.',
announceTime: 'Time Not Supplied',
epsSurpriseDollar: 0.12
}]
```## License
[MIT](https://github.com/gregfrasco/yahoo-finance-api/blob/master/LICENSE)