Returns data from the [metrics] table.
This table provides calculated price based metrics for public US companies, ETFs and CEFs.
For more information on the dataset and the available indicators, please review the metrics table on the Explorer page.
The table is queried via the following endpoint
https://api.sharadar.com/v1.0/data/metrics?api_key=test-api-key&ticker=AAPLThe 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 metrics table supports the following query parameters.
| Parameter | Description | Default | Examples |
|---|---|---|---|
| format | The format of the results to be returned. | csv | format=json |
| years | Triggers 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 | |
| from | Specifies the filing date from which to return data. | 1 year ago | from=2023-08-01 |
| to | Specifies the filing date to return data until. | prior day | to=2023-08-31 |
| fields | The fields (table columns) to return. | all | fields=date,ticker,beta1y,beta5y |
| lastupdated | Specifies the last date on which a record was updated. This can be used to retrieve recently updated records. | lastupdated.gte=2023-09-31 | |
| ticker | Returns results for the specified ticker. Multiple tickers should be separated with a comma(,). | all | ticker=TSLA |
| limit | The number of records to return. | 10000 | limit=100000 |
| skip | The number of results to skip before returning data. | 0 | skip=10000 |
| sort | The field used to sort the data and the sort method (asc/desc). | date.desc | sort=beta1y.asc |
Return price based metrics for a specified ticker
https://api.sharadar.com/v1.0/data/metrics?api_key=test-api-key&format=csv&ticker=AAPLReturn price based metrics that have been updated since a specified date
https://api.sharadar.com/v1.0/data/metrics?api_key=test-api-key&format=csv&lastupdated.gte=2023-08-01In Google Sheets, retrieve price-based metrics 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/metrics?api_key=test-api-key&format=csv&ticker=AAPL")Download the [metrics] 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/metrics?api_key=test-api-key&years=5https://api.sharadar.com/v1.0/data/metrics?api_key=test-api-key&years=fullExample using curl (follow redirects and write the file):
curl -L -o metrics.csv.zip "https://api.sharadar.com/v1.0/data/metrics?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/metrics?api_key=test-api-key&status=TrueExample response:
{
"table": "metrics",
"name": "metrics.csv.zip",
"size": 1500963,
"sizeLabel": "1.43 MB",
"modified": "2026-07-16T03:58:15.876000+00:00"
}