edinetdb — CLI for the EDINET DB API
Command-line interface for EDINET DB, a financial-data API covering the ~3,850 Japanese listed companies filed through the FSA's EDINET system (Electronic Disclosure for Investors' NETwork).
pip install edinetdb
edinetdb auth login # paste your key from https://edinetdb.jp/developers
edinetdb search toyota
edinetdb financials E02144 --years 5
edinetdb screener -w 'roe:gte=15' -w 'equity_ratio:gte=50'
Install
pip install edinetdb
Python 3.10+ is required. The only runtime dependencies are
typer, httpx,
and rich.
Authenticate
All endpoints except status and search require an API key. Get a free key
at https://edinetdb.jp/developers and store it:
edinetdb auth login
# API key: ****************
# Saved credentials to /Users/you/.config/edinetdb/credentials
Alternatively, set the environment variable:
export EDINETDB_API_KEY=your_key_here
Resolution order: --api-key flag → EDINETDB_API_KEY env → stored credentials.
Commands
| Command | What it does |
|---|---|
auth login / logout / whoami |
Manage stored credentials |
search <query> |
Find companies by name, EDINET code, or securities code |
company <E-code> |
Company details + latest financials |
financials <E-code> |
Financial time series (annual / quarterly) |
ratios <E-code> |
ROE, ROA, margins, CAGR, valuation ratios |
analysis <E-code> |
AI-generated health score + benchmark counts |
text-blocks <E-code> |
Business description, risks, MD&A |
text-analysis <E-code> |
Structured text (12 types: risks, dividends, governance, …) |
expenses <E-code> |
SGA expense breakdown (14 categories × 4 groups) |
segments <E-code> |
Segment-level revenue, OI, assets |
cross-shareholdings <E-code> |
Policy-holding securities detail |
real-estate <E-code> |
Real-estate note + land-price benchmarks |
facilities <E-code> |
Facility-level properties with book value |
earnings <E-code> |
TDNet earnings disclosure history |
calendar |
JPX earnings release calendar |
rankings <metric> |
Top companies by a financial metric |
screener |
106-metric multi-condition screener |
shareholders get/search/history/activists |
Large shareholding reports |
industries list/get |
Industry averages and company listings |
watchlist list/add/remove |
Personal watchlist |
status |
API health + data freshness |
Run edinetdb <command> --help for per-command flags.
Output
Every command supports --format {json,table,csv} (-f). Table is the default
for flat list results; company details default to JSON.
edinetdb rankings roe --limit 10 --format csv > roe_top10.csv
edinetdb financials E02144 --years 5 --format json | jq '.[].revenue'
Exit codes map to the error class:
| Code | Meaning |
|---|---|
0 |
Success |
1 |
Unclassified error |
2 |
Authentication error (401/403) |
3 |
Rate limit exceeded (429) |
4 |
Not found (404) |
5 |
Bad request / validation (400) |
6 |
Server error (5xx) |
Configuration
| Variable | Default |
|---|---|
EDINETDB_API_KEY |
(not set) |
EDINETDB_BASE_URL |
https://edinetdb.jp/v1 |
EDINETDB_PROFILE |
default |
XDG_CONFIG_HOME |
~/.config (credentials stored in $XDG_CONFIG_HOME/edinetdb/credentials) |
Named profiles allow multiple keys (e.g. personal + team):
edinetdb auth login --profile team
edinetdb --profile team search softbank # requires per-command flag, TBD
EDINETDB_PROFILE=team edinetdb search softbank
Links
- API documentation & live Redoc UI: https://edinetdb.jp/docs/api-reference
- OpenAPI spec: https://edinetdb.jp/v1/openapi.yaml
- Get an API key: https://edinetdb.jp/developers
- Issues: https://github.com/Cabocia/edinet-db/issues
License
Apache 2.0 © 2026 Cabocia Inc.
Metadata
Release files for edinetdb 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 |
|---|---|---|---|---|
| edinetdb-0.1.0.tar.gz | 16.7 kB | With provenance | Details for edinetdb-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| edinetdb-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for edinetdb-0.1.0-py3-none-any.whl |
Total release size: 38.8 kB
Release files / edinetdb-0.1.0.tar.gz
| Download URL | edinetdb-0.1.0.tar.gz |
|---|---|
| Size | 16.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a9facf4fae9bb60be5b2797c8967a80f330ba574b3127a5195b3b90d45d48937
|
|
BLAKE2b-256 checksum How to use checksums |
2bdc9e089762dd4a3786fee3f3c3d6613a95071ffd7dfd7ec95e95febe795146
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 21, 2026.
Transparency logRelease files / edinetdb-0.1.0-py3-none-any.whl
| Download URL | edinetdb-0.1.0-py3-none-any.whl |
|---|---|
| Size | 22.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8e5f1bda6d950b571763818f167624bf5cab47344ca242e5f4aeadbc94c0d9bf
|
|
BLAKE2b-256 checksum How to use checksums |
8918c89bb4506698a3dfb4718d1c167a1b042038948946fc36e4d5581bec6e2a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 21, 2026.
Transparency logSecurity for edinetdb 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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for edinetdb-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 21, 2026.
Transparency logA 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.