All APIsexpand_more
Sector performance
/stable/sector-performance10 tokens per callReturns price changes for each TSE 33-sector over 1 day, 1 week, 1 month and year to date, both as the median stock and as a market-cap-weighted figure. The first row is the whole market (ALL), followed by sectors ranked by the period, basis and order you choose. Only common stocks priced on the latest trading day are included, and changes are split-adjusted 0–1 decimals (0.02 = +2%).
What you can do with this API
- check_circleSee which sectors are rising or falling today
- check_circleCompare the strongest and weakest sectors year to date
Example URL
https://api.zenithcode.net/stable/sector-performance?period=1d&basis=weighted&order=descShown without percent-encoding for readability. Non-ASCII values are encoded automatically when sent.
Parameters
| Parameter | Required | Description | Example |
|---|---|---|---|
periodselect | Optional | Period used for ranking: 1d, 1w, 1m or ytd (year to date). Default 1d Allowed values: 1d, 1w, 1m, ytd | 1d |
basisselect | Optional | Ranking basis: weighted = market-cap weighted (default), median = median stock Allowed values: weighted, median | weighted |
orderselect | Optional | Sort order: desc = best first (default), asc = worst first Allowed values: asc, desc | desc |
Try it
Run it with your own parameters and check the response as a table, JSON or CSV. Sign-in required; each run uses 10 tokens.
travel_exploreTry in the API ViewerResponse example (real data)
Response fields
sectorTSE 33-sector code. 'ALL' = all common stocks | string | TSE 33-sector code. 'ALL' = all common stocks |
sectorJa | string | |
sectorEn | string | |
priceDatePrice date the figures are based on (most common date in the snapshot) | string | Price date the figures are based on (most common date in the snapshot) |
countCommon stocks counted (priced on priceDate) | integer | Common stocks counted (priced on priceDate) |
marketCapThe close multiplied by shares outstanding excluding treasury shares (both split-adjusted). | number | The close multiplied by shares outstanding excluding treasury shares (both split-adjusted).How it is calculated → |
rankRank by the requested period and basis (1 = best for order=desc). null on the ALL row | integer | Rank by the requested period and basis (1 = best for order=desc). null on the ALL row |
changePct1dMedianThe median price change for each of the TSE’s 33 sectors, and the average weighted by start-of-period market cap. | number | The median price change for each of the TSE’s 33 sectors, and the average weighted by start-of-period market cap.How it is calculated → |
changePct1dWeightedThe median price change for each of the TSE’s 33 sectors, and the average weighted by start-of-period market cap. | number | The median price change for each of the TSE’s 33 sectors, and the average weighted by start-of-period market cap.How it is calculated → |
changePct1dCountThe median price change for each of the TSE’s 33 sectors, and the average weighted by start-of-period market cap. | integer | The median price change for each of the TSE’s 33 sectors, and the average weighted by start-of-period market cap.How it is calculated → |
changePct1wMedianThe median price change for each of the TSE’s 33 sectors, and the average weighted by start-of-period market cap. | number | The median price change for each of the TSE’s 33 sectors, and the average weighted by start-of-period market cap.How it is calculated → |
changePct1wWeightedThe median price change for each of the TSE’s 33 sectors, and the average weighted by start-of-period market cap. | number | The median price change for each of the TSE’s 33 sectors, and the average weighted by start-of-period market cap.How it is calculated → |
changePct1wCountThe median price change for each of the TSE’s 33 sectors, and the average weighted by start-of-period market cap. | integer | The median price change for each of the TSE’s 33 sectors, and the average weighted by start-of-period market cap.How it is calculated → |
changePct1mMedianThe median price change for each of the TSE’s 33 sectors, and the average weighted by start-of-period market cap. | number | The median price change for each of the TSE’s 33 sectors, and the average weighted by start-of-period market cap.How it is calculated → |
changePct1mWeightedThe median price change for each of the TSE’s 33 sectors, and the average weighted by start-of-period market cap. | number | The median price change for each of the TSE’s 33 sectors, and the average weighted by start-of-period market cap.How it is calculated → |
changePct1mCountThe median price change for each of the TSE’s 33 sectors, and the average weighted by start-of-period market cap. | integer | The median price change for each of the TSE’s 33 sectors, and the average weighted by start-of-period market cap.How it is calculated → |
changePctYtdMedianThe median price change for each of the TSE’s 33 sectors, and the average weighted by start-of-period market cap. | number | The median price change for each of the TSE’s 33 sectors, and the average weighted by start-of-period market cap.How it is calculated → |
changePctYtdWeightedThe median price change for each of the TSE’s 33 sectors, and the average weighted by start-of-period market cap. | number | The median price change for each of the TSE’s 33 sectors, and the average weighted by start-of-period market cap.How it is calculated → |
changePctYtdCountThe median price change for each of the TSE’s 33 sectors, and the average weighted by start-of-period market cap. | integer | The median price change for each of the TSE’s 33 sectors, and the average weighted by start-of-period market cap.How it is calculated → |
Related APIs
FAQ
What is the difference between median and weighted?expand_more
The median shows the typical stock in the sector, while the market-cap-weighted figure reflects large companies more strongly.
How many tokens does one call use?expand_more
10 tokens per call, regardless of how many rows come back. Your monthly allowance depends on your plan.
Do I need an account to try it?expand_more
Use the API Viewer to run it with your own parameters. Sign up for free and sign in (no credit card). Each run uses this API's tokens.
Can I get CSV instead of JSON?expand_more
Add format=csv to the URL to get CSV, ready for spreadsheets or pandas.
Can I get labels in English?expand_more
With neither lang nor Accept-Language, labels such as sector names are returned in English; add lang=ja or send Accept-Language: ja for Japanese. Company and sector names are always returned in both languages as nameJa / nameEn and sectorJa / sectorEn. Field names are the same in both languages.

