Returns the constituents of an index (the S&P 500, the NASDAQ 100 or the Dow Jones Industrial Average), today’s or those on a past date, with their sector, sub-sector, headquarters, the date they were added, CIK and founding year. The symbols make a Toolkit of the whole index, for example to measure market breadth from every constituent (toolkit.technicals.get_market_breadth) or to rank them by relative strength.

Today’s members alone bias any history computed from them: the companies removed from the index since, often after falling behind, are left out (survivorship bias), the more so the further back it goes. With date, the members on that date are returned instead: today’s members with every later change undone, from the newest back, using the dated changes of get_index_constituent_changes. A company added since is taken out and a company removed since is put back, with the date it left the index (‘Date Removed’), so a backtest can hold each company only while it was a member.

Also known as: index members, index constituents, S&P 500 components, survivorship-free index membership, point-in-time index constituents.

Index Constituents in Python or via the MCP

Install the Finance Toolkit with:

pip install financetoolkit -U

Then call get_index_constituents as shown below.

from financetoolkit import Discovery

discovery = Discovery(api_key="FINANCIAL_MODELING_PREP_KEY")

constituents = discovery.get_index_constituents("S&P 500", date="2008-09-01")

constituents.loc[
    ["AAPL", "FNMA", "LEHMQ", "MER", "WB"], ["Name", "Date Added", "Date Removed"]
]

Or, after setting up the Finance Toolkit MCP, ask:

Were Apple, Fannie Mae, Lehman Brothers, Merrill Lynch and Wachovia in the S&P 500 on 1 September 2008, and when was each added to and removed from the index?

Which returns:

Symbol Name Date Added Date Removed
AAPL Apple Inc. 1982-11-18 nan
FNMA Fannie Mae (FNMA) 1988-08-11 2008-09-10
LEHMQ Lehman Brothers Holding 1998-01-09 2008-09-16
MER Merrill Lynch & Co 1982-04-08 2008-12-31
WB Wachovia Corp. 1993-09-30 2008-12-31

Parameters

get_index_constituents accepts the following parameters.

ParameterTypeDescriptionExample
indexstr“S&P 500”, “NASDAQ 100” or “Dow Jones”. Defaults to “S&P 500”."S&P 500"
datestr | NoneThe date (YYYY-MM-DD) to list the members of. A change takes effect on its own date, so the members on a change’s date include it. Defaults to None, today’s members."2025-03-31"
Share