logo
Sign In
  • Overview

  • Introduction
  • Authentication
  • Querying
  • Bulk Downloads
  • Frequently Asked Questions
  • Data Tables

  • Indicator Descriptions
  • Fundamentals
  • Stock Prices
  • Fund Prices
  • Corporate Actions
  • Material Corporate Events
  • S&P500 Constituents
  • Price Based Metrics
  • Insiders
  • Tickers and Metadata
  • Daily Fundamentals
  • Institutional Investors
  • Institutional Investors Summary by Ticker
  • Institutional Investors Summary by Investor

S&P500 Constituents

Returns data from the [sp500] table.

View Table

This table provides the current and historical constituents of the S&P500 index.

For more information on the dataset and the available indicators, please review the sp500 table on the Explorer page.

The table is queried via the following endpoint

https://api.sharadar.com/v1.0/data/sp500?api_key=test-api-key&ticker=AAPL

The queries are authenticated and filtered using query parameters. A query parameter specifies a particular option or filter for the data to be returned. Examples of query parameter include the data format to be returned (format), the table columns to return (fields) or a filter to be applied (tablename). These are appended to the endpoint above, following a ?. The most important of these is your API key (api_key) which is used to authenticate you. Without a valid API key, results will not be returned.

The sp500 table supports the following query parameters.

ParameterDescriptionDefaultExamples
formatThe format of the results to be returned.csvformat=json
yearsTriggers a bulk download of the full table as a compressed CSV. Values: 5, 10, or full. The API redirects to a time-limited download URL.years=5
fromSpecifies the filing date from which to return data.1 year agofrom=2023-08-01
toSpecifies the filing date to return data until.prior dayto=2023-08-31
fieldsThe fields (table columns) to return.allfields=date,ticker,action,contraticker
actionReturns results for the specified action.allaction=split
contratickerReturns the ticker for the company corresponding to a particular action (e.g. this will reflect the ticker for the company that was removed when viewing the record for a ticker that has been added to the sp500 table).allcontraticker=GE
tickerReturns results for the specified ticker. Multiple tickers should be separated with a comma(,).allticker=TSLA
limitThe number of records to return.10000limit=100000
skipThe number of results to skip before returning data.0skip=10000
sortThe field used to sort the data and the sort method (asc/desc).date.descsort=ticker.asc

Return the current S&P500 constituents

https://api.sharadar.com/v1.0/data/sp500?api_key=test-api-key&format=csv&action=current

Return the S&P500 history for a specific ticker

https://api.sharadar.com/v1.0/data/sp500?api_key=test-api-key&format=csv&ticker=AAPL

In Google Sheets, retrieve S&P 500 history for a single ticker (AAPL) with IMPORTDATA. You can change the query parameters (ticker, dates, fields, filters, and so on) in the same way as the Examples in the preceding section. Paste this formula into a cell (A1):

=IMPORTDATA("https://api.sharadar.com/v1.0/data/sp500?api_key=test-api-key&format=csv&ticker=AAPL")

Download the [sp500] table as a compressed CSV by setting years to 5, 10, or full. The API responds with a redirect to a time-limited download URL.

https://api.sharadar.com/v1.0/data/sp500?api_key=test-api-key&years=5

https://api.sharadar.com/v1.0/data/sp500?api_key=test-api-key&years=full

Example using curl (follow redirects and write the file):

curl -L -o sp500.csv.zip "https://api.sharadar.com/v1.0/data/sp500?api_key=test-api-key&years=full"

Check the bulk file status (name, size, last modified) without downloading:

https://api.sharadar.com/v1.0/data/sp500?api_key=test-api-key&status=True

Example response:

{ "table": "sp500", "name": "sp500.csv.zip", "size": 252561, "sizeLabel": "246.6 KB", "modified": "2026-07-15T23:58:56.255000+00:00" }

Sharadar
[email protected]Blog

Copyright © Sharadar 2026. All rights reserved.