https://github.com/gzurowski/bruno-yahoo-finance
Bruno collection for Yahoo Finance APIs
https://github.com/gzurowski/bruno-yahoo-finance
bruno bruno-collection financial-market-data stock-market-api yahoo-finance yahoo-finance-api
Last synced: 8 months ago
JSON representation
Bruno collection for Yahoo Finance APIs
- Host: GitHub
- URL: https://github.com/gzurowski/bruno-yahoo-finance
- Owner: gzurowski
- Created: 2025-01-01T11:48:17.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-01-10T18:52:50.000Z (10 months ago)
- Last Synced: 2025-02-23T11:14:38.657Z (8 months ago)
- Topics: bruno, bruno-collection, financial-market-data, stock-market-api, yahoo-finance, yahoo-finance-api
- Language: JavaScript
- Homepage:
- Size: 400 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bruno Collection for Yahoo Finance
This repository contains a [Bruno](https://www.usebruno.com/) collection for interacting with Yahoo Finance's public API endpoints. Although Yahoo Finance discontinued their official API documentation in 2017, these endpoints remain publicly accessible and functional.

## Prerequisites
- Install [Bruno](https://www.usebruno.com/downloads).
- Git (optional, for cloning this repository).
## Setup
1. Clone this repository:
```bash
git clone https://github.com/gzurowski/bruno-yahoo-finance.git
```
Alternatively, you can download the collection as a [ZIP file](https://github.com/gzurowski/bruno-yahoo-finance/archive/refs/heads/main.zip).
2. Open the `bruno-yahoo-finance` folder in Bruno.
3. Click on _Open Collection_.
4. Navigate to the cloned repository folder and click _Open_.
## Authentication
All Yahoo Finance endpoints require authentication using:
- A cookie.
- A token named `crumb` which must be included as a query parameter in every request.
Both the cookie and the token are obtained through two separate requests.
These requests are automatically run by a _pre-request_ script on collection-level.
Once retrieved, the cookie and the token are stored as variables and automatically included in all requests.
The script is stored in [scripts/auth.js](scripts/auth.js).
For reference, this repository also includes separate requests in the [Auth](Auth) folder.
These are provided for informational purposes only and do not need to be manually run.
## Notes
- The endpoints are not officially documented and are subject to change.
- Rate limiting may apply.