crawlora-yahoo-finance — Yahoo Finance API client for Python
Python client for Crawlora's hosted Yahoo Finance API. It exposes 39 API endpoints covering quotes, market data, company information, financial statements, calendars, and chart history. Requests go to Crawlora; the package does not run a browser or scrape
Yahoo Finance locally. A Crawlora account and CRAWLORA_API_KEY are required,
and API use is billed under your Crawlora account. Crawlora is independent from and not endorsed by
Yahoo Finance or its owners.
Install
python -m pip install crawlora-yahoo-finance
Get an API key
Create an account at crawlora.net, then open the Crawlora console for API-key setup. Set your key in the shell before running the client:
export CRAWLORA_API_KEY="your-crawlora-api-key"
Use
Save this example as example.py, then run python example.py after installing the package and setting your API key.
import os
from crawlora_yahoo_finance import YahooFinanceClient
api_key = os.environ.get("CRAWLORA_API_KEY")
if not api_key:
raise RuntimeError("Set CRAWLORA_API_KEY before running this example.")
with YahooFinanceClient(api_key=api_key) as client:
result_1 = client.calendars()
print(result_1)
result_2 = client.industries()
print(result_2)
The package also exports Client as an alias for YahooFinanceClient. Operation
methods are available directly in snake_case and through the yahoo-finance
group. The async package client is AsyncYahooFinanceClient; see the online
endpoint and parameter reference and runnable example.
Async usage
The package also exports AsyncClient for asynchronous requests:
import asyncio
import os
from crawlora_yahoo_finance import AsyncClient
async def main():
api_key = os.environ.get("CRAWLORA_API_KEY")
if not api_key:
raise RuntimeError("Set CRAWLORA_API_KEY before running this example.")
async with AsyncClient(api_key=api_key) as client:
result_1 = await client.calendars()
print(result_1)
asyncio.run(main())
See the runnable example for a complete usage example.
Supported Yahoo Finance API endpoints
This package exposes every route below through direct snake_case methods and the yahoo-finance group. See the endpoint and parameter reference for complete input details.
| Method | Endpoint | API operation | Description |
|---|---|---|---|
GET |
/yahoo-finance/calendars |
yahoo-finance-calendars |
Yahoo Finance calendar types |
GET |
/yahoo-finance/calendars/{type} |
yahoo-finance-calendar |
Yahoo Finance calendar results |
POST |
/yahoo-finance/download |
yahoo-finance-download |
Yahoo Finance batch historical prices |
GET |
/yahoo-finance/industries |
yahoo-finance-industries |
Yahoo Finance industries |
GET |
/yahoo-finance/industries/{key} |
yahoo-finance-industry |
Yahoo Finance industry detail |
GET |
/yahoo-finance/lookup |
yahoo-finance-lookup |
Yahoo Finance lookup |
GET |
/yahoo-finance/market/{market}/status |
yahoo-finance-market-status |
Yahoo Finance market status |
GET |
/yahoo-finance/market/{market}/summary |
yahoo-finance-market-summary |
Yahoo Finance market summary |
POST |
/yahoo-finance/screener |
yahoo-finance-screener-custom |
Yahoo Finance custom screener |
GET |
/yahoo-finance/screener/{id} |
yahoo-finance-screener |
Yahoo Finance predefined screener results |
GET |
/yahoo-finance/screeners |
yahoo-finance-screeners |
Yahoo Finance predefined screeners |
GET |
/yahoo-finance/search |
yahoo-finance-search |
Yahoo Finance search |
GET |
/yahoo-finance/sectors |
yahoo-finance-sectors |
Yahoo Finance sectors |
GET |
/yahoo-finance/sectors/{key} |
yahoo-finance-sector |
Yahoo Finance sector detail |
GET |
/yahoo-finance/ticker/{symbol}/actions |
yahoo-finance-ticker-actions |
Yahoo Finance corporate actions |
GET |
/yahoo-finance/ticker/{symbol}/analysts |
yahoo-finance-ticker-analysts |
Yahoo Finance analyst data |
GET |
/yahoo-finance/ticker/{symbol}/calendar |
yahoo-finance-ticker-calendar |
Yahoo Finance calendar |
GET |
/yahoo-finance/ticker/{symbol}/capital-gains |
yahoo-finance-ticker-capital-gains |
Yahoo Finance capital gains |
GET |
/yahoo-finance/ticker/{symbol}/dividends |
yahoo-finance-ticker-dividends |
Yahoo Finance dividends |
GET |
/yahoo-finance/ticker/{symbol}/earnings |
yahoo-finance-ticker-earnings |
Yahoo Finance earnings |
GET |
/yahoo-finance/ticker/{symbol}/earnings-dates |
yahoo-finance-ticker-earnings-dates |
Yahoo Finance earnings dates |
GET |
/yahoo-finance/ticker/{symbol}/financials |
yahoo-finance-ticker-financials |
Yahoo Finance financial statements |
GET |
/yahoo-finance/ticker/{symbol}/funds |
yahoo-finance-ticker-funds |
Yahoo Finance fund data |
GET |
/yahoo-finance/ticker/{symbol}/history |
yahoo-finance-ticker-history |
Yahoo Finance historical prices |
GET |
/yahoo-finance/ticker/{symbol}/history-metadata |
yahoo-finance-ticker-history-metadata |
Yahoo Finance history metadata |
GET |
/yahoo-finance/ticker/{symbol}/holders |
yahoo-finance-ticker-holders |
Yahoo Finance holders |
GET |
/yahoo-finance/ticker/{symbol}/info |
yahoo-finance-ticker-info |
Yahoo Finance ticker info |
GET |
/yahoo-finance/ticker/{symbol}/isin |
yahoo-finance-ticker-isin |
Yahoo Finance ticker ISIN |
GET |
/yahoo-finance/ticker/{symbol}/news |
yahoo-finance-ticker-news |
Yahoo Finance ticker news |
GET |
/yahoo-finance/ticker/{symbol}/options |
yahoo-finance-ticker-options |
Yahoo Finance options chain |
GET |
/yahoo-finance/ticker/{symbol}/options/{expiration} |
yahoo-finance-ticker-options-expiration |
Yahoo Finance options chain by expiration |
GET |
/yahoo-finance/ticker/{symbol}/quote |
yahoo-finance-ticker-quote |
Yahoo Finance ticker quote |
GET |
/yahoo-finance/ticker/{symbol}/sec-filings |
yahoo-finance-ticker-sec-filings |
Yahoo Finance SEC filings |
GET |
/yahoo-finance/ticker/{symbol}/shares |
yahoo-finance-ticker-shares |
Yahoo Finance share counts |
GET |
/yahoo-finance/ticker/{symbol}/shares-full |
yahoo-finance-ticker-shares-full |
Yahoo Finance historical share counts |
GET |
/yahoo-finance/ticker/{symbol}/splits |
yahoo-finance-ticker-splits |
Yahoo Finance splits |
GET |
/yahoo-finance/ticker/{symbol}/sustainability |
yahoo-finance-ticker-sustainability |
Yahoo Finance sustainability |
GET |
/yahoo-finance/ticker/{symbol}/valuation |
yahoo-finance-ticker-valuation |
Yahoo Finance valuation measures |
GET |
/yahoo-finance/trending/{region} |
yahoo-finance-trending |
Yahoo Finance trending symbols |
Configuration
Pass your key through api_key or read CRAWLORA_API_KEY from the environment.
Keep credentials out of source control and logs. Requests go to Crawlora's
hosted API.
Metadata
Release files for crawlora-yahoo-finance 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| crawlora_yahoo_finance-0.1.0.tar.gz | 34.0 kB | Without provenance | Details for crawlora_yahoo_finance-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| crawlora_yahoo_finance-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for crawlora_yahoo_finance-0.1.0-py3-none-any.whl |
Total release size: 68.1 kB
Release files / crawlora_yahoo_finance-0.1.0.tar.gz
| Download URL | crawlora_yahoo_finance-0.1.0.tar.gz |
|---|---|
| Size | 34.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9d7359965ff7db6bccda43a48c986d23a7978892540f7b0a6560d9e711e5c0c8
|
|
BLAKE2b-256 checksum How to use checksums |
64b2f55a32e0cb3d5323510b8f735ba0f6e9ec069d2443c01ee98bca9bd66468
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.16
|
Release files / crawlora_yahoo_finance-0.1.0-py3-none-any.whl
| Download URL | crawlora_yahoo_finance-0.1.0-py3-none-any.whl |
|---|---|
| Size | 34.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
54c7836614cf06029fd958f94a6e2c66df0c049778f01a2ecdc1e6fa21c10979
|
|
BLAKE2b-256 checksum How to use checksums |
2c9ebcb4a426df146386d9d4d540cd3b9310833763d998b4364ca2050db6794d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.16
|
Security for crawlora-yahoo-finance 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.