Get free API key

CSV export

Any endpoint that returns a list (an array: historical prices, dividends, major shareholders, screener, rankings and more) can return CSV instead of JSON — ready to open in a spreadsheet or load into pandas.

?format=csv query parameter

Append format=csv to the URL. Save it straight to a file with curl -o or open it in a browser.

curl "https://api.zenithcode.net/stable/historical-price-eod?symbol=7203&format=csv" \
  -H "x-api-key: YOUR_API_KEY" \
  -o 7203.csv

Accept: text/csv header

If you prefer not to change the URL, send an Accept header instead. When both are present the format query parameter wins.

curl "https://api.zenithcode.net/stable/dividends?symbol=7203" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Accept: text/csv"

Output format

UTF-8 without BOM, comma-separated, CRLF line endings, with a header row. Column names match the JSON field names (camelCase); nested fields are flattened with dots (e.g. provenance.docId). Dates are ISO 8601 and amounts are in yen (per-share values and averages can have decimals).

symbol,nameJa,nameEn,exchange,assetType
1301,極洋,"KYOKUYO CO.,LTD.",TSE,EQUITY
7203,トヨタ自動車,TOYOTA MOTOR CORPORATION,TSE,EQUITY
warning

CSV costs exactly the same tokens as JSON. Only endpoints that return a list (array) become CSV. Endpoints that return a single object (fear-greed, usage, system/freshness and similar) still return JSON when format=csv is given. The company profile is returned as an array even for one company, so it can be returned as CSV.